@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/antd-components",
3
- "version": "1.0.173",
3
+ "version": "1.0.174",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.esm.js",
6
6
  "types": "dist/main.d.ts",
@@ -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:07
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:08:01
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, ...currentParams, ...overrideParams });
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) {