fix: 处理打包TS报错

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

View File

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

View File

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

View File

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