Files
aiot-platform-ui/apps/web-antd/dist/js/data-definition-CcFBxp3n.js
lzh 19d36d1ffb
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-09 13:05:46 +08:00

2 lines
2.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{a as y,b as e,g as x,c as O}from"./constants-B5TthjFC.js";import{m as B,aa as D,ad as s,b2 as r,ac as o,u as t,I as k,bp as i,j as C,bJ as I,ae as R}from"../jse/index-index-CMeVxoEG.js";import{ax as V,ac as A}from"./bootstrap-CRjSNGHY.js";const M={key:0},U={key:1},j={key:2},F={key:3},P={class:"data-specs-text"},Y={key:1},w={key:2},J=B({name:"DataDefinition",__name:"data-definition",props:{data:{}},setup(a){const n=a,N=D(()=>{var d;return!((d=n.data.property)!=null&&d.dataSpecsList)||n.data.property.dataSpecsList.length===0?"":n.data.property.dataSpecsList.map(c=>`${c.value}-${c.name}`).join("、")}),$=D(()=>{var p;if(!((p=n.data.property)!=null&&p.dataSpecsList)||n.data.property.dataSpecsList.length===0)return"-";const d=n.data.property.dataSpecsList[0],c=n.data.property.dataSpecsList.length;return c>1?`${d.value}-${d.name}${c}`:`${d.value}-${d.name}`});return(d,c)=>{var p,u,l,m,T,f,h,v,S,L,E,g;return r(),s(k,null,[Number(a.data.type)===t(y).PROPERTY?(r(),s(k,{key:0},[[t(e).INT,t(e).DOUBLE,t(e).FLOAT].includes((p=a.data.property)==null?void 0:p.dataType)?(r(),s("div",M," 取值范围:"+i(`${(l=(u=a.data.property)==null?void 0:u.dataSpecs)==null?void 0:l.min}~${(T=(m=a.data.property)==null?void 0:m.dataSpecs)==null?void 0:T.max}`),1)):o("",!0),t(e).TEXT===((f=a.data.property)==null?void 0:f.dataType)?(r(),s("div",U," 数据长度:"+i((v=(h=a.data.property)==null?void 0:h.dataSpecs)==null?void 0:v.length),1)):o("",!0),[t(e).ARRAY,t(e).STRUCT,t(e).DATE].includes((S=a.data.property)==null?void 0:S.dataType)?(r(),s("div",j," - ")):o("",!0),[t(e).BOOL,t(e).ENUM].includes((L=a.data.property)==null?void 0:L.dataType)?(r(),s("div",F,[C(t(V),{title:N.value,placement:"topLeft"},{default:I(()=>{var b;return[R("span",P,i(t(e).BOOL===((b=a.data.property)==null?void 0:b.dataType)?"布尔值":"枚举值")+""+i($.value),1)]}),_:1},8,["title"])])):o("",!0)],64)):o("",!0),Number(a.data.type)===t(y).SERVICE?(r(),s("div",Y," 调用方式: "+i(t(x)((E=a.data.service)==null?void 0:E.callType)),1)):o("",!0),Number(a.data.type)===t(y).EVENT?(r(),s("div",w," 事件类型:"+i(t(O)((g=a.data.event)==null?void 0:g.type)),1)):o("",!0)],64)}}}),G=A(J,[["__scopeId","data-v-c05f1fbf"]]);export{G as default};