SwitchItem.94c7d4b3.js 1.5 KB

1
  1. import{aw as s,a as p,b as m,c as d,f as l,w as c,o as h,h as u,m as f,t as C,n as g,b0 as _,q as v}from"./index.7e08ba81.js";import{S as b}from"./index.7e5abc0c.js";import{b as w}from"./index.7447f49d.js";import"./index.5a7c436a.js";import"./index.92bb6ba8.js";import"./ArrowLeftOutlined.8453d1a8.js";import"./index.0fba574f.js";import"./index.0cc142cc.js";import"./FullscreenOutlined.3ea9a56b.js";import"./index.8f031f80.js";import"./useWindowSizeFn.9cd1b73f.js";import"./useContentViewHeight.eee5bfce.js";import"./uniqBy.e8d75d01.js";import"./_baseIteratee.cd40e9ab.js";import"./get.06058cdc.js";import"./index.ff33b1ce.js";import"./useRefs.9e0a4abb.js";import"./PlusOutlined.29a85b0a.js";import"./RedoOutlined.2794d90f.js";import"./index.62601954.js";import"./TabPane.3218c919.js";import"./lock.19cea2d5.js";const y=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&&w(e.event,a)}return{prefixCls:t,t:o,handleChange:i,getBindValue:n}}});function S(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),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 R=s(y,[["render",S],["__scopeId","data-v-fd7354e2"]]);export{R as default};