Skip to content

Commit 6b2764c

Browse files
committed
fix: update select type
1 parent c75582b commit 6b2764c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

types/select/select.d.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { Option } from './option';
77
import { OptionGroup } from './option-group';
88
import { VNodeChild, CSSProperties } from 'vue';
99
type dropdownRenderProps = {
10-
menu?: VNodeChild,
11-
props?: object
12-
}
10+
menuNode?: VNodeChild;
11+
props?: object;
12+
};
1313
export declare class Select extends AntdComponent {
1414
static Option: typeof Option;
1515
static OptGroup: typeof OptionGroup;
@@ -72,7 +72,7 @@ export declare class Select extends AntdComponent {
7272
* Customize dropdown content
7373
* @type function | slot-scope
7474
*/
75-
dropdownRender?: (props:dropdownRenderProps) => VNodeChild;
75+
dropdownRender?: (props: dropdownRenderProps) => VNodeChild;
7676

7777
/**
7878
* style of dropdown menu
@@ -159,7 +159,7 @@ export declare class Select extends AntdComponent {
159159
* Placeholder of select
160160
* @type any (string | slot)
161161
*/
162-
placeholder?: VNodeChild | JSX.Element
162+
placeholder?: VNodeChild | JSX.Element;
163163

164164
/**
165165
* Whether show search input in single mode.
@@ -186,25 +186,25 @@ export declare class Select extends AntdComponent {
186186
* The custom suffix icon
187187
* @type any (VNode | slot)
188188
*/
189-
suffixIcon?: VNodeChild | JSX.Element
189+
suffixIcon?: VNodeChild | JSX.Element;
190190

191191
/**
192192
* The custom remove icon
193193
* @type any (VNode | slot)
194194
*/
195-
removeIcon?: VNodeChild | JSX.Element
195+
removeIcon?: VNodeChild | JSX.Element;
196196

197197
/**
198198
* The custom clear icon
199199
* @type any (VNode | slot)
200200
*/
201-
clearIcon?: VNodeChild | JSX.Element
201+
clearIcon?: VNodeChild | JSX.Element;
202202

203203
/**
204204
* The custom menuItemSelected icon
205205
* @type any (VNode | slot)
206206
*/
207-
menuItemSelectedIcon?: VNodeChild | JSX.Element
207+
menuItemSelectedIcon?: VNodeChild | JSX.Element;
208208

209209
/**
210210
* Separator used to tokenize on tag/multiple mode
@@ -246,11 +246,11 @@ export declare class Select extends AntdComponent {
246246
/**
247247
* remove focus
248248
*/
249-
onBlur: (e?: Event) => void
249+
onBlur: (e?: Event) => void;
250250

251251
/**
252252
* get focus
253253
*/
254-
onFocus: (e?: Event) => void
255-
}
254+
onFocus: (e?: Event) => void;
255+
};
256256
}

0 commit comments

Comments
 (0)