@canlooks/can-ui 0.0.76 → 0.0.77
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.
|
@@ -121,7 +121,7 @@ exports.DataGrid = (0, react_1.memo)(({ columns, rows, rowProps, primaryKey = 'i
|
|
|
121
121
|
const renderPaginationFn = () => {
|
|
122
122
|
return renderPagination
|
|
123
123
|
? renderPagination(_paginationProps)
|
|
124
|
-
: (0, jsx_runtime_1.jsx)(pagination_1.Pagination, { ..._paginationProps });
|
|
124
|
+
: paginatable && (0, jsx_runtime_1.jsx)(pagination_1.Pagination, { ..._paginationProps });
|
|
125
125
|
};
|
|
126
126
|
const paginatedRows = (0, react_1.useMemo)(() => {
|
|
127
127
|
if (!paginatable) {
|
|
@@ -117,7 +117,7 @@ export const DataGrid = memo(({ columns, rows, rowProps, primaryKey = 'id', chil
|
|
|
117
117
|
const renderPaginationFn = () => {
|
|
118
118
|
return renderPagination
|
|
119
119
|
? renderPagination(_paginationProps)
|
|
120
|
-
: _jsx(Pagination, { ..._paginationProps });
|
|
120
|
+
: paginatable && _jsx(Pagination, { ..._paginationProps });
|
|
121
121
|
};
|
|
122
122
|
const paginatedRows = useMemo(() => {
|
|
123
123
|
if (!paginatable) {
|