mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-09 02:31:33 +08:00
38 lines
926 B
TypeScript
38 lines
926 B
TypeScript
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
|
|
}
|