2 lines
1.4 KiB
JavaScript
2 lines
1.4 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.15bf95a0.js";import{S as y}from"./index.cc426235.js";import{b as S}from"./index.13c3b32e.js";import"./index.bc0989a7.js";import"./index.6b3f1a50.js";import"./ArrowLeftOutlined.2f86be89.js";import"./index.b95f149a.js";import"./index.6858ef6d.js";import"./FullscreenOutlined.dca4c038.js";import"./index.aaf498b4.js";import"./useWindowSizeFn.496bb47f.js";import"./useContentViewHeight.f193840f.js";import"./uniqBy.b7a1b0f6.js";import"./_baseIteratee.08430898.js";import"./get.05ad8139.js";import"./index.253e68b1.js";import"./useRefs.5c9b400e.js";import"./RedoOutlined.42c5349c.js";import"./lock.aa41b2e8.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 a(i){e.event&&S(e.event,i)}return{prefixCls:t,t:n,handleChange:a,getBindValue:o}}});function k(e,t,n,o,a,i){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 M=s(b,[["render",k],["__scopeId","data-v-fd7354e2"]]);export{M as default};
|