UNPKG

926 BTypeScriptView Raw
1import { ElementUIComponent, ElementUIComponentSize } from './component'
2
3/** Button type */
4export type ButtonType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text'
5
6/** Same as native button's type */
7export type ButtonNativeType = 'button' | 'submit' | 'reset' | 'menu'
8
9/** Button Component */
10export declare class ElButton extends ElementUIComponent {
11 /** Button size */
12 size: ElementUIComponentSize
13
14 /** Button type */
15 type: ButtonType
16
17 /** Determine whether it's a plain button */
18 plain: boolean
19
20 /** Determine whether it's a round button */
21 round: boolean
22
23 /** Determine whether it's loading */
24 loading: boolean
25
26 /** Disable the button */
27 disabled: boolean
28
29 /** Button icon, accepts an icon name of Element icon component */
30 icon: string
31
32 /** Same as native button's autofocus */
33 autofocus: boolean
34
35 /** Same as native button's type */
36 nativeType: ButtonNativeType
37}