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.33255458.js";import{S as y}from"./index.81ab2ccb.js";import{b as S}from"./index.72ad5f91.js";import"./index.e61ad032.js";import"./index.687f9cda.js";import"./ArrowLeftOutlined.f5608701.js";import"./index.c08bd13c.js";import"./index.0abc21fe.js";import"./FullscreenOutlined.532554ef.js";import"./index.7f48fd81.js";import"./useWindowSizeFn.35da1380.js";import"./useContentViewHeight.51d725a1.js";import"./uniqBy.75a7fa7c.js";import"./_baseIteratee.c6ee7a76.js";import"./get.247d32eb.js";import"./index.bc7f609a.js";import"./useRefs.fe4189e6.js";import"./PlusOutlined.b71acc34.js";import"./RedoOutlined.e951bd19.js";import"./index.0a2fa382.js";import"./lock.ea134349.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};
|