mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-24 13:34:13 +08:00
2 lines
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
![]() |
import{u as r,t as d,_ as c}from"./index.js";import{b as l}from"./index-edd06576.js";import{d as p,c as m,Z as h,_ as u,$ as f,a0 as _,k as C,a9 as g,a1 as b,a6 as y}from"./vue-08ef39cb.js";import{ac as k}from"./antd-86d2ef3c.js";import"./index-82593f0d.js";import"./index-4e34cb2c.js";import"./index-5558c289.js";import"./index-1cf9ac88.js";import"./useContentViewHeight-8d769efa.js";import"./useWindowSizeFn-46f0db92.js";import"./lock-f5c254c4.js";const v=p({name:"SwitchItem",components:{Switch:k},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=r("setting-switch-item"),{t:n}=d(),a=m(()=>e.def?{checked:e.def}:{});function o(s){e.event&&l(e.event,s)}return{prefixCls:t,t:n,handleChange:o,getBindValue:a}}});function S(e,t,n,a,o,s){const i=y("Switch");return h(),u("div",{class:b(e.prefixCls)},[f("span",null,_(e.title),1),C(i,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)}const Z=c(v,[["render",S],["__scopeId","data-v-0f0bf616"]]);export{Z as default};
|