input box trans

This commit is contained in:
Gabe Yuan
2023-09-13 15:53:40 +08:00
parent f8c8a4ebeb
commit 0ea97b73e3
11 changed files with 312 additions and 52 deletions

View File

@@ -64,6 +64,7 @@ function RuleFields({ rule, rules, setShow, setKeyword }) {
const {
pattern,
selector,
inputSelector = "",
translator,
fromLang,
toLang,
@@ -178,6 +179,17 @@ function RuleFields({ rule, rules, setShow, setKeyword }) {
onFocus={handleFocus}
multiline
/>
<TextField
size="small"
label={i18n("input_selector")}
helperText={i18n("input_selector_helper")}
name="inputSelector"
value={inputSelector}
disabled={disabled}
onChange={handleChange}
onFocus={handleFocus}
multiline
/>
<Box>
<Grid container spacing={2} columns={12}>