2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{L as s,a as p,b as d,c as m,f as l,aG as c,o as h,h as u,i as f,t as C,n as g,aH as _,q as v}from"./index.49914b5a.js";import{S as y}from"./index.c500def9.js";import{b as S}from"./index.43108da9.js";import"./index.c456af0b.js";import"./index.964646e3.js";import"./ArrowLeftOutlined.f959b13b.js";import"./index.42090798.js";import"./index.ee354771.js";import"./FullscreenOutlined.6747fb97.js";import"./index.ed9035b4.js";import"./useWindowSizeFn.96491139.js";import"./useContentViewHeight.36f98ca6.js";import"./uniqBy.a8ee5355.js";import"./_baseIteratee.44597bea.js";import"./get.eb15741f.js";import"./index.d52f9af6.js";import"./useRefs.4a1afb1f.js";import"./RedoOutlined.061065da.js";import"./index.1493e146.js";import"./lock.ac3d5d6f.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 O=s(b,[["render",k],["__scopeId","data-v-fd7354e2"]]);export{O as default};
|