mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Cascader: correct type definitions of CascaderOption (#13613)
Allows `children` and `disabled` to be undefined
This commit is contained in:
4
types/cascader.d.ts
vendored
4
types/cascader.d.ts
vendored
@@ -7,8 +7,8 @@ export type ExpandTrigger = 'click' | 'hover'
|
||||
export interface CascaderOption {
|
||||
label: string,
|
||||
value: any,
|
||||
children: CascaderOption[],
|
||||
disabled: boolean
|
||||
children?: CascaderOption[],
|
||||
disabled?: boolean
|
||||
}
|
||||
|
||||
/** Cascader Component */
|
||||
|
||||
Reference in New Issue
Block a user