1 |
- import{j as c,e as d,_ as l}from"./entry/index-C17E5Aqh.js";import{b as m}from"./index-FIsMwl6R.js";import{d as p,c as u,Z as h,_ as f,$ as C,a0 as g,k as b,ac as k,u as t,a1 as _}from"./vue-ByATgq5d.js";import{Z as y}from"./antd-FjOLgRLC.js";import"./index-F4cPx5w7.js";import"./useContentViewHeight-C55F9Pfv.js";import"./useWindowSizeFn-D8-jNAUn.js";import"./useSortable-ByzHqV5X.js";import"./index-BAzNbRu7.js";import"./lock-D_fXIkw2.js";const v=p({name:"SwitchItem",__name:"SwitchItem",props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(a){const e=a,{prefixCls:o}=c("setting-switch-item"),{t:n}=d(),i=u(()=>e.def?{checked:e.def}:{}),r=s=>{e.event&&m(e.event,s)};return(s,B)=>(h(),f("div",{class:_(t(o))},[C("span",null,g(a.title),1),b(t(y),k(i.value,{onChange:r,disabled:a.disabled,checkedChildren:t(n)("layout.setting.on"),unCheckedChildren:t(n)("layout.setting.off")}),null,16,["disabled","checkedChildren","unCheckedChildren"])],2))}}),E=l(v,[["__scopeId","data-v-b47b0939"]]);export{E as default};
|