Merge branch 'dev' of gitee.com:MTrun/go-view into dev

Signed-off-by: Furoe <furo_yang@163.com>
This commit is contained in:
Furoe
2022-08-30 06:19:04 +00:00
committed by Gitee
10 changed files with 601 additions and 318 deletions
@@ -10,7 +10,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: {
@@ -26,13 +26,14 @@ const option = shallowReactive({
const { w, h } = toRefs(props.chartConfig.attr)
const { size, gradient } = toRefs(props.chartConfig.option)
watch(
() => props.chartConfig.option.dataset,
(newData: any) => {
option.dataset = newData
},
{immediate: true}
{
immediate: true
}
)
useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => {