button.d.ts 861 B

12345678910111213141516171819202122232425262728293031323334
  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 loading */
  15. loading: Boolean
  16. /** Disable the button */
  17. disabled: boolean
  18. /** Button icon, accepts an icon name of Element icon component */
  19. icon: string
  20. /** Same as native button's autofocus */
  21. autofocus: boolean
  22. /** Same as native button's type */
  23. nativeType: ButtonNativeType
  24. }