lcny-vue3-antd-admin/dist/assets/SwitchItem.30444569.js

2 lines
1.5 KiB
JavaScript

import{L as s,a as p,b as d,c as m,f as l,aG as c,o as h,h as u,i as f,t as C,n as g,aH as _,q as v}from"./index.78bf44cb.js";import{S as y}from"./index.f9f20932.js";import{b as S}from"./index.f36d81bf.js";import"./index.0ac429b9.js";import"./index.4e88fed7.js";import"./ArrowLeftOutlined.3f664644.js";import"./index.5ffdb515.js";import"./index.6f9a21f7.js";import"./FullscreenOutlined.0d89f50e.js";import"./index.e01793fa.js";import"./useWindowSizeFn.17456a25.js";import"./useContentViewHeight.8345518e.js";import"./uniqBy.92064fd0.js";import"./_baseIteratee.ce9ec913.js";import"./get.9d515986.js";import"./index.05a03ca0.js";import"./useRefs.6f73fc2f.js";import"./RedoOutlined.6da51422.js";import"./index.21e4e1d1.js";import"./lock.879e169a.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 O=s(b,[["render",k],["__scopeId","data-v-fd7354e2"]]);export{O as default};