@wyltils/ems-editor 1.0.45 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -71064,17 +71064,30 @@ const D2t = Object.entries(w2t).map(([n, e]) => ({
71064
71064
  if (_.level === 1) return !1;
71065
71065
  const b = ((D = _.data) == null ? void 0 : D.data) || {}, y = _X(_.label), w = `const description = data.pointTemp.description;
71066
71066
  const value = data.payload.value;
71067
- if(!description) {
71068
- $.${y}.文本 = value
71069
- }
71070
71067
  const a = description.split(";").map(i => {
71071
71068
  return {
71072
71069
  label: i.split(':')[1], value: i.split(':')[0]
71073
71070
  }
71074
- })
71075
- a.length = a.length - 1
71076
- $.${y}.文本 = a.find(i => i.value == value)?.label`, S = `const value = data.payload.value;
71077
- $.${y}.文本 = value`, x = {
71071
+ });
71072
+ a.length = a.length - 1;
71073
+ $.${y}.文本 = a.find(i => i.value == value)?.label;
71074
+
71075
+ const statusCode = data.payload.statusCode;
71076
+ const colorMap = {
71077
+ Good: '#fff',
71078
+ Uncertain: '#999',
71079
+ Bad: '#f00'
71080
+ };
71081
+ $.${y}.字体颜色 = colorMap[statusCode] || '#fff';`, S = `const value = data.payload.value;
71082
+ $.${y}.文本 = value;
71083
+
71084
+ const statusCode = data.payload.statusCode;
71085
+ const colorMap = {
71086
+ Good: '#fff',
71087
+ Uncertain: '#999',
71088
+ Bad: '#f00'
71089
+ };
71090
+ $.${y}.字体颜色 = colorMap[statusCode] || '#fff';`, x = {
71078
71091
  type: "text",
71079
71092
  text: "--",
71080
71093
  dataSource: {
@@ -71237,7 +71250,7 @@ $.${y}.文本 = value`, x = {
71237
71250
  ]);
71238
71251
  };
71239
71252
  }
71240
- }, Y2t = /* @__PURE__ */ ps(K2t, [["__scopeId", "data-v-376c920b"]]), X2t = { class: "graphics" }, Z2t = { class: "menus" }, J2t = {
71253
+ }, Y2t = /* @__PURE__ */ ps(K2t, [["__scopeId", "data-v-d4e9dc5b"]]), X2t = { class: "graphics" }, Z2t = { class: "menus" }, J2t = {
71241
71254
  __name: "index",
71242
71255
  setup(n) {
71243
71256
  const e = Ge(0);
@@ -206059,7 +206072,10 @@ const ${ue} = ${jt};
206059
206072
  l.value.type == "opcua" ? x({ payload: d.value, pointTemp: r.value.dataSource.point }, h.value) : l.value.type == "http" ? x(d.value, h.value) : l.value.type == "node" && x({}, h.value);
206060
206073
  const L = e.graph.toJSON().cells;
206061
206074
  for (let D in h.value) {
206062
- let T = L.find((E) => E.data.name === D);
206075
+ let T = L.find((E) => {
206076
+ var I;
206077
+ return ((I = E.data) == null ? void 0 : I.name) === D;
206078
+ });
206063
206079
  if (T) {
206064
206080
  T = e.graph.getCellById(T.id);
206065
206081
  const E = h.value[D], I = T.data.dataSource.fields;
@@ -206439,7 +206455,7 @@ const ${ue} = ${jt};
206439
206455
  ]);
206440
206456
  };
206441
206457
  }
206442
- }, xdi = /* @__PURE__ */ ps(Sdi, [["__scopeId", "data-v-aad025ed"]]), Ldi = { class: "prop" }, Ddi = { class: "tabContainer" }, Tdi = ["onClick"], Edi = { class: "activeLine" }, Idi = {
206458
+ }, xdi = /* @__PURE__ */ ps(Sdi, [["__scopeId", "data-v-237a4d1d"]]), Ldi = { class: "prop" }, Ddi = { class: "tabContainer" }, Tdi = ["onClick"], Edi = { class: "activeLine" }, Idi = {
206443
206459
  key: 0,
206444
206460
  class: "main"
206445
206461
  }, kdi = {
@@ -206617,7 +206633,7 @@ const ${ue} = ${jt};
206617
206633
  offsetValue: null,
206618
206634
  scale: null,
206619
206635
  prot: "[3, 0x0001, uint, AB]",
206620
- description: "0:失能;1:启动使能;",
206636
+ description: null,
206621
206637
  uniqueIdentifier: null,
206622
206638
  accessType: 1,
206623
206639
  isAlarm: 0,