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.7a3aee43.js";import{S as y}from"./index.6f58c8cc.js";import{b as S}from"./index.03c2c2cc.js";import"./index.1d68c09b.js";import"./index.0b66cf34.js";import"./ArrowLeftOutlined.7124f9fd.js";import"./index.a18fe362.js";import"./index.e974eee8.js";import"./FullscreenOutlined.995d8548.js";import"./index.017414a0.js";import"./useWindowSizeFn.3b8aec70.js";import"./useContentViewHeight.5f4c4641.js";import"./uniqBy.1f860c7e.js";import"./_baseIteratee.a76495c8.js";import"./get.6b5214c7.js";import"./index.978e8a3d.js";import"./useRefs.6d3ea2f5.js";import"./PlusOutlined.07f3848a.js";import"./RedoOutlined.fb87998f.js";import"./index.7c861ffa.js";import"./lock.3e924849.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};
|