@yeeyoon/library 3.1.9 → 3.2.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.
@@ -16,7 +16,7 @@ const CommonTable = (props) => {
16
16
  rowKey={(record) => record[rowKey]}
17
17
  columns={mergeTableColumnCommonConfig(columns)}
18
18
  pagination={{
19
- position: ['bottomCenter'],
19
+ position: ['bottomRight'],
20
20
  pageSize: 10,
21
21
  }}
22
22
  options={false}
@@ -56,14 +56,12 @@ function InfoCart(props) {
56
56
  if (data.content.length > 0) {
57
57
  let monthContribute = data.content[0].last_month_contribute || '';
58
58
  setCardData(data.content[0]);
59
- Object.keys(monthContribute).length
60
- ? setChartData(
61
- monthContribute?.split(',').map((item) => ({
62
- 贡献数据数: parseInt(item.split(':')[1]),
63
- name: item.split(':')[0],
64
- }))
65
- )
66
- : setChartData([{ 贡献数据数: 0 }]);
59
+ setChartData(
60
+ monthContribute?.split(',').map((item) => ({
61
+ 贡献数据数: parseInt(item.split(':')[1]),
62
+ name: item.split(':')[0],
63
+ }))
64
+ );
67
65
  } else {
68
66
  setCardData(obj);
69
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.1.9",
3
+ "version": "3.2.0",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {