coolcare-lite-scada-component 1.0.12 → 1.0.13

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.
@@ -212,7 +212,7 @@ var FreedomSceneFormBindPoint = function FreedomSceneFormBindPoint(_ref) {
212
212
  }, "\u6DFB\u52A0\u70B9\u4F4D")) : null);
213
213
  }), /*#__PURE__*/React.createElement(Form.Item, {
214
214
  name: "unitShow",
215
- label: "\u6570\u503C\u5355\u4F4D",
215
+ label: "\u5355\u4F4D",
216
216
  className: "!ml-3"
217
217
  }, /*#__PURE__*/React.createElement(Switch, {
218
218
  defaultChecked: true,
@@ -175,7 +175,7 @@ var ProductionSceneFormBindPoint = function ProductionSceneFormBindPoint(_ref) {
175
175
  }, "\u6DFB\u52A0\u70B9\u4F4D")) : null);
176
176
  }), /*#__PURE__*/React.createElement(Form.Item, {
177
177
  name: "unitShow",
178
- label: "\u6570\u503C\u5355\u4F4D",
178
+ label: "\u5355\u4F4D",
179
179
  className: "!ml-3"
180
180
  }, /*#__PURE__*/React.createElement(Switch, {
181
181
  defaultChecked: true,
@@ -20,3 +20,6 @@
20
20
  .value {
21
21
  color: #fff;
22
22
  }
23
+ .deviceBox {
24
+ margin-bottom: 10px;
25
+ }
@@ -27,7 +27,7 @@ var PointTooltipTitle = function PointTooltipTitle(_ref) {
27
27
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, "\u70B9\u4F4D\u540D\u79F0\uFF1A", (point === null || point === void 0 ? void 0 : point.pointName) || '-'), /*#__PURE__*/React.createElement("div", null, "\u70B9\u4F4D\u503C\uFF1A", (_point$value = point === null || point === void 0 ? void 0 : point.value) !== null && _point$value !== void 0 ? _point$value : '-', " ", (_point$unit = point === null || point === void 0 ? void 0 : point.unit) !== null && _point$unit !== void 0 ? _point$unit : '-'), /*#__PURE__*/React.createElement("div", null, "\u66F4\u65B0\u65F6\u95F4\uFF1A", (point === null || point === void 0 ? void 0 : point.updateTime) || '-'));
28
28
  };
29
29
  var PointItem = function PointItem(_ref2) {
30
- var _ref3, _point$pointName;
30
+ var _ref3, _point$deviceName, _point$pointName;
31
31
  var point = _ref2.point,
32
32
  style = _ref2.style,
33
33
  valueStyles = _ref2.valueStyles,
@@ -68,6 +68,8 @@ var PointItem = function PointItem(_ref2) {
68
68
  }, valueStyles)
69
69
  }, 'value' in point ? (_ref3 = point.pointEnumItemKey || point.value) !== null && _ref3 !== void 0 ? _ref3 : '-' + (unitShow && point.unit) : '点位状态'), /*#__PURE__*/React.createElement("div", {
70
70
  style: labelStyles
71
+ }, 'value' in point ? (_point$deviceName = point === null || point === void 0 ? void 0 : point.deviceName) !== null && _point$deviceName !== void 0 ? _point$deviceName : '-' : '设备名称'), /*#__PURE__*/React.createElement("div", {
72
+ style: labelStyles
71
73
  }, 'value' in point ? (_point$pointName = point === null || point === void 0 ? void 0 : point.pointName) !== null && _point$pointName !== void 0 ? _point$pointName : '-' : '点位名称')));
72
74
  };
73
75
  var PointItemPlaceholder = function PointItemPlaceholder(_ref4) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "scripts": {
5
5
  "start": "umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",