Reactjs 如何将FormControl转换为TextField材质Ui
这是来自某个项目的旧代码:Reactjs 如何将FormControl转换为TextField材质Ui,reactjs,material-ui,Reactjs,Material Ui,这是来自某个项目的旧代码: <FormControl fullWidth><InputLabel className = {classes.inputLabel} >نوع فرم نامه</InputLabel> <Select TabIndicatorProps={{style: {backgroundColor: themeStyle.placeHolderTextColor}}} native autoFocus id=&quo
<FormControl fullWidth><InputLabel className = {classes.inputLabel} >نوع فرم نامه</InputLabel>
<Select TabIndicatorProps={{style: {backgroundColor: themeStyle.placeHolderTextColor}}}
native autoFocus id="letILetTvCodeInt" onChange={this.handleChange} >
{Tools.GetSelectOptions(this.state.LetType, 'LetTVCodeInt', 'LetTNameStr')}</Select>
</FormControl>
const styles = theme => ({
cssLabel: {
color: themeStyle.textFieldUnderLineColor,
"&.Mui-focused": {
color: themeStyle.tabIndicatorProps,
}
},
cssFocused: {},
underline: {
'&:before': {
borderBottomColor: themeStyle.textFieldUnderLineColor,
},
'&:after': {
borderBottomColor: themeStyle.tabIndicatorProps,
color: themeStyle.tabIndicatorProps,
},
'&:hover:before': {
borderBottomColor: [themeStyle.appBarRDbgk, '!important'],
},
color: themeStyle.dialogContentColor,
},
notchedOutline: {
},
outlinedInput: {
'&$focused $notchedOutline': {
border: `2px solid ${themeStyle.tabIndicatorProps}`
},
backgroundColor: themeStyle.bkgBodyColor
},
focused: {},
notchedOutline: {},
})