mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 22:52:34 +01:00
This commit is contained in:
parent
c287dd080b
commit
698586bd4d
3 changed files with 17 additions and 3 deletions
|
|
@ -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>`;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue