3
3
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4
4
5
5
import { ButtonGroup } from './button-group' ;
6
+ import { VNodeChild } from 'vue' ;
6
7
7
8
export declare class Button {
8
9
static Group : typeof ButtonGroup ;
@@ -13,61 +14,61 @@ export declare class Button {
13
14
* @default 'default'
14
15
* @type string
15
16
*/
16
- type : 'primary' | 'danger' | 'dashed' | 'ghost' | 'default' ;
17
+ type ? : 'primary' | 'danger' | 'dashed' | 'ghost' | 'default' ;
17
18
18
19
/**
19
20
* set the original html type of button
20
21
* @default 'button'
21
22
* @type string
22
23
*/
23
- htmlType : 'button' | 'submit' | 'reset' | 'menu' ;
24
+ htmlType ? : 'button' | 'submit' | 'reset' | 'menu' ;
24
25
25
26
/**
26
27
* set the icon of button
27
28
* @type string
28
29
*/
29
- icon : string ;
30
+ icon ?: VNodeChild | JSX . Element ;
30
31
31
32
/**
32
33
* can be set to circle or circle-outline or omitted
33
34
* @type string
34
35
*/
35
- shape : 'circle' | 'circle-outline' ;
36
+ shape ? : 'circle' | 'circle-outline' ;
36
37
37
38
/**
38
39
* can be set to small large or omitted
39
40
* @default 'default'
40
41
* @type string
41
42
*/
42
- size : 'small' | 'large' | 'default' ;
43
+ size ? : 'small' | 'large' | 'default' ;
43
44
44
45
/**
45
46
* set the loading status of button
46
47
* @default false
47
48
* @type boolean | { delay: number }
48
49
*/
49
- loading : boolean | { delay : number } ;
50
+ loading ? : boolean | { delay : number } ;
50
51
51
52
/**
52
53
* disabled state of button
53
54
* @default false
54
55
* @type boolean
55
56
*/
56
- disabled : boolean ;
57
+ disabled ? : boolean ;
57
58
58
59
/**
59
60
* make background transparent and invert text and border colors, added in 2.7
60
61
* @default false
61
62
* @type boolean
62
63
*/
63
- ghost : boolean ;
64
+ ghost ? : boolean ;
64
65
65
66
/**
66
67
* option to fit button width to its parent width
67
68
* @default false
68
69
* @type boolean
69
70
*/
70
- block : boolean ;
71
+ block ? : boolean ;
71
72
72
73
onClick ?: ( e ?: Event ) => void ;
73
74
} ;
0 commit comments