Skip to content

Commit 59dc98d

Browse files
Svrebertangjinzhou
authored andcommitted
fix: add typings for Empty component (#1439)
1 parent d52ed02 commit 59dc98d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

types/ant-design-vue.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { DatePicker } from './date-picker/date-picker';
2626
import { Divider } from './divider';
2727
import { Drawer } from './drawer';
2828
import { Dropdown } from './dropdown/dropdown';
29+
import { Empty } from './empty';
2930
import { Form } from './form/form';
3031
import { Icon } from './icon';
3132
import { Input } from './input/input';
@@ -93,6 +94,7 @@ export {
9394
DatePicker,
9495
Divider,
9596
Dropdown,
97+
Empty,
9698
Form,
9799
Icon,
98100
Input,

types/empty.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Project: https://github.com/vueComponent/ant-design-vue
2+
// Definitions by: Svreber <https://github.com/Svreber>
3+
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4+
5+
import { AntdComponent } from './component';
6+
import { VNode } from 'vue';
7+
8+
export declare class Empty extends AntdComponent {
9+
/**
10+
* customize description
11+
* @type string | VNode
12+
*/
13+
description: string | VNode;
14+
15+
/**
16+
* customize image. Will tread as image url when string provided
17+
* @default false
18+
* @type string | VNode
19+
*/
20+
image: string | VNode;
21+
22+
}

0 commit comments

Comments
 (0)