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.181bb515.js";import{S as y}from"./index.868e3e28.js";import{b as S}from"./index.3e8a66a4.js";import"./index.d4649608.js";import"./index.8e391844.js";import"./ArrowLeftOutlined.ecec840a.js";import"./index.500aa910.js";import"./index.49bf0969.js";import"./FullscreenOutlined.36473fee.js";import"./index.9dbecbe7.js";import"./useWindowSizeFn.7fb0b76d.js";import"./useContentViewHeight.5f5ab084.js";import"./uniqBy.fd5c7ab6.js";import"./_baseIteratee.18ba8164.js";import"./get.6ddd6403.js";import"./index.550cdddb.js";import"./useRefs.7ce4963c.js";import"./PlusOutlined.42a1d465.js";import"./RedoOutlined.c39ea0f7.js";import"./index.55f6c545.js";import"./lock.398aed77.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};
|