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.c32990f8.js";import{S as y}from"./index.d9bc5098.js";import{b as S}from"./index.c95ddf9c.js";import"./index.fd979a7c.js";import"./index.1a868190.js";import"./ArrowLeftOutlined.261ec900.js";import"./index.b9cb2689.js";import"./index.cc8794ff.js";import"./FullscreenOutlined.c00357d2.js";import"./index.508bc7ec.js";import"./useWindowSizeFn.aeae38b8.js";import"./useContentViewHeight.9f7d31eb.js";import"./uniqBy.ac8c5ce3.js";import"./_baseIteratee.b53edf8d.js";import"./get.0f83bcc9.js";import"./index.ec7e65df.js";import"./useRefs.e81244b6.js";import"./PlusOutlined.36faec12.js";import"./RedoOutlined.322588a1.js";import"./index.b9570ac8.js";import"./lock.5b93a1fe.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};
|