feat: transbox follow selection

This commit is contained in:
Gabe Yuan
2024-04-20 18:07:16 +08:00
parent d622db0d7c
commit 74bc58ba91
6 changed files with 73 additions and 22 deletions

View File

@@ -58,6 +58,7 @@ export default function Tranbox() {
hideTranBtn = false,
hideClickAway = false,
simpleStyle = false,
followSelection = false,
triggerMode = OPT_TRANBOX_TRIGGER_CLICK,
extStyles = "",
} = tranboxSetting;
@@ -194,6 +195,18 @@ export default function Tranbox() {
<MenuItem value={true}>{i18n("enable")}</MenuItem>
</TextField>
<TextField
select
size="small"
name="followSelection"
value={followSelection}
label={i18n("follow_selection")}
onChange={handleChange}
>
<MenuItem value={false}>{i18n("disable")}</MenuItem>
<MenuItem value={true}>{i18n("enable")}</MenuItem>
</TextField>
<TextField
select
size="small"