Browse Source

fix: add typings for Empty component (#1439)

pull/1445/head
Sven Reber 5 years ago committed by tangjinzhou
parent
commit
59dc98dbd1
  1. 2
      types/ant-design-vue.d.ts
  2. 22
      types/empty.d.ts

2
types/ant-design-vue.d.ts vendored

@ -26,6 +26,7 @@ import { DatePicker } from './date-picker/date-picker';
import { Divider } from './divider';
import { Drawer } from './drawer';
import { Dropdown } from './dropdown/dropdown';
import { Empty } from './empty';
import { Form } from './form/form';
import { Icon } from './icon';
import { Input } from './input/input';
@ -93,6 +94,7 @@ export {
DatePicker,
Divider,
Dropdown,
Empty,
Form,
Icon,
Input,

22
types/empty.d.ts vendored

@ -0,0 +1,22 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: Svreber <https://github.com/Svreber>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { VNode } from 'vue';
export declare class Empty extends AntdComponent {
/**
* customize description
* @type string | VNode
*/
description: string | VNode;
/**
* customize image. Will tread as image url when string provided
* @default false
* @type string | VNode
*/
image: string | VNode;
}
Loading…
Cancel
Save