fix: 处理打包TS报错

This commit is contained in:
奔跑的面条 2022-09-08 17:33:46 +08:00
parent e091eb7b64
commit e2cda9140b
3 changed files with 5 additions and 3 deletions

View File

@ -46,7 +46,7 @@ import { option, FunnelOrderEnumList, FunnelLabelPositionEnumList } from './conf
const props = defineProps({
optionData: {
type: Object as PropType<typeof option>,
type: Object as PropType<typeof option & GlobalThemeJsonType>,
required: true
}
})

View File

@ -102,10 +102,11 @@
import { PropType, computed, reactive } from 'vue'
import { GlobalSetting, CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
import { option, RadarShapeEnumList } from './config'
import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
const props = defineProps({
optionData: {
type: Object as PropType<typeof option>,
type: Object as PropType<typeof option & GlobalThemeJsonType>,
required: true
}
})

View File

@ -56,11 +56,12 @@ import {
SettingItemBox,
SettingItem,
} from '@/components/Pages/ChartItemSetting'
import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
import { option } from './config'
const props = defineProps({
optionData: {
type: Object as PropType<typeof option>,
type: Object as PropType<typeof option & GlobalThemeJsonType>,
required: true,
},
})