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-CahNzUUa.js";import{C as b,K as k,_ as y}from"./index-Cy4uayzW.js";import{b as B}from"./index-BQJSeoLx.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-CJ4Xt1FM.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useHeaderSetting-CuqgO3-E.js";import"./useMultipleTabSetting-DhBHiAGf.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};
