mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
651438eef3
* switch: trigger form validation if value changes * add French translation * fix doc * trigger validation in watch handler
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
import { ElementUIComponent } from './component'
|
|
|
|
/** Switch Component */
|
|
export declare class ElSwitch extends ElementUIComponent {
|
|
/** Whether Switch is on */
|
|
value: boolean
|
|
|
|
/** Whether Switch is disabled */
|
|
disabled: boolean
|
|
|
|
/** Width of Switch */
|
|
width: number
|
|
|
|
/** Class name of the icon displayed when in on state, overrides on-text */
|
|
activeIconClass: string
|
|
|
|
/** Class name of the icon displayed when in off state, overrides off-text */
|
|
inactiveIconClass: string
|
|
|
|
/** Text displayed when in on state */
|
|
activeText: string
|
|
|
|
/** Text displayed when in off state */
|
|
inactiveText: string
|
|
|
|
/** Background color when in on state */
|
|
activeColor: string
|
|
|
|
/** Background color when in off state */
|
|
inactiveColor: string
|
|
|
|
/** Switch value when in on state */
|
|
activeValue: string | boolean | number
|
|
|
|
/** Switch value when in off state */
|
|
inactiveValue: string | boolean | number
|
|
|
|
/** Input name of Switch */
|
|
name: string
|
|
|
|
/** Whether to trigger form validation */
|
|
validateEvent: boolean
|
|
}
|