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

2 lines
1.5 KiB
JavaScript

import{q 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.917e09be.js";import{S as y}from"./index.bc340234.js";import{b as S}from"./index.122daf4d.js";import"./index.4a1d92cc.js";import"./index.6e12223c.js";import"./ArrowLeftOutlined.74d2ead8.js";import"./index.0aebd4a3.js";import"./index.cff3e742.js";import"./FullscreenOutlined.1ce4a094.js";import"./index.313124fe.js";import"./useWindowSizeFn.5b43183e.js";import"./useContentViewHeight.9c115d57.js";import"./uniqBy.23d4cbd7.js";import"./_baseIteratee.3357ca3a.js";import"./get.ead855cb.js";import"./index.5b761e22.js";import"./useRefs.22686956.js";import"./PlusOutlined.db8db36f.js";import"./RedoOutlined.ecdf7fba.js";import"./index.7702d421.js";import"./lock.c8dbab9b.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};