mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-08 07:03:22 +08:00
Merge branch 'dev'
This commit is contained in:
commit
7eef25cf3f
@ -36,6 +36,8 @@
|
||||
import { computed, PropType, toRefs, watch, reactive, ref } from 'vue'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { icon } from '@/plugins'
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
import { useChartDataFetch } from '@/hooks'
|
||||
|
||||
const props = defineProps({
|
||||
chartConfig: {
|
||||
@ -83,6 +85,13 @@ watch(
|
||||
deep: true
|
||||
}
|
||||
)
|
||||
|
||||
// setdata 数据监听与更改
|
||||
useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => {
|
||||
props.chartConfig.option.dataset = newData
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
@ -170,6 +170,7 @@ watch(
|
||||
dimensions: any
|
||||
} | null
|
||||
) => {
|
||||
noData.value = false
|
||||
if (newData && targetData?.value?.chartConfig?.chartFrame === ChartFrameEnum.ECHARTS) {
|
||||
// 只有 DataSet 数据才有对应的格式
|
||||
source.value = newData
|
||||
|
Loading…
x
Reference in New Issue
Block a user