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.b121e32f.js";import{S as y}from"./index.ad91bc54.js";import{b as S}from"./index.25f66bae.js";import"./index.212bb7cf.js";import"./index.568132a8.js";import"./ArrowLeftOutlined.cf737888.js";import"./index.edf03643.js";import"./index.949e1588.js";import"./FullscreenOutlined.20da7722.js";import"./index.e1c0a7ef.js";import"./useWindowSizeFn.a38e8a57.js";import"./useContentViewHeight.62c1bd35.js";import"./uniqBy.14e45c68.js";import"./_baseIteratee.b33d352b.js";import"./get.c7a83c10.js";import"./index.215852ab.js";import"./useRefs.102eb145.js";import"./PlusOutlined.64a233de.js";import"./RedoOutlined.4560d5a9.js";import"./index.e4cc18da.js";import"./lock.0c78653d.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-440e72fd"]]);export{Q as default};
|