@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.
- package/.eslintcache +1 -1
- package/README.md +0 -9
- package/es/DialogTable/Content.js +2 -1
- package/es/EditTable/hooks.d.ts +1 -1
- package/es/EditTable/hooks.js +36 -10
- package/es/EditTable/index.d.ts +1 -1
- package/es/EditTable/index.js +9 -1
- package/es/EditTable/modal.d.ts +3 -3
- package/es/HTableBody/AlertMsg.d.ts +1 -1
- package/es/HTableBody/hooks/useControl.d.ts +1 -1
- package/es/HTableBody/hooks/useControl.js +0 -1
- package/es/hooks/useRowObj.js +1 -0
- package/es/render/Text.d.ts +0 -1
- package/lib/DialogTable/Content.js +2 -1
- package/lib/EditTable/hooks.d.ts +1 -1
- package/lib/EditTable/hooks.js +36 -10
- package/lib/EditTable/index.d.ts +1 -1
- package/lib/EditTable/index.js +9 -1
- package/lib/EditTable/modal.d.ts +3 -3
- package/lib/HTableBody/AlertMsg.d.ts +1 -1
- package/lib/HTableBody/hooks/useControl.d.ts +1 -1
- package/lib/HTableBody/hooks/useControl.js +0 -1
- package/lib/hooks/useRowObj.js +1 -0
- package/lib/render/Text.d.ts +0 -1
- package/package.json +1 -1
- package/src/components/DialogTable/Content.tsx +1 -0
- package/src/components/EditTable/hooks.ts +27 -2
- package/src/components/EditTable/index.tsx +6 -0
- package/src/components/EditTable/modal.ts +3 -3
- package/src/components/HTableBody/AlertMsg.tsx +1 -1
- package/src/components/HTableBody/hooks/useControl.tsx +6 -12
- package/src/components/HTableBody/index.tsx +12 -3
- package/src/components/hooks/useRowObj.ts +14 -13
- package/src/components/modal.ts +1 -1
- package/src/pages/EditTable/index.tsx +22 -5
- package/src/pages/ModalEditTable/index.tsx +2 -2
- package/src/pages/Table/index.tsx +13 -4
- 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: (
|
|
259
|
-
console.log(
|
|
267
|
+
onChange: (changeKey, rowData) => {
|
|
268
|
+
console.log(changeKey, rowData);
|
|
260
269
|
},
|
|
261
270
|
allCheckType: "batch",
|
|
262
|
-
selectedRowKeys:
|
|
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/)
|