1 |
- import{f as r,b as d,_ as l}from"./entry/index-BOVpYCVt-1731915664217.js";import{b as c}from"./index-DXPgbbvn.js";import{d as p,c as m,_ as h,$ as u,a1 as f,a2 as C,k as g,aa as b,a3 as k,a9 as y}from"./vue-B5pbXMv7.js";import{a9 as B}from"./antd-DXvsKA0x.js";import"./index-EdNvCi60.js";import"./index-tXeR2Yb0.js";import"./useContentViewHeight-0Tf8Jxwa.js";import"./useWindowSizeFn-CzjmevD7.js";import"./useSortable-CRwDSVfI.js";import"./index-CwBw3p8r.js";import"./lock-BXXmP9_P.js";const S=p({name:"SwitchItem",components:{Switch:B},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=r("setting-switch-item"),{t:n}=d(),a=m(()=>e.def?{checked:e.def}:{});return{prefixCls:t,t:n,handleChange:o=>{e.event&&c(e.event,o)},getBindValue:a}}});function _(e,t,n,a,s,o){const i=y("Switch");return h(),u("div",{class:k(e.prefixCls)},[f("span",null,C(e.title),1),g(i,b(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 j=l(S,[["render",_],["__scopeId","data-v-19280094"]]);export{j as default};
|