2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{q as s,a as p,b as d,c as m,f as l,aC as c,o as h,h as u,i as f,t as C,p as g,aD as _,n as v}from"./index.b56218e3.js";import{S as y}from"./index.04f94c35.js";import{b as S}from"./index.8276ef8f.js";import"./index.58543c13.js";import"./index.cd3cda07.js";import"./ArrowLeftOutlined.beca8456.js";import"./index.1d137040.js";import"./index.2d295b7c.js";import"./FullscreenOutlined.df04a8af.js";import"./index.9406eefb.js";import"./useWindowSizeFn.f9d5ec9c.js";import"./useContentViewHeight.889f30a5.js";import"./uniqBy.27125bbb.js";import"./_baseIteratee.5bc6cd3b.js";import"./get.38aee530.js";import"./index.19c44165.js";import"./useRefs.f74cd62f.js";import"./PlusOutlined.8feef190.js";import"./RedoOutlined.771d23fd.js";import"./index.26f7f90a.js";import"./lock.68f305b4.js";const b=p({name:"SwitchItem",components:{Switch:y},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=d("setting-switch-item"),{t:n}=m(),o=l(()=>e.def?{checked:e.def}:{});function i(a){e.event&&S(e.event,a)}return{prefixCls:t,t:n,handleChange:i,getBindValue:o}}});function k(e,t,n,o,i,a){const r=c("Switch");return h(),u("div",{class:v(e.prefixCls)},[f("span",null,C(e.title),1),g(r,_(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 Q=s(b,[["render",k],["__scopeId","data-v-440e72fd"]]);export{Q as default};
|