@vtx/components 4.0.0-beta.32 → 4.0.0-beta.33

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.
@@ -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
- tablePlaceholder.style.height = "".concat(bodyHeight - (rest.scrollY || 0) - 12, "px");
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];
@@ -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', _defineProperty({
19
- height: '100%'
20
- }, '.ant-table-container', _defineProperty({
21
- height: '100%'
22
- }, '.ant-table-content', _defineProperty({
23
- height: '100%'
24
- }, 'table', {
25
- height: '100%'
26
- })))))), '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
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
- tablePlaceholder.style.height = "".concat(bodyHeight - (rest.scrollY || 0) - 12, "px");
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];
@@ -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', _defineProperty({
25
- height: '100%'
26
- }, '.ant-table-container', _defineProperty({
27
- height: '100%'
28
- }, '.ant-table-content', _defineProperty({
29
- height: '100%'
30
- }, 'table', {
31
- height: '100%'
32
- })))))), '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/components",
3
- "version": "4.0.0-beta.32",
3
+ "version": "4.0.0-beta.33",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",