lcny-vue3-antd-admin/dist/assets/SwitchItem.928891eb.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.00dffb67.js";import{S as y}from"./index.fbae67eb.js";import{b as S}from"./index.ab910246.js";import"./index.ef9d0f1d.js";import"./index.6b79819c.js";import"./ArrowLeftOutlined.c1ad9358.js";import"./index.23298376.js";import"./index.e5d8c4c7.js";import"./FullscreenOutlined.5259b253.js";import"./index.267ec8ac.js";import"./useWindowSizeFn.7dd1520b.js";import"./useContentViewHeight.1fe5c865.js";import"./uniqBy.05dc0a2e.js";import"./_baseIteratee.d85effb8.js";import"./get.321b638a.js";import"./index.ed3eb290.js";import"./useRefs.42f8c0f7.js";import"./PlusOutlined.bbfcedbd.js";import"./RedoOutlined.f60b7ba9.js";import"./index.e1dd5e37.js";import"./lock.85bb6488.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};