feat: table header appears repeatedly when paging #541

Co-authored-by: Hufe921 <huangyunfeihufe@hotmail.com>
This commit is contained in:
zp190265950
2024-05-09 21:15:52 +08:00
committed by GitHub
co-authored by Hufe921
parent 62c94fce59
commit c86e5468e6
15 changed files with 98 additions and 32 deletions
+3 -5
View File
@@ -148,15 +148,13 @@ export function formatElementList(
const tableId = getUUID()
el.id = tableId
if (el.trList) {
const { defaultTrMinHeight } = editorOptions.table
for (let t = 0; t < el.trList.length; t++) {
const tr = el.trList[t]
const trId = getUUID()
tr.id = trId
if (
!tr.minHeight ||
tr.minHeight < editorOptions.defaultTrMinHeight
) {
tr.minHeight = editorOptions.defaultTrMinHeight
if (!tr.minHeight || tr.minHeight < defaultTrMinHeight) {
tr.minHeight = defaultTrMinHeight
}
if (tr.height < tr.minHeight) {
tr.height = tr.minHeight