mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
732c0805ca
commit
f2d015267d
6 changed files with 49 additions and 34 deletions
|
|
@ -8,13 +8,11 @@ import {getBackend, getFrontend} from "../util/functions";
|
|||
import {openFile, openFileById} from "../editor/util";
|
||||
/// #endif
|
||||
import {updateHotkeyTip} from "../protyle/util/compatibility";
|
||||
import {newCardModel} from "../card/newCardTab";
|
||||
import {App} from "../index";
|
||||
import {Constants} from "../constants";
|
||||
import {Model} from "../layout/Model";
|
||||
import {Setting} from "./Setting";
|
||||
import {Menu} from "./Menu";
|
||||
import { Protyle } from "../protyle";
|
||||
import {Protyle} from "../protyle";
|
||||
|
||||
let openTab;
|
||||
/// #if MOBILE
|
||||
|
|
@ -47,7 +45,7 @@ openTab = (options: {
|
|||
title: string,
|
||||
icon: string,
|
||||
data?: any
|
||||
fn?: () => Model,
|
||||
id: string
|
||||
}
|
||||
position?: "right" | "bottom",
|
||||
keepCursor?: boolean // 是否跳转到新 tab 上
|
||||
|
|
@ -128,7 +126,7 @@ openTab = (options: {
|
|||
id: options.card.id || "",
|
||||
title: options.card.title,
|
||||
},
|
||||
fn: newCardModel
|
||||
id: "siyuan-card"
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue