fix(types): fix button group ts type warning (#1430)

This commit is contained in:
gimmyhehe 2024-02-27 09:25:33 +08:00 committed by GitHub
parent 30b7fe9cd6
commit ca95abd385
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -9,10 +9,12 @@ export interface IButtonGroupItemClass {
disabled?: boolean
plain?: boolean
}
// 可以通过textField和validField指定建值因此属性都为可选
export interface IButtonGroupNode {
text: string
value: string
disabled: boolean
text?: string
value?: string
disabled?: boolean
[otherKey: string]: any
}