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

2 lines
1.5 KiB
JavaScript

import{q as s,a as p,b as d,c as m,f as l,aE as c,o as h,h as u,i as f,t as C,p as g,aF as _,n as v}from"./index.d39002cd.js";import{S as y}from"./index.a78c7ba3.js";import{b as S}from"./index.ac35faaf.js";import"./index.48e0a0bc.js";import"./index.f4d17beb.js";import"./ArrowLeftOutlined.43fb40bd.js";import"./index.a65cfc0e.js";import"./index.84c3dcb2.js";import"./FullscreenOutlined.c9237a1e.js";import"./index.1d513f67.js";import"./useWindowSizeFn.b01bfa18.js";import"./useContentViewHeight.c16bb11a.js";import"./uniqBy.948a872c.js";import"./_baseIteratee.7084243b.js";import"./get.bf2aa0fe.js";import"./index.15c1ccfb.js";import"./useRefs.88f4372b.js";import"./PlusOutlined.6d8b56de.js";import"./RedoOutlined.89d86ff0.js";import"./index.c0ba52d9.js";import"./lock.174a315a.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-fd7354e2"]]);export{Q as default};