@zgfe/modules-event 1.0.5-heyh.6 → 1.0.5-heyh.7

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.
@@ -140,6 +140,7 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
140
140
  }, /*#__PURE__*/React.createElement("div", null, "\u6570\u636E\u66F4\u65B0\u65F6\u95F4\uFF1A", moment().format('YYYY-MM-DD HH:mm')));
141
141
  };
142
142
  var chartBox = function chartBox() {
143
+ console.log('chartBox: ', chartBox);
143
144
  if (dataSource.series.length <= 0) {
144
145
  return /*#__PURE__*/React.createElement(Empty, {
145
146
  image: Empty.PRESENTED_IMAGE_SIMPLE,
@@ -167,7 +168,18 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
167
168
  case 'bar':
168
169
  case 'pie':
169
170
  case 'map':
170
- return chartBox();
171
+ return /*#__PURE__*/React.createElement(BizChart, {
172
+ ref: ref,
173
+ key: chartType,
174
+ type: chartType,
175
+ data: chartType === 'map' ? getMapChartData(dataSource) : dataSource,
176
+ legendPosition: "bottom",
177
+ showList: showList,
178
+ colors: showColors,
179
+ xRotate: chartType === 'bar' && dataSource.series.length > 5 ? 40 : 0,
180
+ reverseXAxis: chartType === 'bar',
181
+ isCity: isCity
182
+ });
171
183
  case 'grid':
172
184
  return /*#__PURE__*/React.createElement(EventTable, {
173
185
  dataSource: dataSource,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-event",
3
- "version": "1.0.5-heyh.6",
3
+ "version": "1.0.5-heyh.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -49,7 +49,7 @@
49
49
  "react": "^16.12.0 || ^17.0.0",
50
50
  "yorkie": "^2.0.0"
51
51
  },
52
- "gitHead": "9c05a0fceb5d74c5e99bc2d9bb6a89df341795bd",
52
+ "gitHead": "15a88377232f78224f4c955a3c7f79c09c15a10a",
53
53
  "dependencies": {
54
54
  "react-copy-to-clipboard": "^5.1.0",
55
55
  "react-highlight": "^0.15.0"