use-checkbox.d.ts 937 B

12345678910111213141516
  1. import type { ComponentInternalInstance } from 'vue';
  2. import type { CheckboxProps } from '../checkbox';
  3. export declare const useCheckbox: (props: CheckboxProps, slots: ComponentInternalInstance["slots"]) => {
  4. inputId: import("vue").Ref<string | undefined>;
  5. isLabeledByFormItem: import("vue").ComputedRef<boolean>;
  6. isChecked: import("vue").ComputedRef<boolean>;
  7. isDisabled: import("vue").ComputedRef<boolean>;
  8. isFocused: import("vue").Ref<boolean>;
  9. checkboxButtonSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
  10. checkboxSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
  11. hasOwnLabel: import("vue").ComputedRef<boolean>;
  12. model: import("vue").WritableComputedRef<any>;
  13. actualValue: import("vue").ComputedRef<string | number | boolean | Record<string, any> | undefined>;
  14. handleChange: (e: Event) => void;
  15. onClickRoot: (e: MouseEvent) => Promise<void>;
  16. };