Skip to content

Commit

Permalink
refactor(baInput):优化 FormItem 组件的类型定义
Browse files Browse the repository at this point in the history
  • Loading branch information
build-admin committed Jun 25, 2024
1 parent 0e4bcd0 commit 27ecbff
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions web/src/components/formItem/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import type { CSSProperties } from 'vue'
import type { FormItemRule } from 'element-plus'
import type { FormItemProps } from 'element-plus'

export interface FormItemAttr {
export interface FormItemAttr extends Partial<FormItemProps> {
id?: string
class?: string
prop?: string | string[]
labelWidth?: string | number
required?: boolean
rules?: FormItemRule | FormItemRule[]
error?: string
showMessage?: boolean
inlineMessage?: boolean
size?: 'large' | 'default' | 'small'
style?: CSSProperties
blockHelp?: string
}

0 comments on commit 27ecbff

Please sign in to comment.