@lemon-fe/kits 1.5.0 → 1.5.1
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(
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
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.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"registry": "https://registry.npmjs.org"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "781302ee24991559affd0c16e83cca2ce5bb8c5e"
|
|
51
51
|
}
|