import e from"../_util/classNames.mjs";import t from"../config-provider/hooks/useConfigInject.mjs";import n from"./style/index.mjs";import{computed as r,createVNode as i,defineComponent as a}from"vue";var o=a({compatConfig:{MODE:3},name:`ACheckableTag`,inheritAttrs:!1,props:{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function},setup(a,{slots:o,emit:s,attrs:c}){let{prefixCls:l}=t(`tag`,a),[u,d]=n(l),f=e=>{let{checked:t}=a;s(`update:checked`,!t),s(`change`,!t),s(`click`,e)},p=r(()=>e(l.value,d.value,{[`${l.value}-checkable`]:!0,[`${l.value}-checkable-checked`]:a.checked}));return()=>u(i(`span`,{...c,class:[p.value,c.class],onClick:f},[o.default?.()]))}});export{o as default};