This commit is contained in:
Vanessa 2024-01-14 16:38:45 +08:00
parent b399b5e877
commit eb18429d6e
9 changed files with 20 additions and 21 deletions

View file

@ -26,7 +26,7 @@ export const getCellText = (cellElement: HTMLElement | false) => {
} else if (item.getAttribute("data-type") !== "block-more") {
cellText += item.textContent + ", ";
}
})
});
cellText = cellText.substring(0, cellText.length - 2);
} else {
cellText = cellElement.textContent;
@ -643,7 +643,7 @@ export const updateHeaderCell = (cellElement: HTMLElement, headerValue: {
textElement.insertAdjacentHTML("afterend", '<svg class="av__cellheadericon av__cellheadericon--pin"><use xlink:href="#iconPin"></use></svg>');
}
} else {
cellElement.querySelector(".av__cellheadericon--pin")?.remove()
cellElement.querySelector(".av__cellheadericon--pin")?.remove();
}
}
};
@ -664,4 +664,4 @@ export const getPositionByCellElement = (cellElement: HTMLElement) => {
celIndex++;
}
return {rowIndex, celIndex};
}
};