修复当pagination传Boolean类型时,表格高度计算有误的问题

This commit is contained in:
黄富鑫
2022-12-21 16:17:53 +08:00
parent 7a18f58f4a
commit a35318f808

View File

@@ -264,7 +264,7 @@
const headerH = 64;
let paginationH = 2;
let marginH = 24;
if (!isBoolean(pagination)) {
if (!isBoolean(unref(pagination))) {
paginationEl = tableEl.querySelector('.n-data-table__pagination') as HTMLElement;
if (paginationEl) {
const offsetHeight = paginationEl.offsetHeight;