lcny-vue3-antd-admin/dist/assets/SwitchItem.2012b3ca.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.6407e71e.js";import{S as y}from"./index.90e417e3.js";import{b as S}from"./index.c538e9e6.js";import"./index.c6056783.js";import"./index.4c4aba63.js";import"./ArrowLeftOutlined.c0b57b2e.js";import"./index.013fa4b7.js";import"./index.ea1cf62e.js";import"./FullscreenOutlined.a76da29b.js";import"./index.f0661558.js";import"./useWindowSizeFn.ff73cb67.js";import"./useContentViewHeight.948e23a8.js";import"./uniqBy.0cbcda23.js";import"./_baseIteratee.86b09c57.js";import"./get.fb815bec.js";import"./index.23450929.js";import"./useRefs.6f259857.js";import"./PlusOutlined.e5117e4d.js";import"./RedoOutlined.4b6dde6c.js";import"./index.b719c4ff.js";import"./lock.2064df56.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-fd7354e2"]]);export{Q as default};