File tree Expand file tree Collapse file tree
scenes/launch_model/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 207207 },
208208
209209 "components" : {
210- "copySuccess" : " Copied to clipboard!"
210+ "copySuccess" : " Copied to clipboard!" ,
211+ "suggestsCommonParameters" : " Suggests common parameters; others allowed."
211212 }
212213}
Original file line number Diff line number Diff line change 207207 },
208208
209209 "components" : {
210- "copySuccess" : " 已复制到剪贴板!"
210+ "copySuccess" : " 已复制到剪贴板!" ,
211+ "suggestsCommonParameters" : " 提示常用参数,也允许输入其他参数"
211212 }
212213}
Original file line number Diff line number Diff line change 99 TextField ,
1010} from '@mui/material'
1111import React , { useEffect , useState } from 'react'
12+ import { useTranslation } from 'react-i18next'
1213
1314const AddPair = ( {
1415 customData,
@@ -23,6 +24,8 @@ const AddPair = ({
2324 const [ defaultIndex , setDefaultIndex ] = useState ( - 1 )
2425 const [ isNotUniqueKey , setIsNotUniqueKey ] = useState ( false )
2526
27+ const { t } = useTranslation ( )
28+
2629 useEffect ( ( ) => {
2730 onGetArr ( arr )
2831 } , [ arr ] )
@@ -115,6 +118,7 @@ const AddPair = ({
115118 style = { { width : '44%' } }
116119 disablePortal
117120 options = { tipOptions }
121+ groupBy = { ( ) => t ( 'components.suggestsCommonParameters' ) }
118122 value = { item [ customData . key ] }
119123 inputValue = { item [ customData . key ] }
120124 onInputChange = { ( _ , newValue ) => {
You can’t perform that action at this time.
0 commit comments