mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 00:36:10 +01:00
This commit is contained in:
parent
fa14fdc2e6
commit
2e2e2f331b
2 changed files with 4 additions and 1 deletions
|
|
@ -444,6 +444,9 @@ export class Background {
|
|||
let html = "";
|
||||
const colors = ["secondary", "primary", "info", "success", "warning", "error", "pink"];
|
||||
tags.split(",").forEach((item, index) => {
|
||||
if (!item) {
|
||||
return;
|
||||
}
|
||||
html += `<div class="b3-chip b3-chip--middle b3-chip--pointer b3-chip--${colors[index % 7]}" data-type="open-search">${escapeHtml(item)}<svg class="b3-chip__close" data-type="remove-tag"><use xlink:href="#iconCloseRound"></use></svg></div>`;
|
||||
});
|
||||
this.tagsElement.innerHTML = `${html}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue