@hw-component/table 1.9.72 → 1.9.78
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/es/HTableBody/HeaderTitle/index.js +5 -1
- package/es/index.css +4 -1
- package/lib/HTableBody/HeaderTitle/index.js +5 -1
- package/lib/index.css +4 -1
- package/package.json +1 -1
- package/src/components/HTableBody/HeaderTitle/index.tsx +2 -2
- package/src/components/index.less +11 -4
- package/src/index.less +6 -1
- package/src/pages/Table/index.tsx +23 -13
|
@@ -16,6 +16,7 @@ var HeaderTitle = (function (_ref) {
|
|
|
16
16
|
allSelectChange = _useHTableContext.allSelectChange;
|
|
17
17
|
var headerBox = useClassName("hw-table-header-title-box");
|
|
18
18
|
var headerBoxContent = useClassName("hw-table-header-title-box-content");
|
|
19
|
+
var rightNodeClassname = useClassName("hw-table-header-right-node");
|
|
19
20
|
if (!headerTitle && !rNode) {
|
|
20
21
|
return null;
|
|
21
22
|
}
|
|
@@ -34,7 +35,10 @@ var HeaderTitle = (function (_ref) {
|
|
|
34
35
|
tableInstance: tableInstance
|
|
35
36
|
})
|
|
36
37
|
})
|
|
37
|
-
}), rNode &&
|
|
38
|
+
}), rNode && jsx("div", {
|
|
39
|
+
className: rightNodeClassname,
|
|
40
|
+
children: rNode
|
|
41
|
+
})]
|
|
38
42
|
});
|
|
39
43
|
});
|
|
40
44
|
|
package/es/index.css
CHANGED
|
@@ -118,8 +118,11 @@
|
|
|
118
118
|
display: -ms-flexbox;
|
|
119
119
|
display: flex;
|
|
120
120
|
position: relative;
|
|
121
|
-
|
|
121
|
+
box-sizing: border-box;
|
|
122
122
|
overflow: auto;
|
|
123
|
+
margin: -10px 0px;
|
|
124
|
+
padding: 10px 0px;
|
|
125
|
+
margin-right: 12px;
|
|
123
126
|
}
|
|
124
127
|
.ant-hw-table-header-title-box .ant-hw-table-header-title-box-content {
|
|
125
128
|
white-space: nowrap;
|
|
@@ -19,6 +19,7 @@ var HeaderTitle = (function (_ref) {
|
|
|
19
19
|
allSelectChange = _useHTableContext.allSelectChange;
|
|
20
20
|
var headerBox = index.useClassName("hw-table-header-title-box");
|
|
21
21
|
var headerBoxContent = index.useClassName("hw-table-header-title-box-content");
|
|
22
|
+
var rightNodeClassname = index.useClassName("hw-table-header-right-node");
|
|
22
23
|
if (!headerTitle && !rNode) {
|
|
23
24
|
return null;
|
|
24
25
|
}
|
|
@@ -37,7 +38,10 @@ var HeaderTitle = (function (_ref) {
|
|
|
37
38
|
tableInstance: tableInstance
|
|
38
39
|
})
|
|
39
40
|
})
|
|
40
|
-
}), rNode &&
|
|
41
|
+
}), rNode && jsxRuntime.jsx("div", {
|
|
42
|
+
className: rightNodeClassname,
|
|
43
|
+
children: rNode
|
|
44
|
+
})]
|
|
41
45
|
});
|
|
42
46
|
});
|
|
43
47
|
|
package/lib/index.css
CHANGED
|
@@ -118,8 +118,11 @@
|
|
|
118
118
|
display: -ms-flexbox;
|
|
119
119
|
display: flex;
|
|
120
120
|
position: relative;
|
|
121
|
-
|
|
121
|
+
box-sizing: border-box;
|
|
122
122
|
overflow: auto;
|
|
123
|
+
margin: -10px 0px;
|
|
124
|
+
padding: 10px 0px;
|
|
125
|
+
margin-right: 12px;
|
|
123
126
|
}
|
|
124
127
|
.ant-hw-table-header-title-box .ant-hw-table-header-title-box-content {
|
|
125
128
|
white-space: nowrap;
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export default ({ headerTitle, contentStyle, rNode }: IProps) => {
|
|
|
14
14
|
useHTableContext();
|
|
15
15
|
const headerBox = useClassName("hw-table-header-title-box");
|
|
16
16
|
const headerBoxContent = useClassName("hw-table-header-title-box-content");
|
|
17
|
-
|
|
17
|
+
const rightNodeClassname=useClassName("hw-table-header-right-node");
|
|
18
18
|
if (!headerTitle && !rNode) {
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
@@ -29,7 +29,7 @@ export default ({ headerTitle, contentStyle, rNode }: IProps) => {
|
|
|
29
29
|
)}
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
|
-
{rNode && rNode}
|
|
32
|
+
{rNode && <div className={rightNodeClassname}>{rNode}</div>}
|
|
33
33
|
</Row>
|
|
34
34
|
);
|
|
35
35
|
};
|
|
@@ -106,19 +106,26 @@
|
|
|
106
106
|
color:#1890ff;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
.@{ant-prefix}-hw-table-pointer-not-hover{
|
|
109
|
+
.@{ant-prefix}-hw-table-pointer-not-hover {
|
|
110
110
|
cursor: pointer;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
|
|
113
|
+
.@{ant-prefix}-hw-table-header-title-box {
|
|
113
114
|
flex: 1;
|
|
114
115
|
display: flex;
|
|
115
116
|
position: relative;
|
|
116
|
-
|
|
117
|
+
box-sizing: border-box;
|
|
117
118
|
overflow: auto;
|
|
118
|
-
|
|
119
|
+
margin: -10px 0px;
|
|
120
|
+
padding: 10px 0px;
|
|
121
|
+
margin-right: 12px;
|
|
122
|
+
.@{ant-prefix}-hw-table-header-title-box-content {
|
|
119
123
|
white-space: nowrap;
|
|
120
124
|
}
|
|
121
125
|
}
|
|
126
|
+
.@{ant-prefix}-hw-table-header-right-node{
|
|
127
|
+
|
|
128
|
+
}
|
|
122
129
|
|
|
123
130
|
.@{ant-prefix}-hw-table-render-copy{
|
|
124
131
|
margin-bottom: 0 !important;
|
package/src/index.less
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
HTableHeaderSubBtn,
|
|
6
6
|
HTableHeader,
|
|
7
7
|
} from "@/components";
|
|
8
|
-
import {
|
|
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";
|
|
@@ -230,22 +230,32 @@ export default () => {
|
|
|
230
230
|
total: 100,
|
|
231
231
|
});
|
|
232
232
|
}}
|
|
233
|
-
tableExtraRender={() => {
|
|
234
|
-
return <div>ffff</div>;
|
|
235
|
-
}}
|
|
236
233
|
headerTitle={
|
|
237
|
-
<
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
234
|
+
<Space size={8}>
|
|
235
|
+
<div style={{width:2000}}>
|
|
236
|
+
<Button
|
|
237
|
+
onClick={() => {
|
|
238
|
+
console.log(hTable.table.getColSettingKeys());
|
|
239
|
+
}}
|
|
240
|
+
>
|
|
241
|
+
操作
|
|
242
|
+
</Button>
|
|
243
|
+
</div>
|
|
244
|
+
<Button
|
|
245
|
+
onClick={() => {
|
|
246
|
+
console.log(hTable.table.getColSettingKeys());
|
|
247
|
+
}}
|
|
248
|
+
>
|
|
249
|
+
操作
|
|
250
|
+
</Button>
|
|
251
|
+
<Button
|
|
241
252
|
onClick={() => {
|
|
242
253
|
console.log(hTable.table.getColSettingKeys());
|
|
243
254
|
}}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
</div>
|
|
255
|
+
>
|
|
256
|
+
操作
|
|
257
|
+
</Button>
|
|
258
|
+
</Space>
|
|
249
259
|
}
|
|
250
260
|
options={{
|
|
251
261
|
settingRender: () => {
|