mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
1138629405
commit
6ff0473c41
1 changed files with 5 additions and 0 deletions
|
|
@ -201,6 +201,11 @@ export const setDefRefCount = (data: {
|
||||||
attrElement.innerHTML = `<div class="protyle-attr--refcount popover__block">${data.refCount}</div>${Constants.ZWSP}`;
|
attrElement.innerHTML = `<div class="protyle-attr--refcount popover__block">${data.refCount}</div>${Constants.ZWSP}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (data.refCount === 0) {
|
||||||
|
item.removeAttribute("refcount")
|
||||||
|
} else {
|
||||||
|
item.setAttribute("refcount", data.refCount.toString())
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue