Vanessa 2024-05-15 11:34:03 +08:00
parent 4c8c567058
commit baadad6119
3 changed files with 6 additions and 3 deletions

View file

@ -449,7 +449,8 @@ export const addColOptionOrCell = (protyle: IProtyle, data: IAV, cellElements: H
cellElements.forEach((item, index) => {
const rowElement = hasClosestByClassName(item, "av__row");
if (rowElement) {
cellElements[index] = blockElement.querySelector(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell[data-col-id="${item.dataset.colId}"]`) as HTMLElement;
cellElements[index] = (blockElement.querySelector(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell[data-col-id="${item.dataset.colId}"]`) ||
blockElement.querySelector(`.fn__flex-1[data-col-id="${item.dataset.colId}"]`) ) as HTMLElement;
}
});
}