mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
♻️ https://github.com/siyuan-note/siyuan/issues/5066 click block menu
This commit is contained in:
parent
61ab0ffd68
commit
54022ed92a
70 changed files with 604 additions and 350 deletions
|
|
@ -10,6 +10,7 @@ import {MenuItem} from "../../menus/Menu";
|
|||
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||
import {replaceFileName} from "../../editor/rename";
|
||||
import {getDisplayName, movePathTo, pathPosix} from "../../util/pathName";
|
||||
import {App} from "../../index";
|
||||
|
||||
export class Inbox extends Model {
|
||||
private element: Element;
|
||||
|
|
@ -18,8 +19,8 @@ export class Inbox extends Model {
|
|||
private pageCount = 1;
|
||||
private data: { [key: string]: IInbox } = {};
|
||||
|
||||
constructor(tab: Tab | Element) {
|
||||
super({id: tab.id});
|
||||
constructor(app: App, tab: Tab | Element) {
|
||||
super({app, id: tab.id});
|
||||
if (tab instanceof Element) {
|
||||
this.element = tab;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue