diff --git a/package/component/src/component/checkbox/index.vue b/package/component/src/component/checkbox/index.vue index 356aae84..15d609ef 100644 --- a/package/component/src/component/checkbox/index.vue +++ b/package/component/src/component/checkbox/index.vue @@ -13,12 +13,12 @@ import { CheckboxSize } from "./interface"; export interface CheckboxProps { name?: string; skin?: string; - value: string | number | object; label?: string; - isIndeterminate?: boolean; + value: string | number | object; modelValue?: boolean | Array; - disabled?: boolean; + isIndeterminate?: boolean; size?: CheckboxSize; + disabled?: boolean; } const props = withDefaults(defineProps(), { @@ -113,6 +113,8 @@ const isDisabled = computed(() => { } return false; }); + +defineExpose({ toggle: handleClick });