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.10d06543.js";import{S as y}from"./index.1dd41060.js";import{b as S}from"./index.c06d2458.js";import"./index.f4cd53d5.js";import"./index.92c669b8.js";import"./ArrowLeftOutlined.804f6521.js";import"./index.a5e82843.js";import"./index.18988f8a.js";import"./FullscreenOutlined.bc4a08a6.js";import"./index.915ff3c0.js";import"./useWindowSizeFn.a9703094.js";import"./useContentViewHeight.1f792a27.js";import"./uniqBy.eed4f041.js";import"./_baseIteratee.ce67176e.js";import"./get.bd6d3db4.js";import"./index.e8eaf16a.js";import"./useRefs.335cb825.js";import"./PlusOutlined.caedd276.js";import"./RedoOutlined.9008bb6f.js";import"./index.1565d633.js";import"./lock.09621c9c.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 Q=s(b,[["render",k],["__scopeId","data-v-fd7354e2"]]);export{Q as default};
|