button.d.ts
926 Bytes
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
import { ElementUIComponent, ElementUIComponentSize } from './component'
/** Button type */
export type ButtonType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text'
/** Same as native button's type */
export type ButtonNativeType = 'button' | 'submit' | 'reset' | 'menu'
/** Button Component */
export declare class ElButton extends ElementUIComponent {
/** Button size */
size: ElementUIComponentSize
/** Button type */
type: ButtonType
/** Determine whether it's a plain button */
plain: boolean
/** Determine whether it's a round button */
round: boolean
/** Determine whether it's loading */
loading: boolean
/** Disable the button */
disabled: boolean
/** Button icon, accepts an icon name of Element icon component */
icon: string
/** Same as native button's autofocus */
autofocus: boolean
/** Same as native button's type */
nativeType: ButtonNativeType
}