@zgfe/business-lib 1.0.0-beta.2 → 1.0.0-beta.3

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.
@@ -225,9 +225,9 @@ export var getChartOption = function getChartOption(chartType, xData) {
225
225
 
226
226
 
227
227
  if (legendPosition === 'top') {
228
- grid.top = series.length > 1 || reverseXAxis && seriesName ? 45 : 10;
228
+ grid.top = series.length > 1 || series[0].name ? 45 : 10;
229
229
  } else if (legendPosition === 'bottom') {
230
- grid.bottom = series.length > 1 ? 45 : 0;
230
+ grid.bottom = series.length > 1 || series[0].name ? 45 : 0;
231
231
  } // 图例配置
232
232
 
233
233
 
package/es/chart/index.js CHANGED
@@ -136,7 +136,6 @@ var BizChart = function BizChart(props) {
136
136
  eOption = getChartOption(type, reverseXAxis && showList ? showList : _rData.x_axis, _rData.series, sameColor, legendPosition, legendOrient, valueUnit, tooltipFormatter, xAxisFormatter, yAxisFormatter, reverseXAxis, seriesName);
137
137
  }
138
138
 
139
- console.log(type, ' >>> ', eOption);
140
139
  setChartOption(function () {
141
140
  return _objectSpread({}, eOption);
142
141
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.3",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",