mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 修改类型报错的问题
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user