Vanessa 2024-09-14 17:05:06 +08:00
parent 8ae79ed363
commit 8bb5c190b9
4 changed files with 29 additions and 33 deletions

View file

@ -17,6 +17,7 @@ import {Menu} from "./Menu";
import {Protyle} from "../protyle";
import {openMobileFileById} from "../mobile/editor";
import {lockScreen} from "../dialog/processSystem";
import {Model} from "../layout/Model";
let openTab;
let openWindow;
@ -77,7 +78,7 @@ openTab = (options: {
position?: "right" | "bottom",
keepCursor?: boolean // 是否跳转到新 tab 上
removeCurrentTab?: boolean // 在当前页签打开时需移除原有页签
afterOpen?: () => void // 打开后回调
afterOpen?: (model?: Model) => void // 打开后回调
}) => {
if (options.doc) {
if (options.doc.zoomIn) {