mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
cf4be3d8b1
commit
78e70369b2
2 changed files with 6 additions and 1 deletions
|
|
@ -54,6 +54,11 @@ export class Plugin {
|
|||
// 布局加载完成
|
||||
}
|
||||
|
||||
public addIcons(svg: string) {
|
||||
document.body.insertAdjacentHTML("afterbegin", `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>${svg}</defs></svg>`);
|
||||
}
|
||||
|
||||
public addTopBar(options: {
|
||||
icon: string,
|
||||
title: string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue