qbs-react-grid 1.1.46 → 1.1.48
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/qbsTable/QbsTable.js
CHANGED
|
@@ -85,7 +85,9 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
85
85
|
_ref$rowExpandedHeigh = _ref.rowExpandedHeight,
|
|
86
86
|
rowExpandedHeight = _ref$rowExpandedHeigh === void 0 ? 517 : _ref$rowExpandedHeigh,
|
|
87
87
|
renderSortIcon = _ref.renderSortIcon,
|
|
88
|
-
tableKey = _ref.tableKey
|
|
88
|
+
_ref$tableKey = _ref.tableKey,
|
|
89
|
+
tableKey = _ref$tableKey === void 0 ? 'parent' : _ref$tableKey,
|
|
90
|
+
autoHeight = _ref.autoHeight;
|
|
89
91
|
var _useState = useState(false),
|
|
90
92
|
loading = _useState[0],
|
|
91
93
|
setLoading = _useState[1];
|
|
@@ -399,13 +401,14 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
399
401
|
}, toolbar && /*#__PURE__*/React.createElement(ToolBar, toolbarProps), /*#__PURE__*/React.createElement("div", {
|
|
400
402
|
className: "qbs-table-border-wrap"
|
|
401
403
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
402
|
-
height: height,
|
|
404
|
+
height: autoHeight ? undefined : height,
|
|
403
405
|
key: tableKey,
|
|
404
406
|
tableKey: tableKey,
|
|
405
407
|
data: data,
|
|
406
408
|
tableBodyRef: tableBodyRef,
|
|
407
409
|
dataTheme: dataTheme,
|
|
408
410
|
wordWrap: wordWrap,
|
|
411
|
+
autoHeight: autoHeight,
|
|
409
412
|
sortColumn: sortColumn,
|
|
410
413
|
style: {
|
|
411
414
|
position: 'relative'
|
package/lib/qbsTable/QbsTable.js
CHANGED
|
@@ -91,7 +91,9 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
91
91
|
_ref$rowExpandedHeigh = _ref.rowExpandedHeight,
|
|
92
92
|
rowExpandedHeight = _ref$rowExpandedHeigh === void 0 ? 517 : _ref$rowExpandedHeigh,
|
|
93
93
|
renderSortIcon = _ref.renderSortIcon,
|
|
94
|
-
tableKey = _ref.tableKey
|
|
94
|
+
_ref$tableKey = _ref.tableKey,
|
|
95
|
+
tableKey = _ref$tableKey === void 0 ? 'parent' : _ref$tableKey,
|
|
96
|
+
autoHeight = _ref.autoHeight;
|
|
95
97
|
var _useState = (0, _react.useState)(false),
|
|
96
98
|
loading = _useState[0],
|
|
97
99
|
setLoading = _useState[1];
|
|
@@ -405,13 +407,14 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
405
407
|
}, toolbar && /*#__PURE__*/_react["default"].createElement(_Toolbar["default"], toolbarProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
406
408
|
className: "qbs-table-border-wrap"
|
|
407
409
|
}, /*#__PURE__*/_react["default"].createElement(_Table["default"], {
|
|
408
|
-
height: height,
|
|
410
|
+
height: autoHeight ? undefined : height,
|
|
409
411
|
key: tableKey,
|
|
410
412
|
tableKey: tableKey,
|
|
411
413
|
data: data,
|
|
412
414
|
tableBodyRef: tableBodyRef,
|
|
413
415
|
dataTheme: dataTheme,
|
|
414
416
|
wordWrap: wordWrap,
|
|
417
|
+
autoHeight: autoHeight,
|
|
415
418
|
sortColumn: sortColumn,
|
|
416
419
|
style: {
|
|
417
420
|
position: 'relative'
|
package/package.json
CHANGED
|
@@ -76,7 +76,8 @@ const QbsTable: React.FC<QbsTableProps> = ({
|
|
|
76
76
|
searchPlaceholder,
|
|
77
77
|
rowExpandedHeight = 517,
|
|
78
78
|
renderSortIcon,
|
|
79
|
-
tableKey
|
|
79
|
+
tableKey = 'parent',
|
|
80
|
+
autoHeight
|
|
80
81
|
}) => {
|
|
81
82
|
const [loading, setLoading] = useState(false);
|
|
82
83
|
const [columns, setColumns] = useState(propColumn);
|
|
@@ -432,13 +433,14 @@ const QbsTable: React.FC<QbsTableProps> = ({
|
|
|
432
433
|
{toolbar && <ToolBar {...toolbarProps} />}
|
|
433
434
|
<div className="qbs-table-border-wrap">
|
|
434
435
|
<Table
|
|
435
|
-
height={height}
|
|
436
|
+
height={autoHeight ? undefined : height}
|
|
436
437
|
key={tableKey}
|
|
437
438
|
tableKey={tableKey}
|
|
438
439
|
data={data}
|
|
439
440
|
tableBodyRef={tableBodyRef}
|
|
440
441
|
dataTheme={dataTheme}
|
|
441
442
|
wordWrap={wordWrap}
|
|
443
|
+
autoHeight={autoHeight}
|
|
442
444
|
sortColumn={sortColumn}
|
|
443
445
|
style={{ position: 'relative' }}
|
|
444
446
|
sortType={sortType}
|