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.af4276fc.js";import{S as y}from"./index.65bf9479.js";import{b as S}from"./index.d85fc7ef.js";import"./index.2ac87ab8.js";import"./index.c7575be5.js";import"./ArrowLeftOutlined.08aa3cba.js";import"./index.cd9d6bf5.js";import"./index.c03bd79d.js";import"./FullscreenOutlined.5618bd6b.js";import"./index.cb0b9637.js";import"./useWindowSizeFn.a78df3dc.js";import"./useContentViewHeight.f88de8c4.js";import"./uniqBy.232f8f98.js";import"./_baseIteratee.9103650a.js";import"./get.d2b260be.js";import"./index.a87efb78.js";import"./useRefs.1ecdf8c6.js";import"./PlusOutlined.44c54f6b.js";import"./RedoOutlined.59a5d065.js";import"./index.42a9c707.js";import"./lock.6e4debb3.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};
|