Vanessa 2025-08-31 11:38:30 +08:00
parent c287dd080b
commit 698586bd4d
3 changed files with 17 additions and 3 deletions

View file

@ -415,10 +415,14 @@ export const genHintItemHTML = (item: IBlock) => {
if (attrHTML) {
attrHTML = `<div class="fn__flex b3-list-item__meta b3-list-item__showall">${attrHTML}</div>`;
}
return `${attrHTML}<div class="b3-list-item__first">
let countHTML = '';
if (item.refCount) {
countHTML = `<span class="popover__block counter b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.ref}">${item.refCount}</span>`;
}
// data-node-id 用于获取引用面板
return `${attrHTML}<div class="b3-list-item__first" data-node-id="${item.id}">
${iconHTML}
<span class="b3-list-item__text">${item.content}</span>
<span class="b3-list-item__text">${item.content}</span>${countHTML}
</div>
<div class="b3-list-item__meta b3-list-item__showall">${item.hPath}</div>`;
};