2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{aG as r,a as d,b as l,f as p,aI as c,o as m,h,i as u,t as f,j as C,b5 as g,n as _,c as v}from"./index.82c0877f.js";import{S as b}from"./index.966faded.js";import{b as y}from"./index.fdaeb054.js";import"./index.3a8c46be.js";import"./uniqBy.f755cc70.js";import"./_baseIteratee.5798a650.js";import"./index.dacd76fc.js";import"./useWindowSizeFn.4c098757.js";import"./useContentViewHeight.d9006a19.js";import"./index.c5230f8e.js";import"./RedoOutlined.aaf6c144.js";import"./lock.feaa9ad0.js";import"./ArrowLeftOutlined.7608b6bc.js";import"./index.34c27c3b.js";const S=d({name:"SwitchItem",components:{Switch:b},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=l("setting-switch-item"),{t:n}=v(),o=p(()=>e.def?{checked:e.def}:{});function a(s){e.event&&y(e.event,s)}return{prefixCls:t,t:n,handleChange:a,getBindValue:o}}});function k(e,t,n,o,a,s){const i=c("Switch");return m(),h("div",{class:_(e.prefixCls)},[u("span",null,f(e.title),1),C(i,g(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 A=r(S,[["render",k],["__scopeId","data-v-440e72fd"]]);export{A as default};
|