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.f9240906.js";import{S as b}from"./index.6ebf08b3.js";import{b as y}from"./index.769a5dcd.js";import"./index.51ec6257.js";import"./index.5459a547.js";import"./ArrowLeftOutlined.8ef55b3d.js";import"./index.db62f8f7.js";import"./index.694cbe8b.js";import"./FullscreenOutlined.16e551d7.js";import"./index.37126e12.js";import"./useWindowSizeFn.e05ba499.js";import"./useContentViewHeight.51fb01ea.js";import"./uniqBy.8dd4637c.js";import"./_baseIteratee.dc5455db.js";import"./get.10de1502.js";import"./index.bc1d0b0a.js";import"./useRefs.704645bf.js";import"./PlusOutlined.d3b73e32.js";import"./RedoOutlined.74a164b2.js";import"./index.55d1c7b9.js";import"./TabPane.9a67e6d2.js";import"./lock.a04a9985.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};
|