整理代码!

This commit is contained in:
2023-03-24 15:11:47 +08:00
parent bee1061e20
commit 7dbd48152f
14 changed files with 119 additions and 80 deletions

View File

@@ -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 ()
{

View File

@@ -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,