coolcare-lite-scada-component 1.0.61 → 1.0.63

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.
@@ -82,7 +82,11 @@ var ElePointValueComponent = function ElePointValueComponent(_ref) {
82
82
  var numberColor = getValueByExpression(value, payload === null || payload === void 0 ? void 0 : payload.colorExpressions);
83
83
  return /*#__PURE__*/React.createElement("div", {
84
84
  onClick: function onClick(e) {
85
- return eventHandles.current.onClick(e);
85
+ if ((payload === null || payload === void 0 ? void 0 : payload.pointList.length) && (payload === null || payload === void 0 ? void 0 : payload.pointList[0].deviceType) === 'virtual') {
86
+ e.stopPropagation();
87
+ } else {
88
+ eventHandles.current.onClick(e);
89
+ }
86
90
  },
87
91
  onContextMenu: function onContextMenu(e) {
88
92
  return eventHandles.current.onContextMenu(e);
@@ -586,7 +586,6 @@ var Player = function Player(_ref) {
586
586
  var valueDate = _toConsumableArray(new Set(virtual.map(function (item) {
587
587
  return item.data.valueDate;
588
588
  })));
589
- debugger;
590
589
  dataType.forEach(function (type) {
591
590
  valueDate.forEach(function (date) {
592
591
  var ids = virtual.filter(function (item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "scripts": {
5
5
  "start": " PORT=8000 UMI_ENV=prod umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",