@jswork/antd-components 1.0.154 → 1.0.155

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.154",
3
+ "version": "1.0.155",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.esm.js",
6
6
  "types": "dist/main.d.ts",
@@ -2,10 +2,10 @@
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-26 14:48:21
5
+ * @LastEditTime: 2025-10-27 13:26:45
6
6
  */
7
7
  import { Space, SpaceProps } from 'antd';
8
- import React, { FC } from 'react';
8
+ import React, { FC, Fragment } from 'react';
9
9
  import nx from '@jswork/next';
10
10
  import { BtnBack, BtnCreate, BtnRefresh } from './button';
11
11
 
@@ -35,14 +35,14 @@ export const AcTableExtras: FC<AcTableExtrasProps> = (props) => {
35
35
  const handleBack = () => history.back();
36
36
  const AsComponent = as || Space;
37
37
  const items = {
38
- reset: <BtnRefresh key="reset" lang={lang} onClick={handleRefresh} />,
39
- add: <BtnCreate key="add" lang={lang} onClick={handleAdd} />,
40
- back: <BtnBack key="back" lang={lang} onClick={handleBack} />,
38
+ reset: <BtnRefresh lang={lang} onClick={handleRefresh} />,
39
+ add: <BtnCreate lang={lang} onClick={handleAdd} />,
40
+ back: <BtnBack lang={lang} onClick={handleBack} />,
41
41
  };
42
42
 
43
43
  return (
44
44
  <AsComponent {...asProps}>
45
- {actions?.map((action) => items[action])}
45
+ {actions?.map((action) => <Fragment key={action}>{items[action]}</Fragment>)}
46
46
  </AsComponent>
47
47
  );
48
48
  };