【发布时间】:2020-06-22 05:03:54
【问题描述】:
我正在尝试在 React 的 Material UI 的键盘日期选择器文本字段中设置日历图标的样式(特别是增加图标的字体大小)。
<KeyboardDatePicker
keyboard={!this.props.isDisabled}
keyboardIconProps={{ fontSize: "35px" }}
clearable
disabled={this.props.isDisabled}
error={this.state.isError}
helperText={this.state.errorMsg}
pickerRef={node => (this.picker = node)}
InputProps={{ disableUnderline: true, disabled: this.props.isDisabled }}
onError={console.log}
value={this.props.storeValue}
onChange={this.onChangeCallback}
format={this.props.displayFormat}
onBlur={this.onBlurCallback}
disableOpenOnEnter
InputLabelProps={this.inputLabelProps}
disableFuture={this.props.disableFuture}
disablePast={this.props.disablePast}
/>
我尝试设置 KeyboardButtonProps 但它似乎没有设置图标的样式。我在网上搜索并没有解决我的问题。任何帮助将非常感激。干杯!
【问题讨论】:
-
您能否提供一个在线示例,至少是您正在使用的 material-ui 组件的链接
标签: material-ui