@zgfe/business-lib 1.2.55-heyh.0 → 1.2.55-heyh.2

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.
package/es/chart/index.js CHANGED
@@ -43,7 +43,8 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
43
43
  isHideLegend = props.isHideLegend,
44
44
  tooltipTrigger = props.tooltipTrigger,
45
45
  muit_yAxis = props.muit_yAxis,
46
- unContainLabel = props.unContainLabel;
46
+ unContainLabel = props.unContainLabel,
47
+ markArea = props.markArea;
47
48
  var _useState = useState({}),
48
49
  _useState2 = _slicedToArray(_useState, 2),
49
50
  chartOption = _useState2[0],
@@ -71,16 +72,18 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
71
72
  option.series.forEach(function (series, seriesIndex) {
72
73
  var dashedItem = addDashedSeries(series, index - 1);
73
74
  dashedItem.itemStyle.normal.color = dashedItem.lineStyle.normal.color = option.color[seriesIndex];
74
- dashedItem.markArea = {
75
- itemStyle: {
76
- color: 'rgba(22, 93, 255, 0.08)'
77
- },
78
- data: [[{
79
- xAxis: option.xAxis.data[index]
80
- }, {
81
- xAxis: option.xAxis.data[option.xAxis.data.length - 1]
82
- }]]
83
- };
75
+ if (markArea) {
76
+ dashedItem.markArea = {
77
+ itemStyle: {
78
+ color: 'rgba(22, 93, 255, 0.08)'
79
+ },
80
+ data: [[{
81
+ xAxis: option.xAxis.data[index]
82
+ }, {
83
+ xAxis: option.xAxis.data[option.xAxis.data.length - 1]
84
+ }]]
85
+ };
86
+ }
84
87
  dashedSeries.push(dashedItem);
85
88
  });
86
89
  option.series = option.series.concat(dashedSeries);
@@ -58,5 +58,6 @@ export declare namespace ChartTypes {
58
58
  tooltipTrigger?: string;
59
59
  muit_yAxis?: {}[];
60
60
  unContainLabel?: boolean;
61
+ markArea?: boolean;
61
62
  }
62
63
  }
@@ -34,8 +34,8 @@ var tooltipFormatterDefault = function tooltipFormatterDefault(params, resultFor
34
34
  return _data;
35
35
  };
36
36
  var lineLabel = unitHandle(item.value);
37
- var minValues = item.minValues && unitHandle(item.minValues);
38
- var maxValues = item.maxValues && unitHandle(item.maxValues);
37
+ var minValues = (item.minValues || item.minValues === 0) && unitHandle(item.minValues);
38
+ var maxValues = (item.maxValues || item.maxValues === 0) && unitHandle(item.maxValues);
39
39
  var name = item.seriesName.trim();
40
40
  if (item.seriesType === 'bar' && params.length === 1 && !name) {
41
41
  name = (item.data && item.data.label ? item.data.label : item.name).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.55-heyh.0",
3
+ "version": "1.2.55-heyh.2",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "29e5dfa09ea08105d1395b17f8a28178557fbb4d",
58
+ "gitHead": "0a0b9034acb90af19e45ec222f62f41ed2dad237",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }