lcny-vue3-antd-admin/dist/assets/SwitchItem.f1edaab5.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.867f48c0.js";import{S as y}from"./index.68c934d6.js";import{b as S}from"./index.cde5909a.js";import"./index.8577e943.js";import"./index.0f1fec62.js";import"./ArrowLeftOutlined.2294d66c.js";import"./index.f860d291.js";import"./index.1bbe7242.js";import"./FullscreenOutlined.292b4326.js";import"./index.c6c750d7.js";import"./useWindowSizeFn.08bc7e9a.js";import"./useContentViewHeight.221a05c7.js";import"./uniqBy.d1706606.js";import"./_baseIteratee.79381cc0.js";import"./get.b0df836b.js";import"./index.dc7db57d.js";import"./useRefs.01fce650.js";import"./RedoOutlined.ab0376f6.js";import"./index.74f80d65.js";import"./lock.c6a9bed2.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};