2017-10-18 18:31:03 +08:00
|
|
|
import { ElementUIComponent, ElementUIComponentSize } from './component'
|
2017-10-17 16:36:12 +08:00
|
|
|
|
|
|
|
/** Checkbox Component */
|
|
|
|
export declare class ElCheckbox extends ElementUIComponent {
|
|
|
|
/** The form input value */
|
|
|
|
value: string | string[]
|
|
|
|
|
|
|
|
/** Value of the checkbox when used inside a checkbox-group */
|
2017-10-18 18:31:03 +08:00
|
|
|
label: string | number | boolean
|
2017-10-17 16:36:12 +08:00
|
|
|
|
|
|
|
/** Value of the checkbox if it's checked */
|
|
|
|
trueLabel: string | number
|
|
|
|
|
|
|
|
/** Value of the checkbox if it's not checked */
|
|
|
|
falseLabel: string | number
|
|
|
|
|
|
|
|
/** Native 'name' attribute */
|
|
|
|
name: string
|
|
|
|
|
2017-10-18 18:31:03 +08:00
|
|
|
/** Whether to add a border around Checkbox */
|
|
|
|
border: boolean
|
|
|
|
|
|
|
|
/** Size of the Checkbox, only works when border is true */
|
|
|
|
size: ElementUIComponentSize
|
|
|
|
|
2017-10-17 16:36:12 +08:00
|
|
|
/** If the checkbox is disabled */
|
|
|
|
disabled: boolean
|
|
|
|
|
|
|
|
/** If the checkbox is checked */
|
|
|
|
checked: boolean
|
|
|
|
|
|
|
|
/** Same as indeterminate in native checkbox */
|
|
|
|
indeterminate: boolean
|
|
|
|
}
|