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,aC as c,o as h,h as u,i as f,t as C,p as g,aD as _,n as v}from"./index.2d67f695.js";import{S as y}from"./index.a6c30269.js";import{b as S}from"./index.63534c1e.js";import"./index.b7dccfea.js";import"./index.d41d4fb4.js";import"./ArrowLeftOutlined.89c958a1.js";import"./index.46989e11.js";import"./index.372ff998.js";import"./FullscreenOutlined.944e5604.js";import"./index.ec0029bb.js";import"./useWindowSizeFn.a1de7260.js";import"./useContentViewHeight.d3685a6c.js";import"./uniqBy.34ebbb75.js";import"./_baseIteratee.35e8d02a.js";import"./get.fedb4b7c.js";import"./index.b65a9c1e.js";import"./useRefs.593a31cc.js";import"./PlusOutlined.17cbaeae.js";import"./RedoOutlined.4a02ad1f.js";import"./index.b9446acf.js";import"./lock.a07fb9dd.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-440e72fd"]]);export{Q as default};
|