1 |
- import{av as s,a as p,b as m,c as d,f as l,a_ as c,o as h,h as u,m as f,t as C,n as _,b0 as g,q as v}from"./index.97c70775.js";import{S as b}from"./index.cef0d45a.js";import{b as y}from"./index.f3c3d563.js";import"./index.eda8e5c3.js";import"./index.d735b0e3.js";import"./ArrowLeftOutlined.5b8718d6.js";import"./index.376f7d77.js";import"./index.051284d0.js";import"./FullscreenOutlined.8e7a919a.js";import"./index.14665d32.js";import"./useWindowSizeFn.bb740ef7.js";import"./useContentViewHeight.4e0b2e8d.js";import"./uniqBy.244093b2.js";import"./_baseIteratee.3a1e7c2b.js";import"./get.42ae1097.js";import"./index.39c499d6.js";import"./useRefs.dcf26156.js";import"./PlusOutlined.e6869ca1.js";import"./RedoOutlined.560bd00b.js";import"./index.c947e1cd.js";import"./TabPane.c249e2af.js";import"./lock.79e1fec5.js";const S=p({name:"SwitchItem",components:{Switch:b},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=m("setting-switch-item"),{t:o}=d(),n=l(()=>e.def?{checked:e.def}:{});function i(a){e.event&&y(e.event,a)}return{prefixCls:t,t:o,handleChange:i,getBindValue:n}}});function k(e,t,o,n,i,a){const r=c("Switch");return h(),u("div",{class:v(e.prefixCls)},[f("span",null,C(e.title),1),_(r,g(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 R=s(S,[["render",k],["__scopeId","data-v-fd7354e2"]]);export{R as default};
|