lcny-vue3-antd-admin/dist/assets/SwitchItem.011fe224.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.e5ec9b87.js";import{S as y}from"./index.4f03f0e0.js";import{b as S}from"./index.06b4167a.js";import"./index.6660db37.js";import"./index.dbfee24d.js";import"./ArrowLeftOutlined.c527df75.js";import"./index.bf38cb58.js";import"./index.d04e1b71.js";import"./FullscreenOutlined.c87e9e13.js";import"./index.39931bd5.js";import"./useWindowSizeFn.f296d405.js";import"./useContentViewHeight.a60e9205.js";import"./uniqBy.f71a9d76.js";import"./_baseIteratee.4dda6915.js";import"./get.9e37379d.js";import"./index.2c7007d3.js";import"./useRefs.0a3bd5aa.js";import"./PlusOutlined.515d5acb.js";import"./RedoOutlined.48c1d420.js";import"./index.5677887c.js";import"./lock.a146328c.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};