perf: 优化图标展示,修复 dataset 的问题(我TM就不该相信这个半成品),优化性能监听

This commit is contained in:
奔跑的面条
2022-09-11 22:53:00 +08:00
parent dbd49a05bd
commit 18947db22b
34 changed files with 562 additions and 302 deletions
@@ -24,7 +24,7 @@ import { PropType, toRefs, shallowReactive, watch } from 'vue'
import { CreateComponentType } from '@/packages/index.d'
import { useChartDataFetch } from '@/hooks'
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
import { option as configOption } from './config'
import { option as configOption } from './config'
const props = defineProps({
chartConfig: {
@@ -57,8 +57,10 @@ watch(
() => props.chartConfig.option.dataset,
(newData: any) => {
option.dataset = newData
}, {
immediate: true
},
{
immediate: true,
deep: false
}
)
@@ -32,7 +32,8 @@ watch(
option.dataset = newData
},
{
immediate: true
immediate: true,
deep: false
}
)