@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/dist/main.cjs.js +1 -1
- package/dist/main.d.mts +3 -3
- package/dist/main.d.ts +3 -3
- package/dist/main.esm.js +1 -1
- package/dist/main.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/table-extras.tsx +2 -2
- package/src/lib/table-links.tsx +2 -2
- package/src/lib/table.tsx +2 -2
package/package.json
CHANGED
package/src/lib/table-extras.tsx
CHANGED
|
@@ -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
|
|
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?:
|
|
22
|
+
asProps?: any;
|
|
23
23
|
actions?: string []
|
|
24
24
|
}
|
|
25
25
|
|
package/src/lib/table-links.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
|
|
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?:
|
|
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
|
|
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
|
|
171
|
+
void message.error(error?.message || error?.toString?.());
|
|
172
172
|
} finally {
|
|
173
173
|
if (!abortController.signal.aborted) {
|
|
174
174
|
this.setState({ isLoading: false });
|