lcny-vue3-antd-admin/dist/assets/SwitchItem.3ed94119.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.ed5deffd.js";import{S as y}from"./index.8d83801a.js";import{b as S}from"./index.610781ad.js";import"./index.a73969f1.js";import"./index.141e5e7b.js";import"./ArrowLeftOutlined.9abfd432.js";import"./index.cca952d1.js";import"./index.e52e1b26.js";import"./FullscreenOutlined.a18420c1.js";import"./index.2728b75d.js";import"./useWindowSizeFn.a262cec0.js";import"./useContentViewHeight.b8e37cbd.js";import"./uniqBy.6fa12436.js";import"./_baseIteratee.7c3a5712.js";import"./get.b38b45ae.js";import"./index.fc6584f6.js";import"./useRefs.045d664d.js";import"./PlusOutlined.21b5778a.js";import"./RedoOutlined.a1f78ebd.js";import"./index.97795651.js";import"./lock.ce1bad0e.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};