@jswork/antd-components 1.0.136 → 1.0.138
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 -2
- package/dist/main.d.ts +3 -2
- package/dist/main.esm.js +1 -1
- package/dist/main.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/button.tsx +8 -2
- package/src/lib/table.tsx +2 -3
package/package.json
CHANGED
package/src/lib/button.tsx
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* @Author: aric 1290657123@qq.com
|
|
3
3
|
* @Date: 2025-10-18 07:09:31
|
|
4
4
|
* @LastEditors: aric 1290657123@qq.com
|
|
5
|
-
* @LastEditTime: 2025-10-
|
|
5
|
+
* @LastEditTime: 2025-10-25 07:32:18
|
|
6
6
|
*/
|
|
7
7
|
import React, { FC } from 'react';
|
|
8
8
|
import { Button, ButtonProps } from 'antd';
|
|
9
9
|
import {
|
|
10
10
|
ArrowLeftOutlined,
|
|
11
11
|
CheckOutlined,
|
|
12
|
-
CloseOutlined,
|
|
12
|
+
CloseOutlined, CopyOutlined,
|
|
13
13
|
DownloadOutlined,
|
|
14
14
|
EditOutlined,
|
|
15
15
|
EyeOutlined,
|
|
@@ -35,6 +35,7 @@ const locals = {
|
|
|
35
35
|
submit: '提交',
|
|
36
36
|
cancel: '取消',
|
|
37
37
|
sync: '同步',
|
|
38
|
+
copy: '复制',
|
|
38
39
|
},
|
|
39
40
|
'en-US': {
|
|
40
41
|
create: 'Create',
|
|
@@ -49,6 +50,7 @@ const locals = {
|
|
|
49
50
|
submit: 'Submit',
|
|
50
51
|
cancel: 'Cancel',
|
|
51
52
|
sync: 'Sync',
|
|
53
|
+
copy: 'Copy',
|
|
52
54
|
},
|
|
53
55
|
};
|
|
54
56
|
|
|
@@ -107,3 +109,7 @@ export const BtnCancel: FC<AcButtonProps> = ({ lang = 'zh-CN', ...props }) => {
|
|
|
107
109
|
export const BtnSync: FC<AcButtonProps> = ({ lang = 'zh-CN', ...props }) => {
|
|
108
110
|
return <Button size="small" icon={<SyncOutlined />} children={t(lang, 'sync')} {...props} />;
|
|
109
111
|
};
|
|
112
|
+
|
|
113
|
+
export const BtnCopy: FC<AcButtonProps> = ({ lang = 'zh-CN', ...props }) => {
|
|
114
|
+
return <Button size="small" icon={<CopyOutlined />} children={t(lang, 'copy')} {...props} />;
|
|
115
|
+
};
|
package/src/lib/table.tsx
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
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 21:
|
|
5
|
+
* @LastEditTime: 2025-10-24 21:11:05
|
|
6
6
|
*/
|
|
7
7
|
import type { EventMittNamespace } from '@jswork/event-mitt';
|
|
8
8
|
import { ReactHarmonyEvents } from '@jswork/harmony-events';
|
|
9
9
|
import UrlSyncFlat from '@jswork/url-sync-flat';
|
|
10
|
-
import {
|
|
10
|
+
import { Table, TableProps } from 'antd';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import nx from '@jswork/next';
|
|
@@ -168,7 +168,6 @@ export class AcTable extends React.Component<AcTableProps, AcTableState> {
|
|
|
168
168
|
total: 0,
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
void message.error(error?.message || error?.toString?.());
|
|
172
171
|
} finally {
|
|
173
172
|
if (!abortController.signal.aborted) {
|
|
174
173
|
this.setState({ isLoading: false });
|