mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 09:18:49 +01:00
This commit is contained in:
parent
2ddff2a5d3
commit
1a6b80b5af
1 changed files with 2 additions and 3 deletions
|
|
@ -132,8 +132,7 @@ export const genAVValueHTML = (value: IAVCellValue) => {
|
|||
if (item?.isDetached) {
|
||||
html += `<span class="av__cell--relation"><span>➖ </span><span class="av__celltext">${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}</span></span>`;
|
||||
} else {
|
||||
// data-block-id 用于更新 emoji
|
||||
html += `<span class="av__cell--relation" data-block-id="${item.block.id}"><span class="b3-menu__avemoji" data-unicode="${item.block.icon || ""}">${unicode2Emoji(item.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)}</span><span data-type="block-ref" data-id="${item.block.id}" data-subtype="s" class="av__celltext av__celltext--ref">${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}</span></span>`;
|
||||
html += `<span class="av__cell--relation"><span data-unicode="${item.block.icon || ""}">${unicode2Emoji(item.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)} </span><span data-type="block-ref" data-id="${item.block.id}" data-subtype="s" class="av__celltext av__celltext--ref">${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}</span></span>`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -145,7 +144,7 @@ export const genAVValueHTML = (value: IAVCellValue) => {
|
|||
value?.rollup?.contents?.forEach((item) => {
|
||||
const rollupText = ["template", "select", "mSelect", "mAsset", "checkbox", "relation"].includes(item.type) ? genAVValueHTML(item) : genAVRollupHTML(item);
|
||||
if (rollupText) {
|
||||
html += rollupText + ", ";
|
||||
html += rollupText.replace("fn__flex-1", "") + ", ";
|
||||
}
|
||||
});
|
||||
if (html && html.endsWith(", ")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue