lcny-vue3-antd-admin/dist/assets/SwitchItem.41519eb8.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.18dd6a55.js";import{S as y}from"./index.eba48b6c.js";import{b as S}from"./index.e278bcc1.js";import"./index.0cc79679.js";import"./index.f7a6e664.js";import"./ArrowLeftOutlined.4b489620.js";import"./index.fff71b29.js";import"./index.6fefd0fc.js";import"./FullscreenOutlined.ea545dd6.js";import"./index.134fc608.js";import"./useWindowSizeFn.b84f1217.js";import"./useContentViewHeight.11d3c07a.js";import"./uniqBy.a393ed7d.js";import"./_baseIteratee.938280dc.js";import"./get.278b3244.js";import"./index.6307c8fd.js";import"./useRefs.76472546.js";import"./PlusOutlined.86dec51f.js";import"./RedoOutlined.41090729.js";import"./index.21e986c3.js";import"./lock.212df263.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};