fix: 修改类型报错的问题

This commit is contained in:
MTrun
2022-02-25 15:51:19 +08:00
parent edfdcee3a4
commit 8e9905816e
4 changed files with 19 additions and 7 deletions
@@ -246,7 +246,7 @@ import {
} from '@/components/ChartItemSetting/index'
const props = defineProps({
data: {
optiondata: {
type: Object as PropType<GlobalThemeJsonType>,
required: true
},
@@ -258,19 +258,19 @@ const props = defineProps({
})
const title = computed(() => {
return props.data.title
return props.optiondata.title
})
const xAxis = computed(() => {
return props.data.xAxis
return props.optiondata.xAxis
})
const yAxis = computed(() => {
return props.data.yAxis
return props.optiondata.yAxis
})
const legend = computed(() => {
return props.data.legend
return props.optiondata.legend
})
</script>