@lemon-fe/kits 1.5.0 → 1.5.2

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.
@@ -32,7 +32,7 @@ import React, { useContext, Component, createRef } from 'react';
32
32
  import { AppContext } from "../../app-provider";
33
33
  import useRenderModal from "../use-render-modal";
34
34
  import defaultLocale from "./locale/zh_CN";
35
- import { Modal, Row, Spin, Typography } from '@lemon-fe/components';
35
+ import { ComponentConfigureContext, Modal, Row, Spin, Typography } from '@lemon-fe/components';
36
36
  import { Actions, DataGrid, Icons, Layout, Section } from '@lemon-fe/components';
37
37
  import { Subject } from '@lemon-fe/utils';
38
38
  import { get } from 'lodash';
@@ -775,20 +775,24 @@ export default function useBatchOperate(options) {
775
775
  var _useContext = useContext(AppContext),
776
776
  batchOperatorConfig = _useContext.batchOperatorConfig;
777
777
  var ctx = useContext(ConfigProvider.ConfigContext);
778
+ var componentCtx = useContext(ComponentConfigureContext);
778
779
  var locale = ctx.locale;
779
780
  var renderModal = useRenderModal();
780
781
  var run = function run(rows) {
781
782
  var otherOpts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
782
783
  return renderModal(function (_ref14) {
783
784
  var _afterClose2 = _ref14.afterClose;
784
- return /*#__PURE__*/_jsx(BatchOperate, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
785
- rows: rows
786
- }, batchOperatorConfig), options), otherOpts), {}, {
787
- locale: locale,
788
- afterClose: function afterClose() {
789
- _afterClose2();
790
- }
791
- }));
785
+ return /*#__PURE__*/_jsx(ComponentConfigureContext.Provider, {
786
+ value: componentCtx,
787
+ children: /*#__PURE__*/_jsx(BatchOperate, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
788
+ rows: rows
789
+ }, batchOperatorConfig), options), otherOpts), {}, {
790
+ locale: locale,
791
+ afterClose: function afterClose() {
792
+ _afterClose2();
793
+ }
794
+ }))
795
+ });
792
796
  });
793
797
  };
794
798
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/kits",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@ant-design/icons": "^4.7.0",
27
- "@lemon-fe/components": "^1.4.29",
27
+ "@lemon-fe/components": "^1.5.2",
28
28
  "@lemon-fe/hooks": "^1.4.27-alpha.0",
29
29
  "@lemon-fe/utils": "^1.4.15",
30
30
  "ag-grid-community": "29.2.0",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "registry": "https://registry.npmjs.org"
49
49
  },
50
- "gitHead": "b40ed7932db9575618b9d5ff8b1a1d83c03f1d39"
50
+ "gitHead": "f1d68fc8b34f14b697a46df4c0d2bad9bc698426"
51
51
  }