Skip to content

Commit f38979f

Browse files
committed
chore: udpate type
1 parent ca2bfbd commit f38979f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ant-design-vue",
3-
"version": "2.0.0-beta.8",
3+
"version": "2.0.0-beta.9",
44
"title": "Ant Design Vue",
55
"description": "An enterprise-class UI design language and Vue-based implementation",
66
"keywords": [

types/select/option.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

55
import { AntdComponent, AntdProps } from '../component';
6+
import { VNodeChild } from 'vue';
67

78
export declare class Option extends AntdComponent {
89
$props: AntdProps & {
@@ -36,5 +37,6 @@ export declare class Option extends AntdComponent {
3637
* @type string
3738
*/
3839
class?: string;
40+
label?: VNodeChild | JSX.Element;
3941
};
4042
}

types/select/select.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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;
254+
onFocus?: (e?: Event) => void;
255255
};
256256
}

0 commit comments

Comments
 (0)