checkbox.d.ts 881 B

12345678910111213141516171819202122232425262728293031323334
  1. import { ElementUIComponent, ElementUIComponentSize } from './component'
  2. /** Checkbox Component */
  3. export declare class ElCheckbox extends ElementUIComponent {
  4. /** The form input value */
  5. value: string | string[]
  6. /** Value of the checkbox when used inside a checkbox-group */
  7. label: string | number | boolean
  8. /** Value of the checkbox if it's checked */
  9. trueLabel: string | number
  10. /** Value of the checkbox if it's not checked */
  11. falseLabel: string | number
  12. /** Native 'name' attribute */
  13. name: string
  14. /** Whether to add a border around Checkbox */
  15. border: boolean
  16. /** Size of the Checkbox, only works when border is true */
  17. size: ElementUIComponentSize
  18. /** If the checkbox is disabled */
  19. disabled: boolean
  20. /** If the checkbox is checked */
  21. checked: boolean
  22. /** Same as indeterminate in native checkbox */
  23. indeterminate: boolean
  24. }