1 |
- import{av as s,a as p,b as m,c as d,f as l,a_ as c,o as h,h as u,m as f,t as C,n as _,b0 as g,q as v}from"./index.e732a6c4.js";import{S as b}from"./index.aeafc823.js";import{b as y}from"./index.7abf7db1.js";import"./index.0d21dfda.js";import"./index.040d81ad.js";import"./ArrowLeftOutlined.ed827216.js";import"./index.7a5d609f.js";import"./index.324f6411.js";import"./FullscreenOutlined.67299bdd.js";import"./index.a0b3d302.js";import"./useWindowSizeFn.ef03f01e.js";import"./useContentViewHeight.b55f3b98.js";import"./uniqBy.1074b370.js";import"./_baseIteratee.9ce959b8.js";import"./get.cddfc9f0.js";import"./index.3b319fd0.js";import"./useRefs.c7c3b4e2.js";import"./PlusOutlined.4b135b37.js";import"./RedoOutlined.2f084204.js";import"./index.85ccf554.js";import"./TabPane.1757a2dd.js";import"./lock.a2ee251f.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}=m("setting-switch-item"),{t:o}=d(),n=l(()=>e.def?{checked:e.def}:{});function i(a){e.event&&y(e.event,a)}return{prefixCls:t,t:o,handleChange:i,getBindValue:n}}});function k(e,t,o,n,i,a){const r=c("Switch");return h(),u("div",{class:v(e.prefixCls)},[f("span",null,C(e.title),1),_(r,g(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)}var R=s(S,[["render",k],["__scopeId","data-v-fd7354e2"]]);export{R as default};
|