-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathbutton.d.ts
71 lines (60 loc) · 1.54 KB
/
button.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from "../component";
import { ButtonGroup } from "./button-group";
export declare class Button extends AntdComponent {
Group: ButtonGroup;
/**
* can be set to primary ghost dashed danger(added in 2.7) or omitted (meaning default)
* @default 'default'
* @type string
*/
type: "primary" | "danger" | "dashed" | "ghost" | "default";
/**
* set the original html type of button
* @default 'button'
* @type string
*/
htmlType: "button" | "submit" | "reset" | "menu";
/**
* set the icon of button
* @type string
*/
icon: string;
/**
* can be set to circle or circle-outline or omitted
* @type string
*/
shape: "circle" | "circle-outline";
/**
* can be set to small large or omitted
* @default 'default'
* @type string
*/
size: "small" | "large" | "default";
/**
* set the loading status of button
* @default false
* @type boolean | { delay: number }
*/
loading: boolean | { delay: number };
/**
* disabled state of button
* @default false
* @type boolean
*/
disabled: boolean;
/**
* make background transparent and invert text and border colors, added in 2.7
* @default false
* @type boolean
*/
ghost: boolean;
/**
* option to fit button width to its parent width
* @default false
* @type boolean
*/
block: boolean;
}