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.03b48139.js";import{S as y}from"./index.882b01da.js";import{b as S}from"./index.ec7246d4.js";import"./index.89b099af.js";import"./index.5ecb525a.js";import"./ArrowLeftOutlined.cc886f5c.js";import"./index.663ab317.js";import"./index.4df3ce99.js";import"./FullscreenOutlined.612bdf6b.js";import"./index.12b3dc83.js";import"./useWindowSizeFn.8858b7bf.js";import"./useContentViewHeight.88d4aef6.js";import"./uniqBy.ce9f4663.js";import"./_baseIteratee.11332d9c.js";import"./get.1b83affd.js";import"./index.cb7b883c.js";import"./useRefs.2b386a65.js";import"./PlusOutlined.be243c67.js";import"./RedoOutlined.8d9f55a8.js";import"./index.b3d68ad9.js";import"./lock.5a98d39b.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-fd7354e2"]]);export{Q as default};
|