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.0af5f3c7.js";import{S as y}from"./index.255f79bb.js";import{b as S}from"./index.701b13be.js";import"./index.20c076a8.js";import"./index.365ce481.js";import"./ArrowLeftOutlined.87e755e9.js";import"./index.1ad38bf5.js";import"./index.5e5087ba.js";import"./FullscreenOutlined.51e1a299.js";import"./index.f9150d71.js";import"./useWindowSizeFn.bea1b5d7.js";import"./useContentViewHeight.7a4fda07.js";import"./uniqBy.ebd435aa.js";import"./_baseIteratee.f2a8dc4d.js";import"./get.177a5851.js";import"./index.5f8636d8.js";import"./useRefs.50da323c.js";import"./PlusOutlined.4f056954.js";import"./RedoOutlined.ab77ea04.js";import"./index.e0b081a9.js";import"./lock.084b3b93.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};
|