2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{q as s,a as p,b as d,c as m,f as l,aC as c,o as h,h as u,i as f,t as C,p as g,aD as _,n as v}from"./index.96e740c6.js";import{S as y}from"./index.ba1abc61.js";import{b as S}from"./index.7cd8519d.js";import"./index.92355b32.js";import"./index.2bed69b0.js";import"./ArrowLeftOutlined.2ed7c2a1.js";import"./index.55c7cf53.js";import"./index.b30dc02e.js";import"./FullscreenOutlined.6f7d8842.js";import"./index.c1d7d73f.js";import"./useWindowSizeFn.90138703.js";import"./useContentViewHeight.d128193e.js";import"./uniqBy.743d7474.js";import"./_baseIteratee.c057c387.js";import"./get.f812c6f0.js";import"./index.bf080904.js";import"./useRefs.096b7468.js";import"./PlusOutlined.be5bfb66.js";import"./RedoOutlined.c6cde412.js";import"./index.fce5b5e4.js";import"./lock.2a98d76a.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-440e72fd"]]);export{Q as default};
|