import{createVNode as u}from"vue";import{useInjectCascader as i}from"../context.mjs";function o({prefixCls:e,checked:t,halfChecked:l,disabled:n,onClick:s}){const{customSlots:r,checkable:a}=i(),c=a.value!==!1?r.value.checkable:a.value,d=typeof c=="function"?c():typeof c=="boolean"?null:c;return u("span",{class:{[e]:!0,[`${e}-checked`]:t,[`${e}-indeterminate`]:!t&&l,[`${e}-disabled`]:n},onClick:s},[d])}o.props=["prefixCls","checked","halfChecked","disabled","onClick"];o.displayName="Checkbox";o.inheritAttrs=!1;export{o as default};
