| 1 |
- import{h as c,b as d,_ as l}from"./entry/index-CRWhxBeP.js";import{b as m}from"./index-DxugTXpV.js";import{d as p,c as h,Z as u,_ as f,$ as C,a0 as b,k as g,a9 as k,u as t,a1 as _}from"./vue-DM5HGU8Z.js";import{aG as y}from"./antd-BfqWtMX3.js";import"./index-CmdvmrJh.js";import"./useContentViewHeight-D9So7_ch.js";import"./useWindowSizeFn-CEueHQop.js";import"./imageEnum-BRgYKvjO.js";import"./uuid-BUBnBT7J.js";import"./useSortable-BUyXn7hO.js";import"./index-DYp2Qjp4.js";import"./lock-BIvCMmPC.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=h(()=>e.def?{checked:e.def}:{}),r=s=>{e.event&&m(e.event,s)};return(s,B)=>(u(),f("div",{class:_(t(o))},[C("span",null,b(a.title),1),g(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))}}),Z=l(v,[["__scopeId","data-v-b47b0939"]]);export{Z as default};
|