mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🎨 推送更改db图标
This commit is contained in:
parent
a85c84ae23
commit
8d221c8a00
1 changed files with 3 additions and 2 deletions
|
|
@ -476,6 +476,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
let nameHTML = "";
|
||||
let aliasHTML = "";
|
||||
let memoHTML = "";
|
||||
let avHTML = "";
|
||||
Object.keys(data.new).forEach(key => {
|
||||
attrsResult[key] = data.new[key];
|
||||
const escapeHTML = Lute.EscapeHTMLStr(data.new[key]);
|
||||
|
|
@ -488,10 +489,10 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
} else if (key === "memo") {
|
||||
memoHTML = `<div class="protyle-attr--memo b3-tooltips b3-tooltips__sw" aria-label="${escapeHTML}"><svg><use xlink:href="#iconM"></use></svg></div>`;
|
||||
} else if (key === "custom-avs") {
|
||||
memoHTML = "<div class=\"protyle-attr--av\"><svg><use xlink:href=\"#iconDatabase\"></use></svg></div>";
|
||||
avHTML = "<div class=\"protyle-attr--av\"><svg><use xlink:href=\"#iconDatabase\"></use></svg></div>";
|
||||
}
|
||||
});
|
||||
let nodeAttrHTML = bookmarkHTML + nameHTML + aliasHTML + memoHTML;
|
||||
let nodeAttrHTML = bookmarkHTML + nameHTML + aliasHTML + memoHTML + avHTML;
|
||||
if (protyle.block.rootID === operation.id) {
|
||||
// 文档
|
||||
if (protyle.title) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue