我正在使用“@mui/x-日期选择器/日期选择器”中的日期选择器。
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
<LocalizationProvider dateAdapter={AdapterMoment}>
<DatePicker
value={value}
onChange={(newValue) => {
setValue(newValue);
}}
renderInput={(params) => <TextField {...params} />}
/>
</LocalizationProvider>
The dates and the weekdays should be in a straight line column
The columns are not in straight line
我是否不小心覆盖了CSS的某个地方?
1条答案
按热度按时间wz3gfoph1#
我在
calendar
图标(DatePicker Icon Button)的样式上遇到了类似的问题,我可以按照本文中的建议修改它:How to change the icon in MUI DatePicker?