2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{J as s,a as p,b as d,c as m,f as l,aA as c,o as h,h as u,i as f,t as C,p as g,aB as _,n as v}from"./index.e4176240.js";import{S as y}from"./index.7e68de96.js";import{b as S}from"./index.e2bb1039.js";import"./index.fef6f201.js";import"./index.e48447a0.js";import"./ArrowLeftOutlined.54a316a9.js";import"./index.e77abd91.js";import"./index.e4f111a5.js";import"./FullscreenOutlined.a92a15a3.js";import"./index.9ccd05c3.js";import"./useWindowSizeFn.7c933d53.js";import"./useContentViewHeight.9c129ec0.js";import"./uniqBy.685b5c92.js";import"./_baseIteratee.4ef33d0f.js";import"./get.55077b83.js";import"./index.cee9a07a.js";import"./useRefs.4a2babcc.js";import"./PlusOutlined.754993fb.js";import"./RedoOutlined.dcac1d59.js";import"./index.554cb07f.js";import"./lock.65ca8c49.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 B(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",B],["__scopeId","data-v-440e72fd"]]);export{Q as default};
|