@zgfe/modules-event 1.0.29-zhongyuan.13 → 1.0.29-zhongyuan.14

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.
@@ -181,8 +181,9 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
181
181
  title: '当前图表数据实时更新,约每分钟更新一次'
182
182
  }, /*#__PURE__*/React.createElement("div", null, "\u6570\u636E\u66F4\u65B0\u65F6\u95F4\uFF1A", moment().format('YYYY-MM-DD HH:mm')));
183
183
  };
184
- var tooltipFormatter = function tooltipFormatter(params) {
184
+ var tooltipFormatter = function tooltipFormatter(data) {
185
185
  var xLabel = '';
186
+ var params = data[0] ? data : [data];
186
187
  var array = params[0].name.split('|');
187
188
  if (array.length > 1) {
188
189
  xLabel = moment(array[0]).format('MM-DD') + '~' + moment(array[1]).format('MM-DD');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-event",
3
- "version": "1.0.29-zhongyuan.13",
3
+ "version": "1.0.29-zhongyuan.14",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "private": false,
@@ -54,7 +54,7 @@
54
54
  "react": "^16.12.0 || ^17.0.0",
55
55
  "yorkie": "^2.0.0"
56
56
  },
57
- "gitHead": "f8afe3bf812a57552556155c2b44700b244eb58f",
57
+ "gitHead": "79d1d3a7a7ca15385ce4a8878de5516eb756f6e4",
58
58
  "gitHooks": {
59
59
  "pre-commit": "lint-staged"
60
60
  }