整理代码!
This commit is contained in:
@@ -26,7 +26,7 @@ export default {
|
||||
default: () => [],
|
||||
},
|
||||
},
|
||||
setup(props)
|
||||
setup( props )
|
||||
{
|
||||
const ui = reactive({
|
||||
});
|
||||
@@ -34,8 +34,8 @@ export default {
|
||||
// 设置图表
|
||||
const initCharts = () =>
|
||||
{
|
||||
const chartDom = document.getElementById("chartWrapper");
|
||||
const myChart = echarts.init(chartDom as HTMLDivElement);
|
||||
const chartDom = document.getElementById( "chartWrapper" );
|
||||
const myChart = echarts.init( chartDom as HTMLDivElement );
|
||||
const option = {
|
||||
xAxis: {
|
||||
type: "category",
|
||||
@@ -53,7 +53,7 @@ export default {
|
||||
],
|
||||
};
|
||||
|
||||
option && myChart.setOption(option);
|
||||
option && myChart.setOption( option );
|
||||
|
||||
window.onresize = function ()
|
||||
{
|
||||
|
@@ -36,9 +36,9 @@ export default {
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
setup(props)
|
||||
setup( props )
|
||||
{
|
||||
const percentage = Number(props.percentage).valueOf();
|
||||
const percentage = Number( props.percentage ).valueOf();
|
||||
|
||||
const ui = reactive({
|
||||
percentage,
|
||||
|
Reference in New Issue
Block a user