lcny-vue3-antd-admin/dist/assets/SwitchItem.4f8bd36d.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.2c8fd916.js";import{S as y}from"./index.d507ce46.js";import{b as S}from"./index.c1b41549.js";import"./index.eaa5fe48.js";import"./index.88bd2e47.js";import"./ArrowLeftOutlined.889429f0.js";import"./index.014ca1d3.js";import"./index.4ff14b0e.js";import"./FullscreenOutlined.2f05c247.js";import"./index.f35b6645.js";import"./useWindowSizeFn.d0fad18a.js";import"./useContentViewHeight.f0055632.js";import"./uniqBy.565a6da4.js";import"./_baseIteratee.c05f666b.js";import"./get.e497368a.js";import"./index.9c8662c0.js";import"./useRefs.6faa132d.js";import"./PlusOutlined.b2db69d1.js";import"./RedoOutlined.c889c338.js";import"./index.ea1d7a5b.js";import"./lock.b2d33efe.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};