2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{q as s,a as p,b as d,c as m,f as l,aE as c,o as h,h as u,i as f,t as C,p as g,aF as _,n as v}from"./index.fe4a8f33.js";import{S as y}from"./index.a19b4fff.js";import{b as S}from"./index.eeb98b4f.js";import"./index.fb9026e4.js";import"./index.45b3895e.js";import"./ArrowLeftOutlined.5eb8b727.js";import"./index.0279ef27.js";import"./index.bc4d775f.js";import"./FullscreenOutlined.637c676d.js";import"./index.14bfd34b.js";import"./useWindowSizeFn.f54b1eaa.js";import"./useContentViewHeight.4b680c2b.js";import"./uniqBy.aaa43b12.js";import"./_baseIteratee.278425b3.js";import"./get.3dc7fc10.js";import"./index.d8de32c8.js";import"./useRefs.eb1da46f.js";import"./PlusOutlined.185e027e.js";import"./RedoOutlined.837f44db.js";import"./index.41d6e5d6.js";import"./lock.a9b0ceba.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 k(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",k],["__scopeId","data-v-fd7354e2"]]);export{Q as default};
|