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.6ea620a9.js";import{S as y}from"./index.d631d74d.js";import{b as S}from"./index.f4747d3f.js";import"./index.03276535.js";import"./index.6e1042c8.js";import"./ArrowLeftOutlined.3f681554.js";import"./index.b244fa57.js";import"./index.49edcfa1.js";import"./FullscreenOutlined.98b8a334.js";import"./index.e7930e5e.js";import"./useWindowSizeFn.ad27b565.js";import"./useContentViewHeight.65ceecae.js";import"./uniqBy.b6e3341d.js";import"./_baseIteratee.66112976.js";import"./get.05fd2a5a.js";import"./index.412530e9.js";import"./useRefs.cf0e45d4.js";import"./PlusOutlined.9e2b9009.js";import"./RedoOutlined.1b5610b7.js";import"./index.fd492eb6.js";import"./lock.d99220bb.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};
|