2 lines
1.5 KiB
JavaScript
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.daf28c96.js";import{S as y}from"./index.20404e8e.js";import{b as S}from"./index.12db3bd2.js";import"./index.eab87640.js";import"./index.70b87697.js";import"./ArrowLeftOutlined.07410f95.js";import"./index.2dce4fe8.js";import"./index.f1255e7b.js";import"./FullscreenOutlined.c6f7fd5a.js";import"./index.4cb2433b.js";import"./useWindowSizeFn.defc33d1.js";import"./useContentViewHeight.59e9c281.js";import"./uniqBy.dd2549bb.js";import"./_baseIteratee.7a5c7d41.js";import"./get.d1e65798.js";import"./index.9bf3da21.js";import"./useRefs.9e983538.js";import"./PlusOutlined.83c48b22.js";import"./RedoOutlined.7a27ba1a.js";import"./index.ce627ad8.js";import"./lock.e2b4f211.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};
|