@vtx/components 4.0.0-beta.32 → 4.0.0-beta.34
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/vtx-datagrid/index.js +2 -1
- package/es/vtx-datagrid/renderColumnButtons.js +2 -2
- package/es/vtx-datagrid/style/index.js +12 -9
- package/lib/vtx-datagrid/index.js +2 -1
- package/lib/vtx-datagrid/renderColumnButtons.js +2 -2
- package/lib/vtx-datagrid/style/index.js +12 -9
- package/package.json +1 -1
package/es/vtx-datagrid/index.js
CHANGED
|
@@ -124,7 +124,8 @@ function VtxTable(props) {
|
|
|
124
124
|
}
|
|
125
125
|
var tableHeight = (_bodyDiv$getElementsB = bodyDiv.getElementsByTagName('table')) === null || _bodyDiv$getElementsB === void 0 || (_bodyDiv$getElementsB = _bodyDiv$getElementsB[0]) === null || _bodyDiv$getElementsB === void 0 ? void 0 : _bodyDiv$getElementsB.clientHeight;
|
|
126
126
|
if (tablePlaceholder) {
|
|
127
|
-
|
|
127
|
+
var _rootDomRef$current2;
|
|
128
|
+
tablePlaceholder.style.height = "".concat(((_rootDomRef$current2 = rootDomRef.current) === null || _rootDomRef$current2 === void 0 ? void 0 : _rootDomRef$current2.clientHeight) - headFootHeight + 68 - (rest.scrollY || 0) - 12, "px");
|
|
128
129
|
var tableCell = Array.prototype.filter.call(tablePlaceholder.getElementsByTagName('td'), function (dom) {
|
|
129
130
|
return dom.className.includes('ant-table-cell');
|
|
130
131
|
})[0];
|
|
@@ -53,7 +53,7 @@ var renderColumnButtons = function renderColumnButtons(_ref) {
|
|
|
53
53
|
var confirm = popconfirm.confirm,
|
|
54
54
|
rest = _objectWithoutProperties(popconfirm, _excluded);
|
|
55
55
|
return {
|
|
56
|
-
key:
|
|
56
|
+
key: index,
|
|
57
57
|
label: /*#__PURE__*/_jsx(Popconfirm, _objectSpread(_objectSpread({
|
|
58
58
|
trigger: ['hover'],
|
|
59
59
|
onConfirm: confirm ? function () {
|
|
@@ -65,7 +65,7 @@ var renderColumnButtons = function renderColumnButtons(_ref) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
|
-
key:
|
|
68
|
+
key: index,
|
|
69
69
|
label: item.name
|
|
70
70
|
};
|
|
71
71
|
})) || [],
|
|
@@ -15,15 +15,18 @@ var genVtxStyle = function genVtxStyle(token) {
|
|
|
15
15
|
height: '100%'
|
|
16
16
|
}, '.ant-spin-container', _defineProperty({
|
|
17
17
|
height: '100%'
|
|
18
|
-
}, '.ant-table',
|
|
19
|
-
height: '100%'
|
|
20
|
-
|
|
21
|
-
height: '100%'
|
|
22
|
-
|
|
23
|
-
height: '100%'
|
|
24
|
-
|
|
25
|
-
height: '100%'
|
|
26
|
-
|
|
18
|
+
}, '.ant-table', {
|
|
19
|
+
// height: '100%',
|
|
20
|
+
// ['.ant-table-container']: {
|
|
21
|
+
// height: '100%',
|
|
22
|
+
// ['.ant-table-content']: {
|
|
23
|
+
// height: '100%',
|
|
24
|
+
// ['table']: {
|
|
25
|
+
// height: '100%',
|
|
26
|
+
// }
|
|
27
|
+
// }
|
|
28
|
+
// }
|
|
29
|
+
}))), '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
|
|
27
30
|
'>tr>th': {
|
|
28
31
|
background: token.colorBgContainer
|
|
29
32
|
}
|
|
@@ -134,7 +134,8 @@ function VtxTable(props) {
|
|
|
134
134
|
}
|
|
135
135
|
var tableHeight = (_bodyDiv$getElementsB = bodyDiv.getElementsByTagName('table')) === null || _bodyDiv$getElementsB === void 0 || (_bodyDiv$getElementsB = _bodyDiv$getElementsB[0]) === null || _bodyDiv$getElementsB === void 0 ? void 0 : _bodyDiv$getElementsB.clientHeight;
|
|
136
136
|
if (tablePlaceholder) {
|
|
137
|
-
|
|
137
|
+
var _rootDomRef$current2;
|
|
138
|
+
tablePlaceholder.style.height = "".concat(((_rootDomRef$current2 = rootDomRef.current) === null || _rootDomRef$current2 === void 0 ? void 0 : _rootDomRef$current2.clientHeight) - headFootHeight + 68 - (rest.scrollY || 0) - 12, "px");
|
|
138
139
|
var tableCell = Array.prototype.filter.call(tablePlaceholder.getElementsByTagName('td'), function (dom) {
|
|
139
140
|
return dom.className.includes('ant-table-cell');
|
|
140
141
|
})[0];
|
|
@@ -59,7 +59,7 @@ var renderColumnButtons = function renderColumnButtons(_ref) {
|
|
|
59
59
|
var confirm = popconfirm.confirm,
|
|
60
60
|
rest = _objectWithoutProperties(popconfirm, _excluded);
|
|
61
61
|
return {
|
|
62
|
-
key:
|
|
62
|
+
key: index,
|
|
63
63
|
label: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Popconfirm, _objectSpread(_objectSpread({
|
|
64
64
|
trigger: ['hover'],
|
|
65
65
|
onConfirm: confirm ? function () {
|
|
@@ -71,7 +71,7 @@ var renderColumnButtons = function renderColumnButtons(_ref) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
return {
|
|
74
|
-
key:
|
|
74
|
+
key: index,
|
|
75
75
|
label: item.name
|
|
76
76
|
};
|
|
77
77
|
})) || [],
|
|
@@ -21,15 +21,18 @@ var genVtxStyle = function genVtxStyle(token) {
|
|
|
21
21
|
height: '100%'
|
|
22
22
|
}, '.ant-spin-container', _defineProperty({
|
|
23
23
|
height: '100%'
|
|
24
|
-
}, '.ant-table',
|
|
25
|
-
height: '100%'
|
|
26
|
-
|
|
27
|
-
height: '100%'
|
|
28
|
-
|
|
29
|
-
height: '100%'
|
|
30
|
-
|
|
31
|
-
height: '100%'
|
|
32
|
-
|
|
24
|
+
}, '.ant-table', {
|
|
25
|
+
// height: '100%',
|
|
26
|
+
// ['.ant-table-container']: {
|
|
27
|
+
// height: '100%',
|
|
28
|
+
// ['.ant-table-content']: {
|
|
29
|
+
// height: '100%',
|
|
30
|
+
// ['table']: {
|
|
31
|
+
// height: '100%',
|
|
32
|
+
// }
|
|
33
|
+
// }
|
|
34
|
+
// }
|
|
35
|
+
}))), '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
|
|
33
36
|
'>tr>th': {
|
|
34
37
|
background: token.colorBgContainer
|
|
35
38
|
}
|