coolcare-lite-scada-component 1.0.17 → 1.0.19

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.
@@ -36,7 +36,9 @@ var EleSwitchComponent = function EleSwitchComponent(_ref) {
36
36
  title: "操作警告",
37
37
  icon: /*#__PURE__*/React.createElement(ExclamationCircleOutlined, null),
38
38
  content: "确定执行操作吗?",
39
- getContainer: false,
39
+ getContainer: function getContainer() {
40
+ return document.getElementById("scada-body");
41
+ },
40
42
  onOk: function onOk() {
41
43
  if (window.scadaMode === 'edit' || !configPoint || !(payload === null || payload === void 0 ? void 0 : payload.pointWriteable)) {
42
44
  return;
@@ -61,7 +63,8 @@ var EleSwitchComponent = function EleSwitchComponent(_ref) {
61
63
  }
62
64
  }, [pointData === null || pointData === void 0 ? void 0 : pointData.value, payload === null || payload === void 0 ? void 0 : payload.checkedValue]);
63
65
  return /*#__PURE__*/React.createElement("div", {
64
- className: styles.wrap
66
+ className: styles.wrap,
67
+ id: "switch-".concat(pointData === null || pointData === void 0 ? void 0 : pointData.deviceId)
65
68
  }, /*#__PURE__*/React.createElement(Tooltip, {
66
69
  title: tooltipTitle
67
70
  }, /*#__PURE__*/React.createElement(Switch, {
@@ -249,7 +249,8 @@ var Display = function Display(_ref) {
249
249
  });
250
250
  }, []);
251
251
  return /*#__PURE__*/React.createElement("div", {
252
- className: styles.wrap
252
+ className: styles.wrap,
253
+ id: "scada-body"
253
254
  }, !!q && /*#__PURE__*/React.createElement(Player, {
254
255
  jsonConfig: jsonConfig,
255
256
  query: q,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "scripts": {
5
5
  "start": "umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",