@lemon-fe/kits 1.2.3 → 1.2.4

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.
@@ -34,6 +34,10 @@ interface Props<RecordType extends Record<string, any> = Record<string, any>, Re
34
34
  process?: ProcessStep<RecordType, any>[] | ((parmas?: ParamsType) => ProcessStep<RecordType, any>[]);
35
35
  columns?: ColType<RecordType>[];
36
36
  rowKey: DataGridProps<RecordType>['rowKey'];
37
+ /**
38
+ * @description modal footer 默认为null
39
+ */
40
+ footer?: ReactNode | ((record: RecordType[]) => ReactNode);
37
41
  /**
38
42
  * @description 关闭时触发
39
43
  * @param success 成功的结果
@@ -592,7 +592,9 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
592
592
  var _this$props4 = this.props,
593
593
  modalTitle = _this$props4.modalTitle,
594
594
  _afterClose = _this$props4.afterClose,
595
- rowKey = _this$props4.rowKey;
595
+ rowKey = _this$props4.rowKey,
596
+ _this$props4$footer = _this$props4.footer,
597
+ footer = _this$props4$footer === void 0 ? null : _this$props4$footer;
596
598
  var _this$state2 = this.state,
597
599
  results = _this$state2.results,
598
600
  open = _this$state2.open,
@@ -620,7 +622,7 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
620
622
  _this5.handleClose();
621
623
  });
622
624
  },
623
- footer: null,
625
+ footer: typeof footer === 'function' ? footer(data) : footer,
624
626
  maskClosable: false,
625
627
  afterClose: function afterClose() {
626
628
  _this5.setState({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/kits",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "registry": "https://registry.npmjs.org"
47
47
  },
48
- "gitHead": "831556422221ead3da6a017b786192be272de57e"
48
+ "gitHead": "0dbae3c7542ddfaf1451fa6f4c3abc35a4390b64"
49
49
  }