Skip to content

Commit 9f90d4c

Browse files
authored
chore: update type empty (#2685)
* chore: update type empty
1 parent 2b53c74 commit 9f90d4c

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

types/empty.d.ts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

55
import { AntdComponent } from './component';
6-
import { VNode } from 'vue';
6+
import { VNodeChild, CSSProperties } from 'vue';
77

88
export declare class Empty extends AntdComponent {
9-
/**
10-
* customize description
11-
* @type string | VNode
12-
*/
13-
description: string | VNode;
9+
$props: {
10+
/**
11+
* customize description
12+
* @type string | VNode
13+
*/
14+
description?: VNodeChild | JSX.Element;
1415

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-
imageStyle: object;
16+
/**
17+
* customize image. Will tread as image url when string provided
18+
* @default false
19+
* @type string | VNode
20+
*/
21+
image?: VNodeChild | JSX.Element;
22+
23+
imageStyle?: CSSProperties | string;
24+
};
2225
}

0 commit comments

Comments
 (0)