mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🐛 windows 下 # 1 后刷新 loading 不消失
This commit is contained in:
parent
5b85d0e91b
commit
17928ee936
3 changed files with 12 additions and 10 deletions
|
|
@ -48,7 +48,14 @@ export const initUI = (protyle: IProtyle) => {
|
|||
};
|
||||
|
||||
export const addLoading = (protyle: IProtyle) => {
|
||||
protyle.element.insertAdjacentHTML("beforeend", "<div style=\"background-color: var(--b3-theme-background)\" class=\"fn__loading\"><img width=\"48px\" src=\"/stage/loading-pure.svg\"></div>");
|
||||
protyle.element.insertAdjacentHTML("beforeend", '<div style="background-color: var(--b3-theme-background)" class="fn__loading wysiwygLoading"><img width="48px" src="/stage/loading-pure.svg"></div>');
|
||||
};
|
||||
|
||||
export const removeLoading = (protyle: IProtyle) => {
|
||||
const loadingElement = protyle.element.querySelector(".wysiwygLoading");
|
||||
if (loadingElement) {
|
||||
loadingElement.remove();
|
||||
}
|
||||
};
|
||||
|
||||
export const setPadding = (protyle: IProtyle) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue