lcny-vue3-antd-admin/dist/assets/SwitchItem.711a48b2.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.80d5b8a7.js";import{S as y}from"./index.d3965a8a.js";import{b as S}from"./index.d4547dc8.js";import"./index.981c2363.js";import"./index.27983812.js";import"./ArrowLeftOutlined.244b6f1a.js";import"./index.a2f39e1a.js";import"./index.0adc8521.js";import"./FullscreenOutlined.abcb6c9a.js";import"./index.d32a9310.js";import"./useWindowSizeFn.dff138d1.js";import"./useContentViewHeight.1aa83691.js";import"./uniqBy.ea1eebc1.js";import"./_baseIteratee.02af8ef8.js";import"./get.9ecf4090.js";import"./index.a27686ea.js";import"./useRefs.7ceb8caa.js";import"./PlusOutlined.9b92c179.js";import"./RedoOutlined.d76b2479.js";import"./index.e9772de4.js";import"./lock.f8c7317e.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};