qbs-react-grid 1.1.47 → 1.1.49
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
|
@@ -83,10 +83,11 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
83
83
|
customRowStatus = _ref.customRowStatus,
|
|
84
84
|
searchPlaceholder = _ref.searchPlaceholder,
|
|
85
85
|
_ref$rowExpandedHeigh = _ref.rowExpandedHeight,
|
|
86
|
-
rowExpandedHeight = _ref$rowExpandedHeigh === void 0 ?
|
|
86
|
+
rowExpandedHeight = _ref$rowExpandedHeigh === void 0 ? 317 : _ref$rowExpandedHeigh,
|
|
87
87
|
renderSortIcon = _ref.renderSortIcon,
|
|
88
88
|
_ref$tableKey = _ref.tableKey,
|
|
89
|
-
tableKey = _ref$tableKey === void 0 ? 'parent' : _ref$tableKey
|
|
89
|
+
tableKey = _ref$tableKey === void 0 ? 'parent' : _ref$tableKey,
|
|
90
|
+
autoHeight = _ref.autoHeight;
|
|
90
91
|
var _useState = useState(false),
|
|
91
92
|
loading = _useState[0],
|
|
92
93
|
setLoading = _useState[1];
|
|
@@ -400,13 +401,14 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
400
401
|
}, toolbar && /*#__PURE__*/React.createElement(ToolBar, toolbarProps), /*#__PURE__*/React.createElement("div", {
|
|
401
402
|
className: "qbs-table-border-wrap"
|
|
402
403
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
403
|
-
height: height,
|
|
404
|
+
height: autoHeight ? undefined : height,
|
|
404
405
|
key: tableKey,
|
|
405
406
|
tableKey: tableKey,
|
|
406
407
|
data: data,
|
|
407
408
|
tableBodyRef: tableBodyRef,
|
|
408
409
|
dataTheme: dataTheme,
|
|
409
410
|
wordWrap: wordWrap,
|
|
411
|
+
autoHeight: autoHeight,
|
|
410
412
|
sortColumn: sortColumn,
|
|
411
413
|
style: {
|
|
412
414
|
position: 'relative'
|
package/lib/qbsTable/QbsTable.js
CHANGED
|
@@ -89,10 +89,11 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
89
89
|
customRowStatus = _ref.customRowStatus,
|
|
90
90
|
searchPlaceholder = _ref.searchPlaceholder,
|
|
91
91
|
_ref$rowExpandedHeigh = _ref.rowExpandedHeight,
|
|
92
|
-
rowExpandedHeight = _ref$rowExpandedHeigh === void 0 ?
|
|
92
|
+
rowExpandedHeight = _ref$rowExpandedHeigh === void 0 ? 317 : _ref$rowExpandedHeigh,
|
|
93
93
|
renderSortIcon = _ref.renderSortIcon,
|
|
94
94
|
_ref$tableKey = _ref.tableKey,
|
|
95
|
-
tableKey = _ref$tableKey === void 0 ? 'parent' : _ref$tableKey
|
|
95
|
+
tableKey = _ref$tableKey === void 0 ? 'parent' : _ref$tableKey,
|
|
96
|
+
autoHeight = _ref.autoHeight;
|
|
96
97
|
var _useState = (0, _react.useState)(false),
|
|
97
98
|
loading = _useState[0],
|
|
98
99
|
setLoading = _useState[1];
|
|
@@ -406,13 +407,14 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
406
407
|
}, toolbar && /*#__PURE__*/_react["default"].createElement(_Toolbar["default"], toolbarProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
407
408
|
className: "qbs-table-border-wrap"
|
|
408
409
|
}, /*#__PURE__*/_react["default"].createElement(_Table["default"], {
|
|
409
|
-
height: height,
|
|
410
|
+
height: autoHeight ? undefined : height,
|
|
410
411
|
key: tableKey,
|
|
411
412
|
tableKey: tableKey,
|
|
412
413
|
data: data,
|
|
413
414
|
tableBodyRef: tableBodyRef,
|
|
414
415
|
dataTheme: dataTheme,
|
|
415
416
|
wordWrap: wordWrap,
|
|
417
|
+
autoHeight: autoHeight,
|
|
416
418
|
sortColumn: sortColumn,
|
|
417
419
|
style: {
|
|
418
420
|
position: 'relative'
|
package/package.json
CHANGED
|
@@ -74,9 +74,10 @@ const QbsTable: React.FC<QbsTableProps> = ({
|
|
|
74
74
|
tableBodyHeight,
|
|
75
75
|
customRowStatus,
|
|
76
76
|
searchPlaceholder,
|
|
77
|
-
rowExpandedHeight =
|
|
77
|
+
rowExpandedHeight = 317,
|
|
78
78
|
renderSortIcon,
|
|
79
|
-
tableKey = 'parent'
|
|
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}
|