Skip to content

Commit 799e0d4

Browse files
committed
update ts
1 parent bd29880 commit 799e0d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

types/cascader.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import { AntdComponent } from './component';
66
import { VNode } from 'vue';
77

88
export interface CascaderOptionType {
9-
value?: string;
9+
value?: string | number;
1010
label?: any;
1111
disabled?: boolean;
1212
children?: any;
13-
key?: string;
13+
key?: string | number;
1414
}
1515

1616
export interface ShowSearchType {
@@ -70,9 +70,9 @@ export declare class Cascader extends AntdComponent {
7070

7171
/**
7272
* initial selected value
73-
* @type string[]
73+
* @type Array<string | number>
7474
*/
75-
defaultValue: string[];
75+
defaultValue: Array<string | number>;
7676

7777
/**
7878
* Whether disabled select
@@ -193,9 +193,9 @@ export declare class Cascader extends AntdComponent {
193193

194194
/**
195195
* selected value
196-
* @type string[]
196+
* @type Array<string | number>
197197
*/
198-
value: string[];
198+
value: Array<string | number>;
199199

200200
/**
201201
* remove focus

0 commit comments

Comments
 (0)