mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 19:41:05 +08:00
This commit is contained in:
parent
cb4b2f8507
commit
04308fb2dd
@ -297,12 +297,18 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex)}
|
|||||||
if (headerTransform) {
|
if (headerTransform) {
|
||||||
(e.querySelector(".av__row--header") as HTMLElement).style.transform = headerTransform;
|
(e.querySelector(".av__row--header") as HTMLElement).style.transform = headerTransform;
|
||||||
} else {
|
} else {
|
||||||
stickyRow(e, editRect, "top");
|
// 需等待渲染完,否则 getBoundingClientRect 错误 https://github.com/siyuan-note/siyuan/issues/13787
|
||||||
|
setTimeout(() => {
|
||||||
|
stickyRow(e, editRect, "top");
|
||||||
|
}, Constants.TIMEOUT_LOAD)
|
||||||
}
|
}
|
||||||
if (footerTransform) {
|
if (footerTransform) {
|
||||||
(e.querySelector(".av__row--footer") as HTMLElement).style.transform = footerTransform;
|
(e.querySelector(".av__row--footer") as HTMLElement).style.transform = footerTransform;
|
||||||
} else {
|
} else {
|
||||||
stickyRow(e, editRect, "bottom");
|
// 需等待渲染完,否则 getBoundingClientRect 错误 https://github.com/siyuan-note/siyuan/issues/13787
|
||||||
|
setTimeout(() => {
|
||||||
|
stickyRow(e, editRect, "bottom");
|
||||||
|
}, Constants.TIMEOUT_LOAD);
|
||||||
}
|
}
|
||||||
if (selectCellId) {
|
if (selectCellId) {
|
||||||
const newCellElement = e.querySelector(`.av__row[data-id="${selectCellId.split(Constants.ZWSP)[0]}"] .av__cell[data-col-id="${selectCellId.split(Constants.ZWSP)[1]}"]`);
|
const newCellElement = e.querySelector(`.av__row[data-id="${selectCellId.split(Constants.ZWSP)[0]}"] .av__cell[data-col-id="${selectCellId.split(Constants.ZWSP)[1]}"]`);
|
||||||
|
@ -131,7 +131,7 @@ ${getTypeByCellElement(item) === "block" ? ' data-detached="true"' : ""}><span c
|
|||||||
});
|
});
|
||||||
let html = "";
|
let html = "";
|
||||||
srcIDs.forEach((id) => {
|
srcIDs.forEach((id) => {
|
||||||
const blockCellElement = blockElement.querySelector(`[data-block-id="${id}"]`);
|
const blockCellElement = blockElement.querySelector(`[data-block-id="${id}"]`);
|
||||||
if (!blockCellElement) {
|
if (!blockCellElement) {
|
||||||
html += `<div class="av__row" data-type="ghost" data-id="${id}" data-avid="${avId}" data-previous-id="${previousId}">
|
html += `<div class="av__row" data-type="ghost" data-id="${id}" data-avid="${avId}" data-previous-id="${previousId}">
|
||||||
${colHTML}
|
${colHTML}
|
||||||
|
Loading…
Reference in New Issue
Block a user