浏览代码

Cascader: correct type definitions of CascaderOption (#13613)

Allows `children` and `disabled` to be undefined
NateScarlet 6 年之前
父节点
当前提交
62cce0e98c
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 */