perf: optimize the closing jump logic of tabs

* 依据tab访问历史回退上一个tab,原逻辑是返回一下个 或 上一个
 * 支持在配置中开启或关闭
This commit is contained in:
zhongming4762
2026-02-08 20:36:16 +08:00
parent 331da3c8c7
commit 7a2b916387
7 changed files with 73 additions and 12 deletions

View File

@@ -106,6 +106,7 @@ const defaultPreferences: Preferences = {
showMaximize: true,
showMore: true,
styleType: 'chrome',
visitHistory: true,
wheelable: true,
},
theme: {

View File

@@ -224,6 +224,8 @@ interface TabbarPreferences {
showMore: boolean;
/** 标签页风格 */
styleType: TabsStyleType;
/** 是否开启访问历史记录 */
visitHistory: boolean;
/** 是否开启鼠标滚轮响应 */
wheelable: boolean;
}