lcny-vue3-antd-admin/dist/assets/SwitchItem.2a769780.js

2 lines
1.5 KiB
JavaScript

import{L as s,a as p,b as d,c as m,f as l,aG as c,o as h,h as u,i as f,t as C,n as g,aH as _,q as v}from"./index.32c07267.js";import{S as y}from"./index.0a07f7b1.js";import{b as S}from"./index.7bcb7d00.js";import"./index.f87b1573.js";import"./index.1b438852.js";import"./ArrowLeftOutlined.97358e47.js";import"./index.0f130bbc.js";import"./index.5110a100.js";import"./FullscreenOutlined.ed8a6514.js";import"./index.3185795a.js";import"./useWindowSizeFn.4882e42a.js";import"./useContentViewHeight.ef6a5b55.js";import"./uniqBy.0c96aa5b.js";import"./_baseIteratee.67f8f2a9.js";import"./get.3e9b8a69.js";import"./index.692800a1.js";import"./useRefs.23253e0b.js";import"./RedoOutlined.4c6ffbb8.js";import"./index.bf7f68d4.js";import"./lock.36982ba5.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 O=s(b,[["render",k],["__scopeId","data-v-fd7354e2"]]);export{O as default};