2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{L as s,a as p,b as d,c as m,f as l,aG as c,o as h,h as u,i as f,t as C,n as g,aH as _,q as v}from"./index.66fda55f.js";import{S as y}from"./index.b819a5e0.js";import{b as S}from"./index.6d28eaa8.js";import"./index.68bb645f.js";import"./index.641dc06f.js";import"./ArrowLeftOutlined.476002b8.js";import"./index.b2ee3398.js";import"./index.146dcad7.js";import"./FullscreenOutlined.9844a14c.js";import"./index.d706fae7.js";import"./useWindowSizeFn.543fbdda.js";import"./useContentViewHeight.a4f5c104.js";import"./uniqBy.300580fe.js";import"./_baseIteratee.d3cd63c9.js";import"./get.6f471eb6.js";import"./index.bd8788ce.js";import"./useRefs.023c9fad.js";import"./PlusOutlined.2e281232.js";import"./RedoOutlined.13d433c5.js";import"./index.dba243ce.js";import"./lock.a41847f4.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 k(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",k],["__scopeId","data-v-fd7354e2"]]);export{Q as default};
|