lcny-vue3-antd-admin/dist/assets/SwitchItem.78bad504.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.447fcd47.js";import{S as y}from"./index.e790e523.js";import{b as S}from"./index.8ff9e81f.js";import"./index.48c99b5b.js";import"./index.b53971bb.js";import"./ArrowLeftOutlined.92b7f9df.js";import"./index.39a016d6.js";import"./index.c5e84787.js";import"./FullscreenOutlined.1a2449a1.js";import"./index.23f5b46e.js";import"./useWindowSizeFn.10277ba6.js";import"./useContentViewHeight.cd643d8d.js";import"./uniqBy.8c6ea8ad.js";import"./_baseIteratee.156fdacb.js";import"./get.db2ca295.js";import"./index.38a5c08f.js";import"./useRefs.bc1e0f8a.js";import"./PlusOutlined.85be7614.js";import"./RedoOutlined.84275451.js";import"./index.cc22d934.js";import"./lock.f98e74c4.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};