mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
This commit is contained in:
parent
52498a5287
commit
a46e9833c5
1 changed files with 11 additions and 3 deletions
|
|
@ -707,23 +707,31 @@ export const dragFillCellsValue = (protyle: IProtyle, nodeElement: HTMLElement,
|
|||
return;
|
||||
}
|
||||
const data = originData[originKeys[index % originKeys.length]][cellIndex]
|
||||
data.id = item.id;
|
||||
const keyID = item.colId
|
||||
if (data.type === "block") {
|
||||
data.isDetached = true;
|
||||
delete data.block.id;
|
||||
}
|
||||
doOperations.push({
|
||||
action: "updateAttrViewCell",
|
||||
id: item.id,
|
||||
avID,
|
||||
keyID: item.colId,
|
||||
keyID,
|
||||
rowID,
|
||||
data
|
||||
});
|
||||
item.element.innerHTML = renderCell(data);
|
||||
delete item.colId;
|
||||
delete item.element;
|
||||
undoOperations.push({
|
||||
action: "updateAttrViewCell",
|
||||
id: item.id,
|
||||
avID,
|
||||
keyID: item.colId,
|
||||
keyID,
|
||||
rowID,
|
||||
data: item
|
||||
});
|
||||
item.element.innerHTML = renderCell(data);
|
||||
})
|
||||
});
|
||||
focusBlock(nodeElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue