build(projects): 升级依赖,修复TS类型

This commit is contained in:
Soybean
2022-08-31 22:57:53 +08:00
parent f408ea017c
commit 73ce53a388
5 changed files with 28 additions and 26 deletions

View File

@@ -32,6 +32,7 @@
<script setup lang="ts">
import { ref } from 'vue';
import type { Ref } from 'vue';
import { type ECOption, useEcharts } from '@/composables';
defineOptions({ name: 'DashboardAnalysisTopCard' });
@@ -129,7 +130,7 @@ const lineOptions = ref<ECOption>({
data: [2208, 2016, 2916, 4512, 8281, 2008, 1963, 2367, 2956, 678]
}
]
});
}) as Ref<ECOption>;
const { domRef: lineRef } = useEcharts(lineOptions);
const pieOptions = ref<ECOption>({
@@ -176,7 +177,7 @@ const pieOptions = ref<ECOption>({
]
}
]
});
}) as Ref<ECOption>;
const { domRef: pieRef } = useEcharts(pieOptions);
</script>