mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 00:06:09 +01:00
This commit is contained in:
parent
f8ee97f695
commit
3b04d3199c
1 changed files with 4 additions and 3 deletions
|
|
@ -79,7 +79,10 @@ export const genCellValueByElement = (colType: TAVCol, cellElement: HTMLElement)
|
|||
if (colType === "block" && textElement.dataset.id) {
|
||||
cellValue.block.id = textElement.dataset.id;
|
||||
if (textElement.previousElementSibling?.classList.contains("b3-menu__avemoji")) {
|
||||
cellValue.block.icon = textElement.previousElementSibling.getAttribute("data-unicode");
|
||||
const unicode = textElement.previousElementSibling.getAttribute("data-unicode")
|
||||
if (unicode) {
|
||||
cellValue.block.icon = unicode;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (colType === "mSelect" || colType === "select") {
|
||||
|
|
@ -708,8 +711,6 @@ export const updateCellsValue = (protyle: IProtyle, nodeElement: HTMLElement, va
|
|||
};
|
||||
if (oldValue.block.icon) {
|
||||
newValue.icon = oldValue.block.icon;
|
||||
} else {
|
||||
delete oldValue.block.icon;
|
||||
}
|
||||
}
|
||||
const cellValue = genCellValue(type, newValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue