fix: 解决类型检测报错

This commit is contained in:
kailong321200875
2023-07-26 15:15:13 +08:00
parent 82245ee6d0
commit 28bf8bee45
5 changed files with 259 additions and 259 deletions

View File

@@ -620,6 +620,7 @@ export interface FormSchema {
| InputPasswordComponentProps
| TreeSelectComponentProps
| UploadComponentProps
| any
/**
* formItem组件属性具体可以查看element-plus文档

View File

@@ -3,7 +3,7 @@ import { PropType } from 'vue'
import { Highlight } from '@/components/Highlight'
import { useDesign } from '@/hooks/web/useDesign'
import { propTypes } from '@/utils/propTypes'
import { TipSchema } from '@/types/infoTip'
import { InfoTipSchema } from './types'
const { getPrefixCls } = useDesign()
@@ -12,7 +12,7 @@ const prefixCls = getPrefixCls('infotip')
defineProps({
title: propTypes.string.def(''),
schema: {
type: Array as PropType<Array<string | TipSchema>>,
type: Array as PropType<Array<string | InfoTipSchema>>,
required: true,
default: () => []
},