@jswork/antd-components 1.0.134 → 1.0.136

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.134",
3
+ "version": "1.0.136",
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 1290657123@qq.com
3
3
  * @Date: 2025-10-24 20:40:55
4
4
  * @LastEditors: aric 1290657123@qq.com
5
- * @LastEditTime: 2025-10-24 20:50:02
5
+ * @LastEditTime: 2025-10-24 21:04:29
6
6
  */
7
7
  import { Button, Space, SpaceProps } from 'antd';
8
8
  import React, { FC } from 'react';
@@ -19,7 +19,7 @@ export type AcTableExtrasProps = SpaceProps & {
19
19
  name: string;
20
20
  lang?: string;
21
21
  as?: React.ComponentType<any>;
22
- asProps?: React.ComponentType<any>;
22
+ asProps?: any;
23
23
  actions?: string []
24
24
  }
25
25
 
@@ -2,7 +2,7 @@
2
2
  * @Author: aric 1290657123@qq.com
3
3
  * @Date: 2025-10-03 07:11:26
4
4
  * @LastEditors: aric 1290657123@qq.com
5
- * @LastEditTime: 2025-10-24 09:34:13
5
+ * @LastEditTime: 2025-10-24 21:04:35
6
6
  */
7
7
  import { Space } from 'antd';
8
8
  import React, { FC } from 'react';
@@ -32,7 +32,7 @@ export type AcTableLinksProps = {
32
32
  model?: any;
33
33
  lang?: string;
34
34
  as?: React.ComponentType<any>;
35
- asProps?: React.ComponentType<any>;
35
+ asProps?: any;
36
36
  actions?: string []
37
37
  }
38
38
 
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 1290657123@qq.com
5
- * @LastEditTime: 2025-10-24 13:03:12
5
+ * @LastEditTime: 2025-10-24 21:08:28
6
6
  */
7
7
  import type { EventMittNamespace } from '@jswork/event-mitt';
8
8
  import { ReactHarmonyEvents } from '@jswork/harmony-events';
@@ -168,7 +168,7 @@ export class AcTable extends React.Component<AcTableProps, AcTableState> {
168
168
  total: 0,
169
169
  });
170
170
  }
171
- void message.error(error.message || error.toString());
171
+ void message.error(error?.message || error?.toString?.());
172
172
  } finally {
173
173
  if (!abortController.signal.aborted) {
174
174
  this.setState({ isLoading: false });