mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-03-01 00:23:11 +08:00
修复当pagination传Boolean类型时,表格高度计算有误的问题
This commit is contained in:
@@ -264,7 +264,7 @@
|
|||||||
const headerH = 64;
|
const headerH = 64;
|
||||||
let paginationH = 2;
|
let paginationH = 2;
|
||||||
let marginH = 24;
|
let marginH = 24;
|
||||||
if (!isBoolean(pagination)) {
|
if (!isBoolean(unref(pagination))) {
|
||||||
paginationEl = tableEl.querySelector('.n-data-table__pagination') as HTMLElement;
|
paginationEl = tableEl.querySelector('.n-data-table__pagination') as HTMLElement;
|
||||||
if (paginationEl) {
|
if (paginationEl) {
|
||||||
const offsetHeight = paginationEl.offsetHeight;
|
const offsetHeight = paginationEl.offsetHeight;
|
||||||
|
|||||||
Reference in New Issue
Block a user