@vtx/components 4.0.0-beta.31 → 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];
@@ -11,16 +11,32 @@ var genVtxStyle = function genVtxStyle(token) {
11
11
  return _defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
12
12
  position: 'relative',
13
13
  overflow: 'hidden'
14
- }, "".concat(antCls, "-table-wrapper"), _defineProperty(_defineProperty({}, '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
14
+ }, "".concat(antCls, "-table-wrapper"), _defineProperty(_defineProperty(_defineProperty({}, '.ant-spin', _defineProperty({
15
+ height: '100%'
16
+ }, '.ant-spin-container', _defineProperty({
17
+ height: '100%'
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', {
15
30
  '>tr>th': {
16
31
  background: token.colorBgContainer
17
32
  }
18
33
  })), '.ant-table-cell', {
19
34
  minWidth: 20
20
- }), '.ant-table-body', _defineProperty({}, '.ant-table-tbody', {
35
+ }), '.ant-table-tbody', {
21
36
  '>tr.ant-table-placeholder': {
22
37
  position: 'absolute',
23
- bottom: 12,
38
+ top: "auto",
39
+ bottom: "auto",
24
40
  right: 0,
25
41
  left: 0,
26
42
  backgroundColor: 'transparent',
@@ -32,19 +48,19 @@ var genVtxStyle = function genVtxStyle(token) {
32
48
  width: '100%',
33
49
  height: '100%',
34
50
  border: 'none',
35
- '.ant-table-expanded-row-fixed': {
51
+ '>.ant-table-expanded-row-fixed': {
36
52
  display: 'flex',
37
53
  alignItems: 'center',
38
54
  justifyContent: 'center',
39
55
  height: '100%',
40
56
  width: '100%',
41
- '&:after': {
42
- borderInlineEnd: 'none'
57
+ '&::after': {
58
+ border: 'none'
43
59
  }
44
60
  }
45
61
  }
46
62
  }
47
- }))), '.ant-pagination', _defineProperty({}, '.ant-pagination-item', {
63
+ })), '.ant-pagination', _defineProperty({}, '.ant-pagination-item', {
48
64
  borderRadius: token.borderRadiusSM
49
65
  }))), "&-fit", {
50
66
  height: '100%'
@@ -247,6 +247,9 @@ function VtxSearch(props) {
247
247
  return (realColumn - grid.len - 1) * (24 / realColumn);
248
248
  }
249
249
  } else {
250
+ console.log('grid.lenWeight', grid.lenWeight);
251
+ console.log('realColumn', realColumn);
252
+ console.log('showPosition', showPosition);
250
253
  if (grid.lenWeight > realColumn - 1) {
251
254
  var _total = Math.ceil((grid.lenWeight + 1) / realColumn);
252
255
  return (_total * realColumn - grid.lenWeight - 1) * (24 / realColumn);
@@ -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];
@@ -17,16 +17,32 @@ var genVtxStyle = function genVtxStyle(token) {
17
17
  return _defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
18
18
  position: 'relative',
19
19
  overflow: 'hidden'
20
- }, "".concat(antCls, "-table-wrapper"), _defineProperty(_defineProperty({}, '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
20
+ }, "".concat(antCls, "-table-wrapper"), _defineProperty(_defineProperty(_defineProperty({}, '.ant-spin', _defineProperty({
21
+ height: '100%'
22
+ }, '.ant-spin-container', _defineProperty({
23
+ height: '100%'
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', {
21
36
  '>tr>th': {
22
37
  background: token.colorBgContainer
23
38
  }
24
39
  })), '.ant-table-cell', {
25
40
  minWidth: 20
26
- }), '.ant-table-body', _defineProperty({}, '.ant-table-tbody', {
41
+ }), '.ant-table-tbody', {
27
42
  '>tr.ant-table-placeholder': {
28
43
  position: 'absolute',
29
- bottom: 12,
44
+ top: "auto",
45
+ bottom: "auto",
30
46
  right: 0,
31
47
  left: 0,
32
48
  backgroundColor: 'transparent',
@@ -38,19 +54,19 @@ var genVtxStyle = function genVtxStyle(token) {
38
54
  width: '100%',
39
55
  height: '100%',
40
56
  border: 'none',
41
- '.ant-table-expanded-row-fixed': {
57
+ '>.ant-table-expanded-row-fixed': {
42
58
  display: 'flex',
43
59
  alignItems: 'center',
44
60
  justifyContent: 'center',
45
61
  height: '100%',
46
62
  width: '100%',
47
- '&:after': {
48
- borderInlineEnd: 'none'
63
+ '&::after': {
64
+ border: 'none'
49
65
  }
50
66
  }
51
67
  }
52
68
  }
53
- }))), '.ant-pagination', _defineProperty({}, '.ant-pagination-item', {
69
+ })), '.ant-pagination', _defineProperty({}, '.ant-pagination-item', {
54
70
  borderRadius: token.borderRadiusSM
55
71
  }))), "&-fit", {
56
72
  height: '100%'
@@ -253,6 +253,9 @@ function VtxSearch(props) {
253
253
  return (realColumn - grid.len - 1) * (24 / realColumn);
254
254
  }
255
255
  } else {
256
+ console.log('grid.lenWeight', grid.lenWeight);
257
+ console.log('realColumn', realColumn);
258
+ console.log('showPosition', showPosition);
256
259
  if (grid.lenWeight > realColumn - 1) {
257
260
  var _total = Math.ceil((grid.lenWeight + 1) / realColumn);
258
261
  return (_total * realColumn - grid.lenWeight - 1) * (24 / realColumn);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/components",
3
- "version": "4.0.0-beta.31",
3
+ "version": "4.0.0-beta.33",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",