Skip to content

Commit 2b53c74

Browse files
authored
chore: update type result (#2684)
* chore: update type result
1 parent 74fe24b commit 2b53c74

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

types/result.d.ts

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
1+
import { VNodeChild } from 'vue';
12
import { AntdComponent } from './component';
23

34
export declare class Result extends AntdComponent {
4-
/**
5-
* result title
6-
* @type string
7-
*/
8-
title: any;
5+
$props: {
6+
/**
7+
* result title
8+
* @type string
9+
*/
10+
title?: VNodeChild | JSX.Element;
911

10-
/**
11-
* result sub title
12-
*
13-
* @type string
14-
*/
15-
subTitle: any;
12+
/**
13+
* result sub title
14+
*
15+
* @type string
16+
*/
17+
subTitle?: VNodeChild | JSX.Element;
1618

17-
/**
18-
* result status,decide icons and colors
19-
* enum of 'success' | 'error' | 'info' | 'warning'| '404' | '403' | '500'` | 'info'
20-
*
21-
* @default 'info'
22-
* @type string
23-
*/
24-
status: string;
19+
/**
20+
* result status,decide icons and colors
21+
* enum of 'success' | 'error' | 'info' | 'warning'| '404' | '403' | '500'` | 'info'
22+
*
23+
* @default 'info'
24+
* @type string
25+
*/
26+
status?: 'success' | 'error' | 'info' | 'warning' | '404' | '403' | '500';
2527

26-
/**
27-
* custom back icon
28-
* @type any v-slot
29-
*/
30-
icon: any;
28+
/**
29+
* custom back icon
30+
* @type any v-slot
31+
*/
32+
icon?: VNodeChild | JSX.Element;
3133

32-
/**
33-
* operating area
34-
* @type any v-slot
35-
*/
36-
extra: any;
34+
/**
35+
* operating area
36+
* @type any v-slot
37+
*/
38+
extra?: VNodeChild | JSX.Element;
39+
};
3740
}

0 commit comments

Comments
 (0)