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.c34ddbd9.js";import{S as y}from"./index.56afd626.js";import{b as S}from"./index.6938b165.js";import"./index.dd89a65e.js";import"./index.8ea82c81.js";import"./ArrowLeftOutlined.26d2d96c.js";import"./index.ef649b28.js";import"./index.79a0b48c.js";import"./FullscreenOutlined.d22aff24.js";import"./index.c58a3726.js";import"./useWindowSizeFn.1c214c94.js";import"./useContentViewHeight.28d6976b.js";import"./uniqBy.0942d6ff.js";import"./_baseIteratee.1a067c78.js";import"./get.0bae6e1c.js";import"./index.35cc8af5.js";import"./useRefs.413d8830.js";import"./PlusOutlined.13f64ed5.js";import"./RedoOutlined.d1d360d5.js";import"./index.b905b2e8.js";import"./lock.597e2853.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-440e72fd"]]);export{Q as default};
|