lcny-vue3-antd-admin/dist/assets/SwitchItem.6bb59e6c.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.2044f1ac.js";import{S as y}from"./index.a0a60f8c.js";import{b as S}from"./index.edaf52f4.js";import"./index.f13d55b4.js";import"./index.4dc40884.js";import"./ArrowLeftOutlined.5b0583b9.js";import"./index.5d9d7362.js";import"./index.d5a5532e.js";import"./FullscreenOutlined.469df3b9.js";import"./index.6bed9dcb.js";import"./useWindowSizeFn.18ff9786.js";import"./useContentViewHeight.b5855de3.js";import"./uniqBy.d844b87c.js";import"./_baseIteratee.f92f6b43.js";import"./get.3c61f980.js";import"./index.e8e616fa.js";import"./useRefs.42699c7a.js";import"./PlusOutlined.37442c6d.js";import"./RedoOutlined.852eb349.js";import"./index.a8a16896.js";import"./lock.472ab894.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};