Browse Source

Cascader: correct type definitions of CascaderOption (#13613)

Allows `children` and `disabled` to be undefined
NateScarlet 6 năm trước cách đây
mục cha
commit
62cce0e98c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      types/cascader.d.ts

+ 2 - 2
types/cascader.d.ts

@@ -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 */