Vanessa 2024-01-05 16:28:48 +08:00
parent 872ab78c07
commit a04f7107fd
2 changed files with 4 additions and 0 deletions

View file

@ -143,6 +143,9 @@ export const bindCardEvent = (options: {
dialog?: Dialog,
index?: number
}) => {
options.app.plugins.forEach(item => {
item.eventBus.emit("update-cards", options);
});
if (window.siyuan.storage[Constants.LOCAL_FLASHCARD].fullscreen) {
fullscreen(options.element.querySelector(".card__main"),
options.element.querySelector('[data-type="fullscreen"]'));

View file

@ -64,6 +64,7 @@ type TEventBus = "ws-main" | "sync-start" | "sync-end" | "sync-fail" |
"loaded-protyle" | "loaded-protyle-dynamic" | "loaded-protyle-static" |
"switch-protyle" |
"destroy-protyle" |
"update-cards"|
"lock-screen" |
"mobile-keyboard-show" | "mobile-keyboard-hide"
type TAVCol =