@hw-component/table 1.9.79 → 1.9.80
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/es/HTableBody/HeaderTitle/index.js +41 -5
- package/es/HTableBody/RowCheckBox/Title.d.ts +1 -1
- package/es/HTableBody/RowCheckBox/hooks.d.ts +1 -1
- package/es/HTableBody/RowRadioBoxSelection.d.ts +3 -3
- package/es/HTableBody/hooks/colsMk.d.ts +1 -1
- package/es/HTableBody/hooks/useControl.d.ts +1 -1
- package/es/index.css +24 -2
- package/es/render/Text.d.ts +0 -1
- package/lib/HTableBody/HeaderTitle/index.js +40 -4
- package/lib/HTableBody/RowCheckBox/Title.d.ts +1 -1
- package/lib/HTableBody/RowCheckBox/hooks.d.ts +1 -1
- package/lib/HTableBody/RowRadioBoxSelection.d.ts +3 -3
- package/lib/HTableBody/hooks/colsMk.d.ts +1 -1
- package/lib/HTableBody/hooks/useControl.d.ts +1 -1
- package/lib/index.css +24 -2
- package/lib/render/Text.d.ts +0 -1
- package/package.json +1 -1
- package/src/components/HTableBody/HeaderTitle/index.tsx +40 -9
- package/src/components/HTableBody/RowCheckBox/RowItem.tsx +40 -41
- package/src/components/HTableBody/RowCheckBox/Title.tsx +59 -63
- package/src/components/HTableBody/RowCheckBox/hooks.ts +64 -63
- package/src/components/HTableBody/RowRadioBoxSelection.tsx +24 -24
- package/src/components/HTableBody/hooks/colsMk.tsx +47 -47
- package/src/components/HTableBody/hooks/useColData.tsx +9 -9
- package/src/components/HTableBody/hooks/useControl.tsx +12 -10
- package/src/components/HTableBody/index.tsx +14 -5
- package/src/components/Table.tsx +10 -4
- package/src/components/hooks/useRowObj.ts +11 -11
- package/src/components/index.less +8 -3
- package/src/components/modal.ts +2 -2
- package/src/components/render/CopyComponent.tsx +9 -9
- package/src/components/render/TagsComponent.tsx +18 -8
- package/src/pages/DwTable/index.tsx +4 -4
- package/src/pages/Table/index.tsx +16 -16
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
HTableHeaderSubBtn,
|
|
6
6
|
HTableHeader,
|
|
7
7
|
} from "@/components";
|
|
8
|
-
import {Button, Card, Tooltip, Typography, Tag, Row, Space} from "antd";
|
|
8
|
+
import { Button, Card, Tooltip, Typography, Tag, Row, Space } from "antd";
|
|
9
9
|
import { HFormConfigProvider } from "@hw-component/form";
|
|
10
10
|
import { SettingOutlined } from "@ant-design/icons";
|
|
11
11
|
import ProTable from "@ant-design/pro-table";
|
|
@@ -181,7 +181,7 @@ export default () => {
|
|
|
181
181
|
size: "10",
|
|
182
182
|
current: "1",
|
|
183
183
|
});
|
|
184
|
-
const [keys,setKeys]=useState([]);
|
|
184
|
+
const [keys, setKeys] = useState([]);
|
|
185
185
|
return (
|
|
186
186
|
<HFormConfigProvider>
|
|
187
187
|
<div>
|
|
@@ -207,7 +207,7 @@ export default () => {
|
|
|
207
207
|
}}
|
|
208
208
|
rowSelection={{
|
|
209
209
|
allPageCheck: false,
|
|
210
|
-
preserveSelectedRowKeys:true,
|
|
210
|
+
preserveSelectedRowKeys: true,
|
|
211
211
|
}}
|
|
212
212
|
affixProps={{
|
|
213
213
|
target: () => document.querySelector(".body"),
|
|
@@ -232,26 +232,26 @@ export default () => {
|
|
|
232
232
|
}}
|
|
233
233
|
headerTitle={
|
|
234
234
|
<Space size={8}>
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
onClick={() => {
|
|
238
|
-
console.log(hTable.table.getColSettingKeys());
|
|
239
|
-
}}
|
|
240
|
-
>
|
|
241
|
-
操作
|
|
242
|
-
</Button>
|
|
243
|
-
</div>
|
|
244
|
-
<Button
|
|
235
|
+
<div style={{ width: 1000 }}>
|
|
236
|
+
<Button
|
|
245
237
|
onClick={() => {
|
|
246
238
|
console.log(hTable.table.getColSettingKeys());
|
|
247
239
|
}}
|
|
240
|
+
>
|
|
241
|
+
操作
|
|
242
|
+
</Button>
|
|
243
|
+
</div>
|
|
244
|
+
<Button
|
|
245
|
+
onClick={() => {
|
|
246
|
+
console.log(hTable.table.getColSettingKeys());
|
|
247
|
+
}}
|
|
248
248
|
>
|
|
249
249
|
操作
|
|
250
250
|
</Button>
|
|
251
251
|
<Button
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
onClick={() => {
|
|
253
|
+
console.log(hTable.table.getColSettingKeys());
|
|
254
|
+
}}
|
|
255
255
|
>
|
|
256
256
|
操作
|
|
257
257
|
</Button>
|