@hw-component/table 1.10.48 → 1.10.51

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.
Files changed (38) hide show
  1. package/.eslintcache +1 -1
  2. package/README.md +0 -9
  3. package/es/DialogTable/Content.js +2 -1
  4. package/es/EditTable/hooks.d.ts +1 -1
  5. package/es/EditTable/hooks.js +36 -10
  6. package/es/EditTable/index.d.ts +1 -1
  7. package/es/EditTable/index.js +9 -1
  8. package/es/EditTable/modal.d.ts +3 -3
  9. package/es/HTableBody/AlertMsg.d.ts +1 -1
  10. package/es/HTableBody/hooks/useControl.d.ts +1 -1
  11. package/es/HTableBody/hooks/useControl.js +0 -1
  12. package/es/hooks/useRowObj.js +1 -0
  13. package/es/render/Text.d.ts +0 -1
  14. package/lib/DialogTable/Content.js +2 -1
  15. package/lib/EditTable/hooks.d.ts +1 -1
  16. package/lib/EditTable/hooks.js +36 -10
  17. package/lib/EditTable/index.d.ts +1 -1
  18. package/lib/EditTable/index.js +9 -1
  19. package/lib/EditTable/modal.d.ts +3 -3
  20. package/lib/HTableBody/AlertMsg.d.ts +1 -1
  21. package/lib/HTableBody/hooks/useControl.d.ts +1 -1
  22. package/lib/HTableBody/hooks/useControl.js +0 -1
  23. package/lib/hooks/useRowObj.js +1 -0
  24. package/lib/render/Text.d.ts +0 -1
  25. package/package.json +1 -1
  26. package/src/components/DialogTable/Content.tsx +1 -0
  27. package/src/components/EditTable/hooks.ts +27 -2
  28. package/src/components/EditTable/index.tsx +6 -0
  29. package/src/components/EditTable/modal.ts +3 -3
  30. package/src/components/HTableBody/AlertMsg.tsx +1 -1
  31. package/src/components/HTableBody/hooks/useControl.tsx +6 -12
  32. package/src/components/HTableBody/index.tsx +12 -3
  33. package/src/components/hooks/useRowObj.ts +14 -13
  34. package/src/components/modal.ts +1 -1
  35. package/src/pages/EditTable/index.tsx +22 -5
  36. package/src/pages/ModalEditTable/index.tsx +2 -2
  37. package/src/pages/Table/index.tsx +13 -4
  38. package/README.en.md +0 -36
@@ -169,8 +169,17 @@ export default () => {
169
169
  },
170
170
  },
171
171
  ]);
172
+ const [keys, setKeys] = useState(["1-1"]);
173
+
172
174
  return (
173
175
  <HFormConfigProvider>
176
+ <div
177
+ onClick={() => {
178
+ setKeys([]);
179
+ }}
180
+ >
181
+ 清空
182
+ </div>
174
183
  <ProTable
175
184
  columns={cols}
176
185
  actionRef={ref}
@@ -255,12 +264,12 @@ export default () => {
255
264
  rowSelection={{
256
265
  preserveSelectedRowKeys: true,
257
266
  allPageCheck: false,
258
- onChange: (keys, rowData) => {
259
- console.log(keys, rowData);
267
+ onChange: (changeKey, rowData) => {
268
+ console.log(changeKey, rowData);
260
269
  },
261
270
  allCheckType: "batch",
262
- selectedRowKeys:["1-1"],
263
- selectedRowData:[{id:"1-1"}]
271
+ selectedRowKeys: keys,
272
+ selectedRowData: [{ id: "1-1" }],
264
273
  }}
265
274
  affixProps={{
266
275
  target: () => document.querySelector(".body"),
package/README.en.md DELETED
@@ -1,36 +0,0 @@
1
- # hw-component-table
2
-
3
- #### Description
4
- table组件
5
-
6
- #### Software Architecture
7
- Software architecture description
8
-
9
- #### Installation
10
-
11
- 1. xxxx
12
- 2. xxxx
13
- 3. xxxx
14
-
15
- #### Instructions
16
-
17
- 1. xxxx
18
- 2. xxxx
19
- 3. xxxx
20
-
21
- #### Contribution
22
-
23
- 1. Fork the repository
24
- 2. Create Feat_xxx branch
25
- 3. Commit your code
26
- 4. Create Pull Request
27
-
28
-
29
- #### Gitee Feature
30
-
31
- 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
32
- 2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
33
- 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
34
- 4. The most valuable open source project [GVP](https://gitee.com/gvp)
35
- 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
36
- 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)