lcny-vue3-antd-admin/dist/assets/SwitchItem.4ccf3d22.js

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.c7fa22f5.js";import{S as y}from"./index.8101b650.js";import{b as S}from"./index.5fd290bc.js";import"./index.778c94ba.js";import"./index.470da8a8.js";import"./ArrowLeftOutlined.be3a4aa5.js";import"./index.58e21348.js";import"./index.820b6e08.js";import"./FullscreenOutlined.d8187b4e.js";import"./index.9f8792de.js";import"./useWindowSizeFn.3c4b8dd9.js";import"./useContentViewHeight.65fc8a99.js";import"./uniqBy.3a5e94aa.js";import"./_baseIteratee.7c31a07d.js";import"./get.06bec7bc.js";import"./index.342b86ec.js";import"./useRefs.cc9441e8.js";import"./PlusOutlined.2fc9ec57.js";import"./RedoOutlined.d067d0bd.js";import"./index.f4f37e4c.js";import"./lock.cf4a5072.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};