123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- import type { ExtractPropTypes } from 'vue';
- import type Checkbox from './checkbox.vue';
- export declare type CheckboxValueType = string | number | boolean;
- export declare const checkboxProps: {
- /**
- * @description binding value
- */
- modelValue: {
- type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
- default: undefined;
- };
- /**
- * @description value of the Checkbox when used inside a `checkbox-group`
- */
- label: {
- type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
- };
- /**
- * @description Set indeterminate state, only responsible for style control
- */
- indeterminate: BooleanConstructor;
- /**
- * @description whether the Checkbox is disabled
- */
- disabled: BooleanConstructor;
- /**
- * @description if the Checkbox is checked
- */
- checked: BooleanConstructor;
- /**
- * @description native 'name' attribute
- */
- name: {
- type: StringConstructor;
- default: undefined;
- };
- /**
- * @description value of the Checkbox if it's checked
- */
- trueLabel: {
- type: (StringConstructor | NumberConstructor)[];
- default: undefined;
- };
- /**
- * @description value of the Checkbox if it's not checked
- */
- falseLabel: {
- type: (StringConstructor | NumberConstructor)[];
- default: undefined;
- };
- /**
- * @description input id
- */
- id: {
- type: StringConstructor;
- default: undefined;
- };
- /**
- * @description same as [aria-controls](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls), takes effect when `indeterminate` is `true`
- */
- controls: {
- type: StringConstructor;
- default: undefined;
- };
- /**
- * @description whether to add a border around Checkbox
- */
- border: BooleanConstructor;
- /**
- * @description size of the Checkbox
- */
- size: {
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
- readonly required: false;
- readonly validator: ((val: unknown) => boolean) | undefined;
- __epPropKey: true;
- };
- /**
- * @description input tabindex
- */
- tabindex: (StringConstructor | NumberConstructor)[];
- /**
- * @description whether to trigger form validation
- */
- validateEvent: {
- type: BooleanConstructor;
- default: boolean;
- };
- };
- export declare const checkboxEmits: {
- "update:modelValue": (val: CheckboxValueType) => boolean;
- change: (val: CheckboxValueType) => boolean;
- };
- export declare type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
- export declare type CheckboxEmits = typeof checkboxEmits;
- export declare type CheckboxInstance = InstanceType<typeof Checkbox>;
|