lcny-vue3-antd-admin/dist/assets/SwitchItem.bb19c4f9.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.9eaafe08.js";import{S as y}from"./index.46499997.js";import{b as S}from"./index.6211707c.js";import"./index.cbd179ed.js";import"./index.f7dfa6c7.js";import"./ArrowLeftOutlined.e70d546b.js";import"./index.a347edec.js";import"./index.886150a5.js";import"./FullscreenOutlined.36c2b99a.js";import"./index.c4fe2873.js";import"./useWindowSizeFn.ddbcc16d.js";import"./useContentViewHeight.8c451f39.js";import"./uniqBy.ad6f72de.js";import"./_baseIteratee.cd39514c.js";import"./get.ce38d143.js";import"./index.ed7042a4.js";import"./useRefs.d6227c76.js";import"./PlusOutlined.4ea0908e.js";import"./RedoOutlined.b10b38f2.js";import"./index.0449eb9d.js";import"./lock.89e3d2b2.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-fd7354e2"]]);export{Q as default};