File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
scenes/launch_model/components Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 207
207
},
208
208
209
209
"components" : {
210
- "copySuccess" : " Copied to clipboard!"
210
+ "copySuccess" : " Copied to clipboard!" ,
211
+ "suggestsCommonParameters" : " Suggests common parameters; others allowed."
211
212
}
212
213
}
Original file line number Diff line number Diff line change 207
207
},
208
208
209
209
"components" : {
210
- "copySuccess" : " 已复制到剪贴板!"
210
+ "copySuccess" : " 已复制到剪贴板!" ,
211
+ "suggestsCommonParameters" : " 提示常用参数,也允许输入其他参数"
211
212
}
212
213
}
Original file line number Diff line number Diff line change 9
9
TextField ,
10
10
} from '@mui/material'
11
11
import React , { useEffect , useState } from 'react'
12
+ import { useTranslation } from 'react-i18next'
12
13
13
14
const AddPair = ( {
14
15
customData,
@@ -23,6 +24,8 @@ const AddPair = ({
23
24
const [ defaultIndex , setDefaultIndex ] = useState ( - 1 )
24
25
const [ isNotUniqueKey , setIsNotUniqueKey ] = useState ( false )
25
26
27
+ const { t } = useTranslation ( )
28
+
26
29
useEffect ( ( ) => {
27
30
onGetArr ( arr )
28
31
} , [ arr ] )
@@ -115,6 +118,7 @@ const AddPair = ({
115
118
style = { { width : '44%' } }
116
119
disablePortal
117
120
options = { tipOptions }
121
+ groupBy = { ( ) => t ( 'components.suggestsCommonParameters' ) }
118
122
value = { item [ customData . key ] }
119
123
inputValue = { item [ customData . key ] }
120
124
onInputChange = { ( _ , newValue ) => {
You can’t perform that action at this time.
0 commit comments