@jswork/antd-components 1.0.124 → 1.0.125
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.esm.js +1 -1
- package/dist/main.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/table-links.tsx +3 -3
package/package.json
CHANGED
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-23 17:
|
|
5
|
+
* @LastEditTime: 2025-10-23 17:24:16
|
|
6
6
|
*/
|
|
7
7
|
import { Space } from 'antd';
|
|
8
8
|
import React, { FC } from 'react';
|
|
@@ -48,8 +48,8 @@ export const AcTableLinks: FC<AcTableLinksProps> = (props) => {
|
|
|
48
48
|
const handleEdit = () => nx.$event?.emit?.(`${name}:toEdit`, model);
|
|
49
49
|
const handleDestroy = () => nx.$event?.emit?.(`${name}:toDestroy`, model);
|
|
50
50
|
const links = {
|
|
51
|
-
edit: <a onClick={handleEdit}>{t('edit')}</a>,
|
|
52
|
-
destroy: <AcConfirmButton lang={lang} onClick={handleDestroy}>{t('destroy')}</AcConfirmButton>,
|
|
51
|
+
edit: <a key="edit" onClick={handleEdit}>{t('edit')}</a>,
|
|
52
|
+
destroy: <AcConfirmButton key="destroy" lang={lang} onClick={handleDestroy}>{t('destroy')}</AcConfirmButton>,
|
|
53
53
|
};
|
|
54
54
|
return <AsComponent {...asProps}>
|
|
55
55
|
{actions.map(((action) => links[action]))}
|