fix: 处理 TS 报错

This commit is contained in:
奔跑的面条
2022-08-15 11:43:32 +08:00
parent bad7e37f5a
commit 09ebd67c37
7 changed files with 27 additions and 49 deletions
@@ -44,8 +44,6 @@ const props = defineProps({
required: true
}
})
console.log(props.groupData)
</script>
<style lang="scss" scoped>
@@ -13,7 +13,7 @@
<!-- 分组 -->
<preview-render-group
v-if="item.isGroup"
:groupData="item"
:groupData="(item as CreateComponentGroupType)"
:groupIndex="index"
:themeSetting="themeSetting"
:themeColor="themeColor"
@@ -21,6 +21,7 @@
<!-- 单组件 -->
<component
v-else
:is="item.chartConfig.chartKey"
:chartConfig="item"
:themeSetting="themeSetting"
@@ -34,6 +35,7 @@
import { PropType, computed } from 'vue'
import { ChartEditStorageType } from '../../index.d'
import { PreviewRenderGroup } from '../PreviewRenderGroup/index'
import { CreateComponentGroupType } from '@/packages/index.d'
import { chartColors } from '@/settings/chartThemes/index'
import { animationsClass, getFilterStyle, getTransformStyle } from '@/utils'
import { getSizeStyle, getComponentAttrStyle } from '../../utils'