@lemon-fe/kits 1.5.3-alpha.0 → 1.5.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ButtonProps } from 'antd';
|
|
1
2
|
import { type ReactElement } from 'react';
|
|
2
3
|
import type { Key, ReactNode } from 'react';
|
|
3
4
|
import type { ColType, DataGridProps } from '@lemon-fe/components';
|
|
@@ -125,6 +126,10 @@ interface Props<RecordType extends Record<string, any> = Record<string, any>, Re
|
|
|
125
126
|
* 处理结果列配置
|
|
126
127
|
*/
|
|
127
128
|
resultColType?: Partial<ColType<RecordType>>;
|
|
129
|
+
/**
|
|
130
|
+
* @description 开始执行/继续执行按钮属性
|
|
131
|
+
*/
|
|
132
|
+
executeActionProps?: ButtonProps;
|
|
128
133
|
}
|
|
129
134
|
export default function useBatchOperate<RecordType extends Record<string, any> = Record<string, any>, ResultType = any, ParamsType = any>(options: Props<RecordType, ResultType, ParamsType>): {
|
|
130
135
|
run: (rows: RecordType[], otherOpts?: Partial<Props<RecordType, ResultType, ParamsType>>) => void;
|
|
@@ -671,7 +671,8 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
671
671
|
_this$props4$footer = _this$props4.footer,
|
|
672
672
|
footer = _this$props4$footer === void 0 ? null : _this$props4$footer,
|
|
673
673
|
sideBar = _this$props4.sideBar,
|
|
674
|
-
customColumnPanelStorage = _this$props4.customColumnPanelStorage
|
|
674
|
+
customColumnPanelStorage = _this$props4.customColumnPanelStorage,
|
|
675
|
+
executeActionProps = _this$props4.executeActionProps;
|
|
675
676
|
var _this$state = this.state,
|
|
676
677
|
results = _this$state.results,
|
|
677
678
|
open = _this$state.open,
|
|
@@ -721,7 +722,7 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
721
722
|
children: [/*#__PURE__*/_jsx("span", {
|
|
722
723
|
children: "".concat(detailsText).concat(results.size > 0 ? "(".concat(results.size, "/").concat(data.length, ")") : '')
|
|
723
724
|
}), /*#__PURE__*/_jsx(Actions, {
|
|
724
|
-
actions: [paused ? {
|
|
725
|
+
actions: [paused ? _objectSpread(_objectSpread({}, executeActionProps), {}, {
|
|
725
726
|
disabled: data.length <= 0 || results.size >= data.length,
|
|
726
727
|
text: this.queue.size > 0 ? continueText : startExecText,
|
|
727
728
|
onClick: function onClick() {
|
|
@@ -737,7 +738,7 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
737
738
|
paused: false
|
|
738
739
|
});
|
|
739
740
|
}
|
|
740
|
-
} : {
|
|
741
|
+
}) : {
|
|
741
742
|
disabled: data.length <= 0,
|
|
742
743
|
text: suspendExecText,
|
|
743
744
|
onClick: function onClick() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/kits",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
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.5.3
|
|
27
|
+
"@lemon-fe/components": "^1.5.3",
|
|
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": "
|
|
50
|
+
"gitHead": "61268f8176d1c2e03674a52bfb7acedae3ee7a74"
|
|
51
51
|
}
|