Pre Merge pull request !249 from Ming/dev

This commit is contained in:
Ming 2024-11-20 12:16:44 +00:00 committed by Gitee
commit 7459beec47
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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>