dlt-for-react 2.1.3 → 2.1.5
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/README.md +6 -1
- package/lib/components/KyECharts/index.js +32 -38
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ npm publish
|
|
|
8
8
|
|
|
9
9
|
## 前端 dlt-for-react 依赖包版本更新记录
|
|
10
10
|
|
|
11
|
-
##### 当前最新版本:2.1.
|
|
11
|
+
##### 当前最新版本:2.1.5
|
|
12
12
|
|
|
13
13
|
##### 安装依赖
|
|
14
14
|
|
|
@@ -16,6 +16,11 @@ npm publish
|
|
|
16
16
|
|
|
17
17
|
##### 版本修改记录
|
|
18
18
|
|
|
19
|
+
#### V2.1.5—2024 年 6 月 4 日
|
|
20
|
+
|
|
21
|
+
1. 更新echart版本
|
|
22
|
+
2. 去除echarts/map/js/china
|
|
23
|
+
|
|
19
24
|
#### V2.1.0—2024 年 6 月 3 日
|
|
20
25
|
|
|
21
26
|
1. 新增 isEqual 函数
|
|
@@ -58,42 +58,9 @@ require('echarts/lib/component/polar');
|
|
|
58
58
|
|
|
59
59
|
require('echarts/lib/component/geo');
|
|
60
60
|
|
|
61
|
-
require('echarts/map/js/china');
|
|
62
|
-
|
|
63
61
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
64
62
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
//极坐标系组件
|
|
68
|
-
//提示框组件
|
|
69
|
-
//直角坐标系组件
|
|
70
|
-
//地图
|
|
71
|
-
// import 'echarts/lib/chart/treemap';
|
|
72
|
-
//散点图
|
|
73
|
-
//柱状图
|
|
74
|
-
//echarts 基础配置,必须引入
|
|
75
|
-
/* 按需引入echarts */
|
|
76
|
-
/*******
|
|
77
|
-
* @description:科研-KyECharts 图表绘画
|
|
78
|
-
* @author: 琴时
|
|
79
|
-
*/
|
|
80
|
-
var KyECharts = function KyECharts(_ref) {
|
|
81
|
-
var className = _ref.className,
|
|
82
|
-
notMerge = _ref.notMerge,
|
|
83
|
-
lazyUpdate = _ref.lazyUpdate,
|
|
84
|
-
props = (0, _objectWithoutProperties3.default)(_ref, ['className', 'notMerge', 'lazyUpdate']);
|
|
85
|
-
|
|
86
|
-
return _react2.default.createElement(
|
|
87
|
-
'div',
|
|
88
|
-
{ className: (0, _classnames2.default)('ky-echarts', className) },
|
|
89
|
-
_react2.default.createElement(_core2.default, (0, _extends3.default)({
|
|
90
|
-
echarts: _echarts2.default,
|
|
91
|
-
notMerge: notMerge,
|
|
92
|
-
lazyUpdate: lazyUpdate,
|
|
93
|
-
style: { width: '100%', height: '100%' }
|
|
94
|
-
}, props))
|
|
95
|
-
);
|
|
96
|
-
}; //地理坐标系组件
|
|
63
|
+
//地理坐标系组件
|
|
97
64
|
// import 'echarts/lib/component/parallel';
|
|
98
65
|
// import 'echarts/lib/component/singleAxis';
|
|
99
66
|
// import 'echarts/lib/component/brush';
|
|
@@ -108,12 +75,15 @@ var KyECharts = function KyECharts(_ref) {
|
|
|
108
75
|
// import 'echarts/lib/component/timeline';
|
|
109
76
|
// import 'echarts/lib/component/toolbox'
|
|
110
77
|
|
|
111
|
-
|
|
112
|
-
//图例组件
|
|
78
|
+
// import 'echarts/map/js/china' //中国地图数据
|
|
113
79
|
|
|
114
80
|
// import 'echarts/lib/chart/heatmap';
|
|
115
81
|
|
|
116
82
|
// import 'echarts/lib/component/graphic';
|
|
83
|
+
//直角坐标系组件
|
|
84
|
+
//图例组件
|
|
85
|
+
//提示框组件
|
|
86
|
+
//标题组件
|
|
117
87
|
//曲线图
|
|
118
88
|
// import 'echarts/lib/chart/gauge';
|
|
119
89
|
// import 'echarts/lib/chart/funnel';
|
|
@@ -121,9 +91,33 @@ var KyECharts = function KyECharts(_ref) {
|
|
|
121
91
|
// import 'echarts/lib/chart/sankey';
|
|
122
92
|
// import 'echarts/lib/chart/boxplot';
|
|
123
93
|
// import 'echarts/lib/chart/candlestick';
|
|
124
|
-
|
|
125
|
-
|
|
94
|
+
//echarts 基础配置,必须引入
|
|
95
|
+
/* 按需引入echarts */
|
|
126
96
|
//折线图
|
|
97
|
+
//柱状图
|
|
98
|
+
//饼图
|
|
99
|
+
//散点图
|
|
100
|
+
//雷达图
|
|
101
|
+
var KyECharts = function KyECharts(_ref) {
|
|
102
|
+
var className = _ref.className,
|
|
103
|
+
notMerge = _ref.notMerge,
|
|
104
|
+
lazyUpdate = _ref.lazyUpdate,
|
|
105
|
+
props = (0, _objectWithoutProperties3.default)(_ref, ['className', 'notMerge', 'lazyUpdate']);
|
|
106
|
+
|
|
107
|
+
return _react2.default.createElement(_core2.default, (0, _extends3.default)({
|
|
108
|
+
style: { width: '100%', height: '100%' },
|
|
109
|
+
className: (0, _classnames2.default)('ky-echarts', className),
|
|
110
|
+
echarts: _echarts2.default,
|
|
111
|
+
notMerge: notMerge,
|
|
112
|
+
lazyUpdate: lazyUpdate
|
|
113
|
+
}, props));
|
|
114
|
+
}; //极坐标系组件
|
|
115
|
+
//地图
|
|
116
|
+
// import 'echarts/lib/chart/treemap';
|
|
117
|
+
/*******
|
|
118
|
+
* @description:科研-KyECharts 图表绘画
|
|
119
|
+
* @author: 琴时
|
|
120
|
+
*/
|
|
127
121
|
|
|
128
122
|
KyECharts.defaultProps = {
|
|
129
123
|
notMerge: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dlt-for-react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "dlt for react",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"antd": "^3.6.4",
|
|
73
73
|
"babel-runtime": "^6.26.0",
|
|
74
|
-
"echarts": "^
|
|
75
|
-
"echarts-for-react": "^
|
|
74
|
+
"echarts": "^5.5.0",
|
|
75
|
+
"echarts-for-react": "^3.0.2",
|
|
76
76
|
"hex-sha1": "^1.0.2",
|
|
77
77
|
"jsencrypt": "3.0.0-rc.1",
|
|
78
78
|
"rc-queue-anim": "^2.0.0",
|