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.c712ed7b.js";import{S as y}from"./index.74ad148d.js";import{b as S}from"./index.1b4569f8.js";import"./index.adb59d02.js";import"./index.1ac097b0.js";import"./ArrowLeftOutlined.26c8d557.js";import"./index.d1490b46.js";import"./index.9e33f308.js";import"./FullscreenOutlined.a3738157.js";import"./index.b6286aff.js";import"./useWindowSizeFn.b2a6669b.js";import"./useContentViewHeight.01bb0e6b.js";import"./uniqBy.b2f4dba0.js";import"./_baseIteratee.6b39f5e9.js";import"./get.e92740ea.js";import"./index.436b21b4.js";import"./useRefs.a2ab96f9.js";import"./PlusOutlined.987fa741.js";import"./RedoOutlined.f9cf99d5.js";import"./index.bf99b58e.js";import"./lock.efcc4909.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};
|