lcny-vue3-antd-admin/dist/assets/SwitchItem.5f412c25.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.3da9202c.js";import{S as y}from"./index.0252204c.js";import{b as S}from"./index.aa1e117d.js";import"./index.1e4da871.js";import"./index.a71ff158.js";import"./ArrowLeftOutlined.72672b90.js";import"./index.f9a3b1a0.js";import"./index.27a9d177.js";import"./FullscreenOutlined.94260c00.js";import"./index.2b40cd97.js";import"./useWindowSizeFn.d69d7c15.js";import"./useContentViewHeight.595aba1c.js";import"./uniqBy.febdff12.js";import"./_baseIteratee.4eff3186.js";import"./get.062e8fb7.js";import"./index.c90b416b.js";import"./useRefs.774c7056.js";import"./PlusOutlined.9639d6ce.js";import"./RedoOutlined.cc3b4e2c.js";import"./index.76c66b0f.js";import"./lock.bbd76686.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};