switch.d.ts 778 B

12345678910111213141516171819202122232425262728293031323334
  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. onCloseIcon: string
  12. /** Class name of the icon displayed when in off state, overrides off-text */
  13. offCloseIcon: string
  14. /** Text displayed when in on state */
  15. onText: string
  16. /** Text displayed when in off state */
  17. offText: string
  18. /** Background color when in on state */
  19. onColor: string
  20. /** Background color when in off state */
  21. offColor: string
  22. /** Input name of Switch */
  23. name: string
  24. }