@zgfe/business-lib 1.2.47 → 1.2.48-lijingyu1538.0
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 +3 -0
- package/es/chart/types.d.ts +2 -0
- package/package.json +2 -2
package/es/chart/index.js
CHANGED
|
@@ -141,6 +141,9 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
141
141
|
if (type === 'line') {
|
|
142
142
|
eOption = dashedLineFormat(_.cloneDeep(eOption));
|
|
143
143
|
}
|
|
144
|
+
if (data === null || data === void 0 ? void 0 : data.grid) {
|
|
145
|
+
eOption.grid = _objectSpread(_objectSpread({}, eOption.grid), data === null || data === void 0 ? void 0 : data.grid);
|
|
146
|
+
}
|
|
144
147
|
setChartOption(function () {
|
|
145
148
|
return _objectSpread({}, eOption);
|
|
146
149
|
});
|
package/es/chart/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EChartsOption } from 'echarts';
|
|
2
|
+
import { GridOption } from 'echarts/types/dist/shared';
|
|
2
3
|
export interface ChartItmProps {
|
|
3
4
|
names: Array<string>;
|
|
4
5
|
values: Array<number>;
|
|
@@ -26,6 +27,7 @@ export declare namespace ChartTypes {
|
|
|
26
27
|
resultFormatMap?: {
|
|
27
28
|
[key: string]: string;
|
|
28
29
|
};
|
|
30
|
+
grid?: GridOption;
|
|
29
31
|
}
|
|
30
32
|
interface Props {
|
|
31
33
|
type?: 'bar' | 'pie' | 'line' | 'map' | 'line_bar' | 'muit_y';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.48-lijingyu1538.0",
|
|
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": "
|
|
58
|
+
"gitHead": "0fb59ac9e246972e18bb2dccd4a337df7151f292",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|