switch.d.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { ElementUIComponent } from './component'
  2. /** Switch Component */
  3. export declare class ElSwitch extends ElementUIComponent {
  4. /** Whether Switch is on */
  5. value: boolean
  6. /** Whether Switch is disabled */
  7. disabled: boolean
  8. /** Width of Switch */
  9. width: number
  10. /** Class name of the icon displayed when in on state, overrides on-text */
  11. activeIconClass: string
  12. /** Class name of the icon displayed when in off state, overrides off-text */
  13. inactiveIconClass: string
  14. /** Text displayed when in on state */
  15. activeText: string
  16. /** Text displayed when in off state */
  17. inactiveText: string
  18. /** Background color when in on state */
  19. activeColor: string
  20. /** Background color when in off state */
  21. inactiveColor: string
  22. /** Switch value when in on state */
  23. activeValue: string | boolean | number
  24. /** Switch value when in off state */
  25. inactiveValue: string | boolean | number
  26. /** Input name of Switch */
  27. name: string
  28. /** Whether to trigger form validation */
  29. validateEvent: boolean
  30. }