Procházet zdrojové kódy

fix: 处理打包TS报错

奔跑的面条 před 3 roky
rodič
revize
b277bd63c6

+ 1 - 1
src/packages/components/Charts/Mores/Funnel/config.vue

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

+ 2 - 1
src/packages/components/Charts/Mores/Radar/config.vue

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

+ 2 - 1
src/packages/components/Decorates/Decorates/Decorates03/config.vue

@@ -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,
   },
 })