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.c4b7c8b0.js";import{S as y}from"./index.edc1de2e.js";import{b as S}from"./index.7fb77dfd.js";import"./index.418b2977.js";import"./index.a00b103a.js";import"./ArrowLeftOutlined.79eef989.js";import"./index.179de617.js";import"./index.9d9ec76a.js";import"./FullscreenOutlined.284df360.js";import"./index.9b879273.js";import"./useWindowSizeFn.481b0b80.js";import"./useContentViewHeight.625f3de9.js";import"./uniqBy.badc90c7.js";import"./_baseIteratee.4e38d61c.js";import"./get.a35e3209.js";import"./index.9f9c6758.js";import"./useRefs.0b18fd3e.js";import"./PlusOutlined.ac9aef36.js";import"./RedoOutlined.4549f1ff.js";import"./index.47cb1b47.js";import"./lock.820f76ec.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};
|