@teamix/pro 1.4.8 → 1.4.9
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.
- package/dist/pro.js +28 -27
- package/dist/pro.min.js +1 -1
- package/es/actions/dialog.d.ts +5 -1
- package/es/actions/dialog.js +18 -11
- package/es/form/ProForm/index.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/table/components/Filter/index.js +9 -15
- package/lib/actions/dialog.d.ts +5 -1
- package/lib/actions/dialog.js +17 -10
- package/lib/form/ProForm/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/table/components/Filter/index.js +9 -15
- package/package.json +1 -1
package/es/actions/dialog.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { quickShowDrawerProps } from '@alicloudfe/components/types/drawer';
|
|
4
4
|
import { ProFormSchema, ProFormSchemaItem } from '../form';
|
5
5
|
import { ProMessageProps } from '../utils/message';
|
6
6
|
import { RequestAction } from './request';
|
7
|
-
export interface DialogAction extends Omit<RequestAction, 'url'>, Omit<QuickShowConfig, 'onError' | 'type'>, Omit<quickShowDrawerProps, 'trigger' | 'animation' | 'height' | 'locale' | '
|
7
|
+
export interface DialogAction extends Omit<RequestAction, 'url'>, Omit<QuickShowConfig, 'onError' | 'type'>, Omit<quickShowDrawerProps, 'trigger' | 'animation' | 'height' | 'locale' | 'onError'> {
|
8
8
|
/** 点击「确认按钮」后的数据请求地址,非必填,不填就不发请求 */
|
9
9
|
url?: string;
|
10
10
|
/** 弹窗类型,支持普通弹窗和抽屉两种模式,默认为普通弹窗 */
|
@@ -25,6 +25,10 @@ export interface DialogAction extends Omit<RequestAction, 'url'>, Omit<QuickShow
|
|
25
25
|
schema?: any;
|
26
26
|
/** 弹窗内容区的组件 */
|
27
27
|
component?: any;
|
28
|
+
/** 点击确定自定义回调函数 */
|
29
|
+
onOk?: any;
|
30
|
+
/** 点击取消自定义回调函数 */
|
31
|
+
onCancel?: any;
|
28
32
|
}
|
29
33
|
export declare function useDialogAction(action: DialogAction, actionContext?: any, hasForm?: boolean): {
|
30
34
|
[x: string]: (e: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
|
package/es/actions/dialog.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["trigger", "url", "customRequest", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError"],
|
1
|
+
var _excluded = ["trigger", "url", "customRequest", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError", "onOk", "onCancel"],
|
2
2
|
_excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "popType", "beforeRequest", "onTrigger", "link", "beforeContent", "afterContent", "message", "footerDescription", "footerAlign", "className"];
|
3
3
|
|
4
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
@@ -27,7 +27,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
27
27
|
|
28
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
29
29
|
|
30
|
-
import React, { useState, useEffect, useRef } from 'react';
|
30
|
+
import React, { useState, useEffect, useMemo, useRef } from 'react';
|
31
31
|
import classnames from 'classnames';
|
32
32
|
import { useHistory } from 'react-router-dom';
|
33
33
|
import { Dialog, Drawer } from '@alicloudfe/components';
|
@@ -51,7 +51,9 @@ var FooterForm = function FooterForm(props) {
|
|
51
51
|
var schema = props.schema,
|
52
52
|
context = props.context,
|
53
53
|
formRef = props.formRef;
|
54
|
-
var form =
|
54
|
+
var form = useMemo(function () {
|
55
|
+
return createForm();
|
56
|
+
}, []);
|
55
57
|
useEffect(function () {
|
56
58
|
formRef.current = form;
|
57
59
|
}, []);
|
@@ -95,6 +97,8 @@ export function useDialogAction(action, actionContext, hasForm) {
|
|
95
97
|
formatResult = action.formatResult,
|
96
98
|
onSuccess = action.onSuccess,
|
97
99
|
onError = action.onError,
|
100
|
+
propsOnOk = action.onOk,
|
101
|
+
propsOnCancel = action.onCancel,
|
98
102
|
others = _objectWithoutProperties(action, _excluded);
|
99
103
|
|
100
104
|
var _getTargetValue = getTargetValue(others, context),
|
@@ -175,33 +179,34 @@ export function useDialogAction(action, actionContext, hasForm) {
|
|
175
179
|
|
176
180
|
case 6:
|
177
181
|
onFinish && onFinish();
|
182
|
+
propsOnOk && propsOnOk(context);
|
178
183
|
resolve(true);
|
179
|
-
_context.next =
|
184
|
+
_context.next = 19;
|
180
185
|
break;
|
181
186
|
|
182
|
-
case
|
183
|
-
_context.prev =
|
187
|
+
case 11:
|
188
|
+
_context.prev = 11;
|
184
189
|
_context.t0 = _context["catch"](2);
|
185
190
|
setLoading(false); // 如果 beforeRequest 中返回了 false 并且不是 dialog-form,则直接关闭弹窗
|
186
191
|
|
187
192
|
if (!(beforeRequest && !hasForm)) {
|
188
|
-
_context.next =
|
193
|
+
_context.next = 17;
|
189
194
|
break;
|
190
195
|
}
|
191
196
|
|
192
197
|
resolve(true);
|
193
198
|
return _context.abrupt("return");
|
194
199
|
|
195
|
-
case
|
200
|
+
case 17:
|
196
201
|
resolve(false);
|
197
202
|
return _context.abrupt("return");
|
198
203
|
|
199
|
-
case
|
204
|
+
case 19:
|
200
205
|
case "end":
|
201
206
|
return _context.stop();
|
202
207
|
}
|
203
208
|
}
|
204
|
-
}, _callee, null, [[2,
|
209
|
+
}, _callee, null, [[2, 11]]);
|
205
210
|
}));
|
206
211
|
|
207
212
|
return function (_x) {
|
@@ -224,7 +229,9 @@ export function useDialogAction(action, actionContext, hasForm) {
|
|
224
229
|
});
|
225
230
|
var dialogContent = Component ? /*#__PURE__*/React.createElement(Component, _objectSpread({}, addContext(componentProps, dialogContext))) : addContextForReactNode(content, dialogContext);
|
226
231
|
|
227
|
-
var quickShowProps = _objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(isPop ? 'onConfirm' : 'onOk'), onOk), _defineProperty(_objectSpread2, "
|
232
|
+
var quickShowProps = _objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(isPop ? 'onConfirm' : 'onOk'), onOk), _defineProperty(_objectSpread2, "onCancel", function onCancel() {
|
233
|
+
propsOnCancel && propsOnCancel(context);
|
234
|
+
}), _defineProperty(_objectSpread2, "title", addContextForReactNode(title, dialogContext)), _defineProperty(_objectSpread2, "content", /*#__PURE__*/React.createElement(React.Fragment, null, beforeContent && /*#__PURE__*/React.createElement("div", {
|
228
235
|
className: "teamix-pro-dialog-before-content"
|
229
236
|
}, addContextForReactNode(beforeContent, dialogContext)), message && /*#__PURE__*/React.createElement("div", {
|
230
237
|
className: "teamix-pro-dialog-message"
|
package/es/form/ProForm/index.js
CHANGED
package/es/index.d.ts
CHANGED
@@ -28,5 +28,5 @@ export * from './table';
|
|
28
28
|
export * from './sidebar';
|
29
29
|
export * from './utils';
|
30
30
|
export * from './timeline';
|
31
|
-
declare const version = "1.4.
|
31
|
+
declare const version = "1.4.9";
|
32
32
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/es/index.js
CHANGED
@@ -36,6 +36,6 @@ export * from './table';
|
|
36
36
|
export * from './sidebar';
|
37
37
|
export * from './utils';
|
38
38
|
export * from './timeline';
|
39
|
-
var version = '1.4.
|
39
|
+
var version = '1.4.9';
|
40
40
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, // ProLayout,
|
41
41
|
ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils };
|
@@ -172,7 +172,7 @@ var Filter = function Filter(props) {
|
|
172
172
|
btn: true
|
173
173
|
}),
|
174
174
|
onClick: function onClick() {
|
175
|
-
var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge6, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current4$s;
|
175
|
+
var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge6, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current4$s, _actionRef$current5, _actionRef$current6, _actionRef$current6$r, _actionRef$current7, _actionRef$current7$r, _actionRef$current8, _actionRef$current8$c;
|
176
176
|
|
177
177
|
(_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$f = _actionRef$current2.filterDataSource) === null || _actionRef$current2$f === void 0 ? void 0 : _actionRef$current2$f.call(_actionRef$current2, column.dataIndex); // 先获取此列的param
|
178
178
|
|
@@ -193,24 +193,18 @@ var Filter = function Filter(props) {
|
|
193
193
|
rules: selected,
|
194
194
|
params: param
|
195
195
|
})));
|
196
|
+
var targetPageKey = 'currentPage';
|
197
|
+
var pageInfo = (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : _actionRef$current5.pageInfo;
|
196
198
|
|
197
|
-
if (
|
198
|
-
|
199
|
+
if (pageInfo && (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey)) {
|
200
|
+
targetPageKey = pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey;
|
201
|
+
} // 发送请求
|
199
202
|
|
200
|
-
var targetPageKey = 'currentPage';
|
201
|
-
var pageInfo = (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : _actionRef$current5.pageInfo;
|
202
203
|
|
203
|
-
|
204
|
-
|
205
|
-
} // 发送请求
|
206
|
-
|
207
|
-
|
208
|
-
(_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$r = _actionRef$current6.request) === null || _actionRef$current6$r === void 0 ? void 0 : _actionRef$current6$r.call(_actionRef$current6, _defineProperty({}, targetPageKey, 1));
|
209
|
-
(_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$r = _actionRef$current7.resetPage) === null || _actionRef$current7$r === void 0 ? void 0 : _actionRef$current7$r.call(_actionRef$current7); // 清空表格选择
|
210
|
-
|
211
|
-
(_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$c = _actionRef$current8.clearRowSelection) === null || _actionRef$current8$c === void 0 ? void 0 : _actionRef$current8$c.call(_actionRef$current8);
|
212
|
-
}
|
204
|
+
(_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$r = _actionRef$current6.request) === null || _actionRef$current6$r === void 0 ? void 0 : _actionRef$current6$r.call(_actionRef$current6, _defineProperty({}, targetPageKey, 1));
|
205
|
+
(_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$r = _actionRef$current7.resetPage) === null || _actionRef$current7$r === void 0 ? void 0 : _actionRef$current7$r.call(_actionRef$current7); // 清空表格选择
|
213
206
|
|
207
|
+
(_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$c = _actionRef$current8.clearRowSelection) === null || _actionRef$current8$c === void 0 ? void 0 : _actionRef$current8$c.call(_actionRef$current8);
|
214
208
|
setVisible(false);
|
215
209
|
}
|
216
210
|
}, getMessage('ok')), /*#__PURE__*/React.createElement(Button, {
|
package/lib/actions/dialog.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { quickShowDrawerProps } from '@alicloudfe/components/types/drawer';
|
|
4
4
|
import { ProFormSchema, ProFormSchemaItem } from '../form';
|
5
5
|
import { ProMessageProps } from '../utils/message';
|
6
6
|
import { RequestAction } from './request';
|
7
|
-
export interface DialogAction extends Omit<RequestAction, 'url'>, Omit<QuickShowConfig, 'onError' | 'type'>, Omit<quickShowDrawerProps, 'trigger' | 'animation' | 'height' | 'locale' | '
|
7
|
+
export interface DialogAction extends Omit<RequestAction, 'url'>, Omit<QuickShowConfig, 'onError' | 'type'>, Omit<quickShowDrawerProps, 'trigger' | 'animation' | 'height' | 'locale' | 'onError'> {
|
8
8
|
/** 点击「确认按钮」后的数据请求地址,非必填,不填就不发请求 */
|
9
9
|
url?: string;
|
10
10
|
/** 弹窗类型,支持普通弹窗和抽屉两种模式,默认为普通弹窗 */
|
@@ -25,6 +25,10 @@ export interface DialogAction extends Omit<RequestAction, 'url'>, Omit<QuickShow
|
|
25
25
|
schema?: any;
|
26
26
|
/** 弹窗内容区的组件 */
|
27
27
|
component?: any;
|
28
|
+
/** 点击确定自定义回调函数 */
|
29
|
+
onOk?: any;
|
30
|
+
/** 点击取消自定义回调函数 */
|
31
|
+
onCancel?: any;
|
28
32
|
}
|
29
33
|
export declare function useDialogAction(action: DialogAction, actionContext?: any, hasForm?: boolean): {
|
30
34
|
[x: string]: (e: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
|
package/lib/actions/dialog.js
CHANGED
@@ -30,7 +30,7 @@ var _request = require("./request");
|
|
30
30
|
|
31
31
|
var _utils2 = require("./utils");
|
32
32
|
|
33
|
-
var _excluded = ["trigger", "url", "customRequest", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError"],
|
33
|
+
var _excluded = ["trigger", "url", "customRequest", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError", "onOk", "onCancel"],
|
34
34
|
_excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "popType", "beforeRequest", "onTrigger", "link", "beforeContent", "afterContent", "message", "footerDescription", "footerAlign", "className"];
|
35
35
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -77,7 +77,9 @@ var FooterForm = function FooterForm(props) {
|
|
77
77
|
var schema = props.schema,
|
78
78
|
context = props.context,
|
79
79
|
formRef = props.formRef;
|
80
|
-
var form = (0,
|
80
|
+
var form = (0, _react.useMemo)(function () {
|
81
|
+
return (0, _form.createForm)();
|
82
|
+
}, []);
|
81
83
|
(0, _react.useEffect)(function () {
|
82
84
|
formRef.current = form;
|
83
85
|
}, []);
|
@@ -121,6 +123,8 @@ function useDialogAction(action, actionContext, hasForm) {
|
|
121
123
|
formatResult = action.formatResult,
|
122
124
|
onSuccess = action.onSuccess,
|
123
125
|
onError = action.onError,
|
126
|
+
propsOnOk = action.onOk,
|
127
|
+
propsOnCancel = action.onCancel,
|
124
128
|
others = _objectWithoutProperties(action, _excluded);
|
125
129
|
|
126
130
|
var _getTargetValue = (0, _utils.getTargetValue)(others, context),
|
@@ -201,33 +205,34 @@ function useDialogAction(action, actionContext, hasForm) {
|
|
201
205
|
|
202
206
|
case 6:
|
203
207
|
onFinish && onFinish();
|
208
|
+
propsOnOk && propsOnOk(context);
|
204
209
|
resolve(true);
|
205
|
-
_context.next =
|
210
|
+
_context.next = 19;
|
206
211
|
break;
|
207
212
|
|
208
|
-
case
|
209
|
-
_context.prev =
|
213
|
+
case 11:
|
214
|
+
_context.prev = 11;
|
210
215
|
_context.t0 = _context["catch"](2);
|
211
216
|
setLoading(false); // 如果 beforeRequest 中返回了 false 并且不是 dialog-form,则直接关闭弹窗
|
212
217
|
|
213
218
|
if (!(beforeRequest && !hasForm)) {
|
214
|
-
_context.next =
|
219
|
+
_context.next = 17;
|
215
220
|
break;
|
216
221
|
}
|
217
222
|
|
218
223
|
resolve(true);
|
219
224
|
return _context.abrupt("return");
|
220
225
|
|
221
|
-
case
|
226
|
+
case 17:
|
222
227
|
resolve(false);
|
223
228
|
return _context.abrupt("return");
|
224
229
|
|
225
|
-
case
|
230
|
+
case 19:
|
226
231
|
case "end":
|
227
232
|
return _context.stop();
|
228
233
|
}
|
229
234
|
}
|
230
|
-
}, _callee, null, [[2,
|
235
|
+
}, _callee, null, [[2, 11]]);
|
231
236
|
}));
|
232
237
|
|
233
238
|
return function (_x) {
|
@@ -250,7 +255,9 @@ function useDialogAction(action, actionContext, hasForm) {
|
|
250
255
|
});
|
251
256
|
var dialogContent = Component ? /*#__PURE__*/_react.default.createElement(Component, _objectSpread({}, (0, _utils2.addContext)(componentProps, dialogContext))) : addContextForReactNode(content, dialogContext);
|
252
257
|
|
253
|
-
var quickShowProps = _objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(isPop ? 'onConfirm' : 'onOk'), onOk), _defineProperty(_objectSpread2, "
|
258
|
+
var quickShowProps = _objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(isPop ? 'onConfirm' : 'onOk'), onOk), _defineProperty(_objectSpread2, "onCancel", function onCancel() {
|
259
|
+
propsOnCancel && propsOnCancel(context);
|
260
|
+
}), _defineProperty(_objectSpread2, "title", addContextForReactNode(title, dialogContext)), _defineProperty(_objectSpread2, "content", /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, beforeContent && /*#__PURE__*/_react.default.createElement("div", {
|
254
261
|
className: "teamix-pro-dialog-before-content"
|
255
262
|
}, addContextForReactNode(beforeContent, dialogContext)), message && /*#__PURE__*/_react.default.createElement("div", {
|
256
263
|
className: "teamix-pro-dialog-message"
|
@@ -182,7 +182,7 @@ var ProForm = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
182
182
|
});
|
183
183
|
});
|
184
184
|
}
|
185
|
-
}, [onChange]);
|
185
|
+
}, [onChange, form]);
|
186
186
|
(0, _react.useEffect)(function () {
|
187
187
|
// 配置国际化
|
188
188
|
(0, _core.setValidateLanguage)((0, _utils.getLanguage)() || 'zh-cn');
|
package/lib/index.d.ts
CHANGED
@@ -28,5 +28,5 @@ export * from './table';
|
|
28
28
|
export * from './sidebar';
|
29
29
|
export * from './utils';
|
30
30
|
export * from './timeline';
|
31
|
-
declare const version = "1.4.
|
31
|
+
declare const version = "1.4.9";
|
32
32
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/lib/index.js
CHANGED
@@ -191,7 +191,7 @@ var Filter = function Filter(props) {
|
|
191
191
|
btn: true
|
192
192
|
}),
|
193
193
|
onClick: function onClick() {
|
194
|
-
var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge6, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current4$s;
|
194
|
+
var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge6, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current4$s, _actionRef$current5, _actionRef$current6, _actionRef$current6$r, _actionRef$current7, _actionRef$current7$r, _actionRef$current8, _actionRef$current8$c;
|
195
195
|
|
196
196
|
(_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$f = _actionRef$current2.filterDataSource) === null || _actionRef$current2$f === void 0 ? void 0 : _actionRef$current2$f.call(_actionRef$current2, column.dataIndex); // 先获取此列的param
|
197
197
|
|
@@ -212,24 +212,18 @@ var Filter = function Filter(props) {
|
|
212
212
|
rules: selected,
|
213
213
|
params: param
|
214
214
|
})));
|
215
|
+
var targetPageKey = 'currentPage';
|
216
|
+
var pageInfo = (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : _actionRef$current5.pageInfo;
|
215
217
|
|
216
|
-
if (
|
217
|
-
|
218
|
+
if (pageInfo && (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey)) {
|
219
|
+
targetPageKey = pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey;
|
220
|
+
} // 发送请求
|
218
221
|
|
219
|
-
var targetPageKey = 'currentPage';
|
220
|
-
var pageInfo = (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : _actionRef$current5.pageInfo;
|
221
222
|
|
222
|
-
|
223
|
-
|
224
|
-
} // 发送请求
|
225
|
-
|
226
|
-
|
227
|
-
(_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$r = _actionRef$current6.request) === null || _actionRef$current6$r === void 0 ? void 0 : _actionRef$current6$r.call(_actionRef$current6, _defineProperty({}, targetPageKey, 1));
|
228
|
-
(_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$r = _actionRef$current7.resetPage) === null || _actionRef$current7$r === void 0 ? void 0 : _actionRef$current7$r.call(_actionRef$current7); // 清空表格选择
|
229
|
-
|
230
|
-
(_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$c = _actionRef$current8.clearRowSelection) === null || _actionRef$current8$c === void 0 ? void 0 : _actionRef$current8$c.call(_actionRef$current8);
|
231
|
-
}
|
223
|
+
(_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$r = _actionRef$current6.request) === null || _actionRef$current6$r === void 0 ? void 0 : _actionRef$current6$r.call(_actionRef$current6, _defineProperty({}, targetPageKey, 1));
|
224
|
+
(_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$r = _actionRef$current7.resetPage) === null || _actionRef$current7$r === void 0 ? void 0 : _actionRef$current7$r.call(_actionRef$current7); // 清空表格选择
|
232
225
|
|
226
|
+
(_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$c = _actionRef$current8.clearRowSelection) === null || _actionRef$current8$c === void 0 ? void 0 : _actionRef$current8$c.call(_actionRef$current8);
|
233
227
|
setVisible(false);
|
234
228
|
}
|
235
229
|
}, (0, _utils.getMessage)('ok')), /*#__PURE__*/_react.default.createElement(_components.Button, {
|