@aloudata/aloudata-design 1.9.2 → 1.9.3

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.
@@ -79,14 +79,15 @@ function AldTable(props) {
79
79
  }, [getTableProps]);
80
80
  var headerContent = useMemo(function () {
81
81
  var isStickyWork = !!sticky && y === undefined;
82
- return _.map(headerGroups, function (headerGroup) {
83
- var topStyle = isStickyWork && _.get(sticky, 'offsetHeader') ? {
84
- style: {
85
- top: _.get(sticky, 'offsetHeader', 0)
86
- }
87
- } : {};
88
- return /*#__PURE__*/React.createElement("div", _extends({}, headerGroup.getHeaderGroupProps(topStyle), {
89
- className: classnames(prefixCls('tr'), _defineProperty({}, prefixCls('sticky'), isStickyWork))
82
+ var topStyle = isStickyWork && _.get(sticky, 'offsetHeader') ? {
83
+ top: _.get(sticky, 'offsetHeader', 0)
84
+ } : {};
85
+ return /*#__PURE__*/React.createElement("div", {
86
+ className: classnames(_defineProperty({}, prefixCls('sticky'), isStickyWork)),
87
+ style: topStyle
88
+ }, _.map(headerGroups, function (headerGroup) {
89
+ return /*#__PURE__*/React.createElement("div", _extends({}, headerGroup.getHeaderGroupProps(), {
90
+ className: prefixCls('tr')
90
91
  }), _.map(headerGroup.headers, function (column) {
91
92
  return /*#__PURE__*/React.createElement("div", _extends({}, column.getHeaderProps(), {
92
93
  className: prefixCls('th')
@@ -96,7 +97,7 @@ function AldTable(props) {
96
97
  })
97
98
  })));
98
99
  }));
99
- });
100
+ }));
100
101
  }, [headerGroups, sticky, columnSizing, y]);
101
102
  var bodyContent = useMemo(function () {
102
103
  return /*#__PURE__*/React.createElement(Spin, {
@@ -119,7 +120,7 @@ function AldTable(props) {
119
120
  })));
120
121
  }, [loading, rows, prepareRow]);
121
122
  var tableContent = y && totalSize ? /*#__PURE__*/React.createElement("div", _extends({
122
- className: prefixCls('main')
123
+ className: prefixCls('content')
123
124
  }, tableProps), /*#__PURE__*/React.createElement("div", {
124
125
  className: prefixCls('header'),
125
126
  style: {
@@ -131,8 +132,8 @@ function AldTable(props) {
131
132
  },
132
133
  className: prefixCls('body-scroll')
133
134
  }), /*#__PURE__*/React.createElement(ScrollArea, null, bodyContent))) : /*#__PURE__*/React.createElement("div", _extends({
134
- className: prefixCls('main')
135
- }, tableProps), /*#__PURE__*/React.createElement("div", null, headerContent), /*#__PURE__*/React.createElement("div", getTableBodyProps(), bodyContent));
135
+ className: prefixCls('content')
136
+ }, tableProps), headerContent, /*#__PURE__*/React.createElement("div", getTableBodyProps(), bodyContent));
136
137
  return /*#__PURE__*/React.createElement("div", {
137
138
  className: prefixCls('container'),
138
139
  style: y ? {
@@ -5,6 +5,8 @@
5
5
 
6
6
  .ald-tmp-table-container {
7
7
  position: relative;
8
+ display: flex;
9
+ flex-direction: column;
8
10
  }
9
11
 
10
12
  .ald-tmp-table-main {
@@ -14,8 +16,9 @@
14
16
  line-height: 20px;
15
17
  background: #fff;
16
18
 
17
- .ald-tmp-table-main {
18
- display: inline-block;
19
+ .ald-tmp-table-content {
20
+ display: flex;
21
+ flex-direction: column;
19
22
  border-spacing: 0;
20
23
  }
21
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",