@jswork/antd-components 1.0.173 → 1.0.174
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/main.cjs.js +1 -1
- package/dist/main.d.mts +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.esm.js +1 -1
- package/dist/main.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/table-extra-search.tsx +1 -1
- package/src/lib/table.tsx +3 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: aric.zheng 1290657123@qq.com
|
|
3
3
|
* @Date: 2025-10-29 10:54:41
|
|
4
4
|
* @LastEditors: aric.zheng 1290657123@qq.com
|
|
5
|
-
* @LastEditTime: 2025-10-29 13:10
|
|
5
|
+
* @LastEditTime: 2025-10-29 13:13:10
|
|
6
6
|
*/
|
|
7
7
|
import React, { FC } from 'react';
|
|
8
8
|
import { AcSearch, AcSearchProps } from './search';
|
package/src/lib/table.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: aric 1290657123@qq.com
|
|
3
3
|
* @Date: 2025-10-03 07:11:26
|
|
4
4
|
* @LastEditors: aric.zheng 1290657123@qq.com
|
|
5
|
-
* @LastEditTime: 2025-10-29 13:
|
|
5
|
+
* @LastEditTime: 2025-10-29 13:14:22
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* 路由风格: /{module}/{name} eg: /admin/staff-roles
|
|
@@ -226,9 +226,9 @@ export class AcTable extends React.Component<AcTableProps, AcTableState> {
|
|
|
226
226
|
const abortController = new AbortController();
|
|
227
227
|
const { params } = this.props;
|
|
228
228
|
const currentParams = this.sync.readInitialState();
|
|
229
|
-
const lastParams = nx.compactObject({ ...params, ...
|
|
229
|
+
const lastParams = nx.compactObject({ ...params, ...overrideParams });
|
|
230
230
|
this.setState({ isLoading: true });
|
|
231
|
-
this.sync.schedule({ page, size, ...lastParams });
|
|
231
|
+
this.sync.schedule({ ...currentParams, page, size, ...lastParams });
|
|
232
232
|
try {
|
|
233
233
|
const result = await this.defaultFetcher({ current: page, pageSize: size, params: lastParams });
|
|
234
234
|
if (!abortController.signal.aborted) {
|