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.e8334860.js";import{S as y}from"./index.4526dbe2.js";import{b as S}from"./index.1ce6071f.js";import"./index.8ccae3ed.js";import"./index.8e270752.js";import"./ArrowLeftOutlined.f2be462a.js";import"./index.9c00a044.js";import"./index.bb44c0ae.js";import"./FullscreenOutlined.3bdb2bd5.js";import"./index.7dca26e0.js";import"./useWindowSizeFn.5c267a15.js";import"./useContentViewHeight.3536ea8e.js";import"./uniqBy.022010e0.js";import"./_baseIteratee.4870654f.js";import"./get.52047041.js";import"./index.a6c93adc.js";import"./useRefs.b991dc76.js";import"./PlusOutlined.dfc75c0d.js";import"./RedoOutlined.65c2a124.js";import"./index.111d9261.js";import"./lock.8a03a0aa.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};
|