/
githubmirror
/
element
Обзор
Документация
Войти
/
githubmirror
/
element
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
types/button.d.ts
37 строк
926 B
Leopoldthecoder
update typings
18 окт 2017, 13:38
18 окт 2017, 13:38
1e95e51
Код
Авторство
О чём код?
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 }