Cascader: correct type definitions of CascaderOption (#13613)

Allows `children` and `disabled` to be undefined
pull/13658/head
NateScarlet 2018-11-30 19:12:37 +08:00 committed by hetech
parent 814740b63c
commit 62cce0e98c
1 changed files with 2 additions and 2 deletions

4
types/cascader.d.ts vendored
View File

@ -7,8 +7,8 @@ export type ExpandTrigger = 'click' | 'hover'
export interface CascaderOption { export interface CascaderOption {
label: string, label: string,
value: any, value: any,
children: CascaderOption[], children?: CascaderOption[],
disabled: boolean disabled?: boolean
} }
/** Cascader Component */ /** Cascader Component */