mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 13:28:48 +01:00
This commit is contained in:
parent
872ab78c07
commit
a04f7107fd
2 changed files with 4 additions and 0 deletions
|
|
@ -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"]'));
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue