lcny-vue3-antd-admin/dist/assets/SwitchItem.b6a49140.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.77232945.js";import{S as y}from"./index.4489f444.js";import{b as S}from"./index.e944077c.js";import"./index.8b1d5800.js";import"./index.bd6b9c71.js";import"./ArrowLeftOutlined.9e2ffa71.js";import"./index.cdbd692e.js";import"./index.3263ebc8.js";import"./FullscreenOutlined.c50d1010.js";import"./index.8afdc74c.js";import"./useWindowSizeFn.e0d027ce.js";import"./useContentViewHeight.8a086a20.js";import"./uniqBy.ad308d2e.js";import"./_baseIteratee.b0866b0b.js";import"./get.b66bb2fe.js";import"./index.466a44c6.js";import"./useRefs.4fb28289.js";import"./PlusOutlined.63f06739.js";import"./RedoOutlined.ea81f023.js";import"./index.d465a0b9.js";import"./lock.fe7ea51e.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};