coolcare-lite-scada-component 1.0.18 → 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.
@@ -37,7 +37,7 @@ var EleSwitchComponent = function EleSwitchComponent(_ref) {
37
37
  icon: /*#__PURE__*/React.createElement(ExclamationCircleOutlined, null),
38
38
  content: "确定执行操作吗?",
39
39
  getContainer: function getContainer() {
40
- return document.getElementById("switch-".concat(pointData === null || pointData === void 0 ? void 0 : pointData.deviceId));
40
+ return document.getElementById("scada-body");
41
41
  },
42
42
  onOk: function onOk() {
43
43
  if (window.scadaMode === 'edit' || !configPoint || !(payload === null || payload === void 0 ? void 0 : payload.pointWriteable)) {
@@ -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.18",
3
+ "version": "1.0.19",
4
4
  "scripts": {
5
5
  "start": "umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",