🔨 工作台.

This commit is contained in:
lijiahangmax
2024-12-28 23:28:23 +08:00
parent 1846a496c1
commit 6606d2ca76
4 changed files with 12 additions and 19 deletions

View File

@@ -7,16 +7,16 @@
<script lang="ts" setup>
import type { EChartsOption } from 'echarts';
import { computed, nextTick, ref } from 'vue';
import { nextTick, ref } from 'vue';
import { useAppStore } from '@/store';
import VCharts from 'vue-echarts';
const props = withDefaults(defineProps<{
const props = withDefaults(defineProps<Partial<{
options: EChartsOption,
autoResize: boolean,
width: string,
height: string,
}>(), {
}>>(), {
options: () => {
return {};
},
@@ -27,12 +27,6 @@
const appStore = useAppStore();
// 监听暗色模式
const theme = computed(() => {
if (appStore.theme === 'dark') return 'dark';
return '';
});
const renderChart = ref(false);
nextTick(() => {