feat: close tranbox when click away

This commit is contained in:
Gabe Yuan
2024-04-01 12:25:59 +08:00
parent 60d788288d
commit 7a12c5315a
6 changed files with 34 additions and 1 deletions

View File

@@ -623,6 +623,10 @@ export const I18N = {
zh: `隐藏翻译按钮`,
en: `Hide Translate Button`,
},
hide_click_away: {
zh: `点击外部关闭弹窗`,
en: `Click outside to close the pop-up window`,
},
show: {
zh: `显示`,
en: `Show`,

View File

@@ -388,7 +388,8 @@ export const DEFAULT_TRANBOX_SETTING = {
tranboxShortcut: DEFAULT_TRANBOX_SHORTCUT,
btnOffsetX: 10,
btnOffsetY: 10,
hideTranBtn: false,
hideTranBtn: false, // 是否隐藏翻译按钮
hideClickAway: false, // 是否点击外部关闭弹窗
};
// 订阅列表