import{d as r,e as d,U as l,a2 as p,a3 as m,a4 as c,a5 as h,k as u,ag as f,a6 as C}from"./vue-vendor-CxLCUzY4.js";import{H as g}from"./antd-vue-vendor-CDWW6V_M.js";import{C as b,K as k,_ as y}from"./index-CYriLmQo.js";import{b as B}from"./index-GjumQ7Np.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-qSr7C5NQ.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useHeaderSetting-CXg3DDAh.js";import"./useMultipleTabSetting-Bb15bRQg.js";const S=r({name:"SwitchItem",components:{Switch:g},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=b("setting-switch-item"),{t:n}=k(),o=d(()=>e.def?{checked:e.def}:{});function a(s){e.event&&B(e.event,s)}return{prefixCls:t,t:n,handleChange:a,getBindValue:o}}});function v(e,t,n,o,a,s){const i=l("Switch");return p(),m("div",{class:C(e.prefixCls)},[c("span",null,h(e.title),1),u(i,f(e.getBindValue,{onChange:e.handleChange,disabled:e.disabled,checkedChildren:e.t("layout.setting.on"),unCheckedChildren:e.t("layout.setting.off")}),null,16,["onChange","disabled","checkedChildren","unCheckedChildren"])],2)}const q=y(S,[["render",v],["__scopeId","data-v-f7b5b422"]]);export{q as default};
