@zgfe/modules-page 1.0.1-alpha.29 → 1.0.1-alpha.30

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.
@@ -129,7 +129,8 @@ export var getColumns = function getColumns(type, hasUserGroup, onClickCallback,
129
129
  title: '用户群',
130
130
  dataIndex: 'userGroup',
131
131
  key: 'userGroup',
132
- align: 'left'
132
+ align: 'left',
133
+ ellipsis: true
133
134
  });
134
135
  }
135
136
  var groupColumns = [{
@@ -70,7 +70,10 @@ export var getPageResult = function getPageResult(params, callback, loadingCallb
70
70
  }).then(function (res) {
71
71
  var _res$data;
72
72
  loadingCallback(false);
73
- if (!res || !res.data) return;
73
+ if (!res || !res.data) {
74
+ callback([]);
75
+ return;
76
+ }
74
77
  callback((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.map(function (item) {
75
78
  return _objectSpread(_objectSpread({}, item), {}, {
76
79
  id: "".concat(item.userGroup, "-").concat(item.pageTitle, "-").concat(item.pageUrl)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-page",
3
- "version": "1.0.1-alpha.29",
3
+ "version": "1.0.1-alpha.30",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -50,5 +50,5 @@
50
50
  "prettier": "^2.2.1",
51
51
  "yorkie": "^2.0.0"
52
52
  },
53
- "gitHead": "ee34c204657f478a1fbfe2201135e9a240b7bb81"
53
+ "gitHead": "ab6c3654729a62e3dbeaa91a7877f808b5591a99"
54
54
  }