【发布时间】:2019-09-25 04:30:59
【问题描述】:
当variant="outlined" 和我在InputProps 中使用notchedOutline 时,我在大纲自定义样式方面取得了成功。
否则 - variant=[anything else] 仅存在底部边框 - 它不起作用,即使 underline 作为 InputProps 中的键/类。
我什至尝试过root。
export default ({ boxType, classes, value, onChange, style }) => (
<TextField
variant={boxType || "standard"}
value={value}
onChange={onChange}
InputProps={{
classes: {
notchedOutline: classes.notchedOutline,
underline: classes.underline,
root: classes.TextInputField
},
style
}}
/>
)
【问题讨论】:
标签: reactjs material-ui