1 |
- import{f as r,b as d,_ as l}from"./entry/index-C__Tj75m-1725066351033.js";import{b as c}from"./index-B3SnrTfe.js";import{d as p,c as m,a5 as h,_ as u,$ as f,a0 as C,a1 as g,k as b,aa as k,a2 as y}from"./vue-Ba_NIFIa.js";import{a9 as B}from"./antd-DubAfnNp.js";import"./index-BclLUSBy.js";import"./index-C4jTwrnn.js";import"./useContentViewHeight-BszaVsoM.js";import"./useWindowSizeFn-CIFxkSyN.js";import"./useSortable-BGpRQ7DO.js";import"./index-C87Wr-F1.js";import"./lock-C1MnO-v0.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=h("Switch");return u(),f("div",{class:y(e.prefixCls)},[C("span",null,g(e.title),1),b(i,k(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};
|