@pnkx-lib/ui 1.9.264 → 1.9.266
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/ui/index.js +11 -2
- package/package.json +1 -1
package/es/ui/index.js
CHANGED
|
@@ -5416,6 +5416,15 @@ const Table = ({
|
|
|
5416
5416
|
...ellipsisColumns
|
|
5417
5417
|
] : ellipsisColumns;
|
|
5418
5418
|
//! Function
|
|
5419
|
+
const renderSizePagination = () => {
|
|
5420
|
+
switch (size) {
|
|
5421
|
+
case "small":
|
|
5422
|
+
return "small";
|
|
5423
|
+
// Dạng nhỏ gọn
|
|
5424
|
+
default:
|
|
5425
|
+
return "default";
|
|
5426
|
+
}
|
|
5427
|
+
};
|
|
5419
5428
|
const handleTableChange = (pagination, filters2, sorter) => {
|
|
5420
5429
|
if (sorter && onSort) {
|
|
5421
5430
|
onSort(sorter);
|
|
@@ -5491,7 +5500,7 @@ const Table = ({
|
|
|
5491
5500
|
onDoubleClick: handleDoubleClickRow(record, onDoubleClickRow)
|
|
5492
5501
|
}),
|
|
5493
5502
|
locale: {
|
|
5494
|
-
emptyText: /* @__PURE__ */ jsx(EmptyTable, {})
|
|
5503
|
+
emptyText: loading ? null : /* @__PURE__ */ jsx(EmptyTable, {})
|
|
5495
5504
|
},
|
|
5496
5505
|
scroll: { y: tableHeight },
|
|
5497
5506
|
size,
|
|
@@ -5506,7 +5515,7 @@ const Table = ({
|
|
|
5506
5515
|
total: totalItems,
|
|
5507
5516
|
onChange: (page) => onChangePage(page),
|
|
5508
5517
|
onShowSizeChange: (_, size2) => onChangePageSize(size2),
|
|
5509
|
-
size
|
|
5518
|
+
size: renderSizePagination()
|
|
5510
5519
|
}
|
|
5511
5520
|
)
|
|
5512
5521
|
]
|