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-CLZzJyTP.js";import{b as B}from"./index-BOJa5A7h.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-BjHivc1K.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useHeaderSetting-0sc9m_8B.js";import"./useMultipleTabSetting-CcgvkSPa.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};
