antd-management-fast-framework 1.12.99 → 1.12.102

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.
@@ -2292,7 +2292,6 @@ var Common = /*#__PURE__*/function (_Core) {
2292
2292
  break;
2293
2293
 
2294
2294
  default:
2295
- (0, _developAssist.recordWarn)('');
2296
2295
  (0, _tools.recordObject)({
2297
2296
  message: '未找到匹配的构建模式',
2298
2297
  buildType: _constants.extraBuildType.component,
@@ -379,7 +379,10 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
379
379
  left: /*#__PURE__*/_react.default.createElement(_space.default, {
380
380
  split: /*#__PURE__*/_react.default.createElement(_divider.default, {
381
381
  type: "vertical"
382
- })
382
+ }),
383
+ style: {
384
+ height: '100%'
385
+ }
383
386
  }, bottomBarLeftBox),
384
387
  right: /*#__PURE__*/_react.default.createElement("div", null)
385
388
  }),
@@ -93,6 +93,7 @@ declare class ListBase extends AuthorizationWrapper {
93
93
  renderAlertOption: () => void;
94
94
  renderAboveTable: () => JSX.Element | null;
95
95
  establishDataContainerExtraActionCollectionConfig: () => never[];
96
+ establishDataContainerExtraAffixConfig: () => {};
96
97
  buildDataContainerExtraActionCollection: () => any;
97
98
  renderExtraActionView: () => JSX.Element | null;
98
99
  renderBatchActionMenu: () => never[];
@@ -758,6 +758,10 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
758
758
  return [];
759
759
  };
760
760
 
761
+ _this.establishDataContainerExtraAffixConfig = function () {
762
+ return {};
763
+ };
764
+
761
765
  _this.buildDataContainerExtraActionCollection = function () {
762
766
  var configList = _this.establishDataContainerExtraActionCollectionConfig();
763
767
 
@@ -774,17 +778,17 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
774
778
  _this.renderExtraActionView = function () {
775
779
  var actions = _this.buildDataContainerExtraActionCollection();
776
780
 
777
- if ((0, _tools.isArray)(actions) && actions.length > 0) {
778
- return /*#__PURE__*/_react.default.createElement(_space.default, {
779
- split: /*#__PURE__*/_react.default.createElement(_divider.default, {
780
- type: "vertical"
781
- })
782
- }, actions.map(function (item) {
783
- return item;
784
- }));
781
+ if (!(0, _tools.isArray)(actions) || actions.length <= 0) {
782
+ return null;
785
783
  }
786
784
 
787
- return null;
785
+ return /*#__PURE__*/_react.default.createElement(_space.default, {
786
+ split: /*#__PURE__*/_react.default.createElement(_divider.default, {
787
+ type: "vertical"
788
+ })
789
+ }, actions.map(function (item) {
790
+ return item;
791
+ }));
788
792
  };
789
793
 
790
794
  _this.renderBatchActionMenu = function () {
@@ -1359,11 +1363,25 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
1359
1363
  _this.renderContentArea = function () {
1360
1364
  var listTitle = _this.state.listTitle;
1361
1365
 
1366
+ var affixConfig = _objectSpread(_objectSpread({}, {
1367
+ affix: false,
1368
+ offsetTop: 10
1369
+ }), _this.establishDataContainerExtraAffixConfig() || {});
1370
+
1362
1371
  var extraAction = _this.renderExtraActionView();
1363
1372
 
1364
1373
  var searchForm = _this.renderForm();
1365
1374
 
1366
1375
  var hasPagination = _this.renderPaginationView() != null;
1376
+ var affix = affixConfig.affix,
1377
+ offsetTop = affixConfig.offsetTop;
1378
+ var extraView = !affix ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extraAction, extraAction == null ? null : /*#__PURE__*/_react.default.createElement(_divider.default, {
1379
+ type: "vertical"
1380
+ }), _this.renderBatchAction(), _this.renderCardExtraAction()) : /*#__PURE__*/_react.default.createElement(_affix.default, {
1381
+ offsetTop: (0, _tools.toNumber)(offsetTop)
1382
+ }, extraAction, extraAction == null ? null : /*#__PURE__*/_react.default.createElement(_divider.default, {
1383
+ type: "vertical"
1384
+ }), _this.renderBatchAction(), _this.renderCardExtraAction());
1367
1385
 
1368
1386
  var gridView = /*#__PURE__*/_react.default.createElement(_card.default, {
1369
1387
  title: listTitle,
@@ -1376,9 +1394,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
1376
1394
  },
1377
1395
  bordered: false,
1378
1396
  className: _index.default.containorTable,
1379
- extra: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extraAction, extraAction == null ? null : /*#__PURE__*/_react.default.createElement(_divider.default, {
1380
- type: "vertical"
1381
- }), _this.renderBatchAction(), _this.renderCardExtraAction())
1397
+ extra: extraView
1382
1398
  }, /*#__PURE__*/_react.default.createElement("div", {
1383
1399
  className: _index.default.tableList
1384
1400
  }, _this.renderAboveTable(), _this.renderView()));
@@ -16,6 +16,7 @@ declare class Base extends AuthorizationWrapper {
16
16
  }) => {};
17
17
  checkSubmitData: (o: any) => boolean;
18
18
  checkSubmitRequestParams: (o: any) => boolean;
19
+ subjoinDataOnAfterOK: () => {};
19
20
  doAfterSubmitSuccess: ({ singleData, listData, extraData, responseOriginalData, submitData, }: {
20
21
  singleData?: null | undefined;
21
22
  listData?: any[] | undefined;
@@ -122,6 +122,10 @@ var Base = /*#__PURE__*/function (_AuthorizationWrapper) {
122
122
  return true;
123
123
  };
124
124
 
125
+ _this.subjoinDataOnAfterOK = function () {
126
+ return {};
127
+ };
128
+
125
129
  _this.doAfterSubmitSuccess = function (_ref3) {
126
130
  var _ref3$singleData = _ref3.singleData,
127
131
  singleData = _ref3$singleData === void 0 ? null : _ref3$singleData,
@@ -160,12 +164,15 @@ var Base = /*#__PURE__*/function (_AuthorizationWrapper) {
160
164
  });
161
165
 
162
166
  if ((0, _tools.isFunction)(afterOK)) {
167
+ var subjoinData = _this.subjoinDataOnAfterOK();
168
+
163
169
  afterOK({
164
170
  singleData: singleData,
165
171
  listData: listData,
166
172
  extraData: extraData,
167
173
  responseOriginalData: responseOriginalData,
168
- submitData: submitData
174
+ submitData: submitData,
175
+ subjoinData: subjoinData || {}
169
176
  });
170
177
  }
171
178
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-framework",
3
- "version": "1.12.99",
3
+ "version": "1.12.102",
4
4
  "description": "antd-management-fast-framework",
5
5
  "keywords": [
6
6
  "antd-management-fast-framework"
@@ -219,7 +219,7 @@
219
219
  "src/framework",
220
220
  "src/utils"
221
221
  ],
222
- "gitHead": "409f17f703f0913a7cf43b535e06d871bb66e95b",
222
+ "gitHead": "88c405f6ac6ee1afc10324e63a31335cd54386e3",
223
223
  "gitHooks": {
224
224
  "pre-commit": "lint-staged"
225
225
  }