lcny-vue3-antd-admin/dist/assets/SwitchItem.72c34229.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.3fced69a.js";import{S as y}from"./index.9317456d.js";import{b as S}from"./index.557f94e8.js";import"./index.362ca2fe.js";import"./index.9a255014.js";import"./ArrowLeftOutlined.f10d2485.js";import"./index.ef95c5ed.js";import"./index.76a29ea0.js";import"./FullscreenOutlined.224decf3.js";import"./index.d0a0b63b.js";import"./useWindowSizeFn.1ae733cc.js";import"./useContentViewHeight.9ef6c53a.js";import"./uniqBy.ca66b684.js";import"./_baseIteratee.8d14c840.js";import"./get.3c0f27da.js";import"./index.62c3eec0.js";import"./useRefs.ff12a575.js";import"./PlusOutlined.aa4b57a6.js";import"./RedoOutlined.8a0a0850.js";import"./index.0fb8ca83.js";import"./lock.449786fa.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};