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