mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-17 19:23:12 +08:00
!251 update src/packages/components/Charts/Mores/Process/index.vue.
Merge pull request !251 from 初级开发人员/N/A
This commit is contained in:
commit
812141bf62
@ -49,16 +49,16 @@ const {
|
||||
dataset
|
||||
} = toRefs(props.chartConfig.option)
|
||||
|
||||
const option = shallowReactive({
|
||||
dataset: configOption.dataset
|
||||
})
|
||||
//const option = shallowReactive({
|
||||
// dataset: configOption.dataset
|
||||
//})
|
||||
|
||||
// 手动更新
|
||||
watch(
|
||||
() => props.chartConfig.option.dataset,
|
||||
(newData: any) => {
|
||||
try {
|
||||
option.dataset = toNumber(newData, 2)
|
||||
dataset.value = toNumber(newData, 2)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
@ -69,6 +69,6 @@ watch(
|
||||
)
|
||||
// 预览更新
|
||||
useChartDataFetch(props.chartConfig, useChartEditStore, (newData: number) => {
|
||||
option.dataset = toNumber(newData, 2)
|
||||
dataset.value = toNumber(newData, 2)
|
||||
})
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user