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.306321d2.js";import{S as y}from"./index.a44e737e.js";import{b as S}from"./index.62e5d7d5.js";import"./index.7b454bb6.js";import"./index.e6092d3f.js";import"./ArrowLeftOutlined.c14fe59c.js";import"./index.33dfdb53.js";import"./index.46215238.js";import"./FullscreenOutlined.396255d0.js";import"./index.c423de09.js";import"./useWindowSizeFn.668d8f3f.js";import"./useContentViewHeight.f87aedee.js";import"./uniqBy.478b26b1.js";import"./_baseIteratee.b182c69f.js";import"./get.6e8fe047.js";import"./index.521276ea.js";import"./useRefs.de5b6c9d.js";import"./PlusOutlined.b7bc7711.js";import"./RedoOutlined.83034399.js";import"./index.938587e8.js";import"./lock.960222b1.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};
|