button.d.ts 926 B

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