lcny-vue3-antd-admin/dist/assets/SwitchItem.387a59e1.js

2 lines
1.5 KiB
JavaScript

import{J as s,a as p,b as d,c as m,f as l,aC as c,o as h,h as u,i as f,t as C,p as g,aD as _,n as v}from"./index.386d282e.js";import{S as y}from"./index.baac708b.js";import{b as S}from"./index.02d9f1b6.js";import"./index.a4125261.js";import"./index.3f852ff1.js";import"./ArrowLeftOutlined.d0a67d69.js";import"./index.a4901937.js";import"./index.327d6c0e.js";import"./FullscreenOutlined.8e2dba01.js";import"./index.6e7c7a22.js";import"./useWindowSizeFn.b2189b3b.js";import"./useContentViewHeight.d953a21b.js";import"./uniqBy.00038b98.js";import"./_baseIteratee.f2ab9724.js";import"./get.2def43f8.js";import"./index.9b1e46fa.js";import"./useRefs.a35bd218.js";import"./PlusOutlined.c6598d79.js";import"./RedoOutlined.ee9855e2.js";import"./index.faed4096.js";import"./lock.e903f42b.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 k(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",k],["__scopeId","data-v-440e72fd"]]);export{Q as default};