Mantine DatePickerInput 渲染错误

问题描述 投票:0回答:1

我正在尝试在我的 React 应用程序中使用 Mantine 的 DatePickerInput,但组件的渲染方式似乎存在问题。

Expected behaviour

Current Behaviour

库版本:

"react": "^18.2.0",
"@mantine/core": "^7.1.7",
"@mantine/dates": "^7.1.7",

实施:

<DatePickerInput
  name={name}
  placeholder={placeholder}
  ref={ref}
  value={value}
  onChange={e => onChange(e ?? undefined)}
  clearable
  error={error?.message}
  {...otherProps}
/>

我检查了 css 文件中的某些样式是否出现异常,但这里的情况并非如此。我还尝试将 mantine 降级为

7.1.0

reactjs datepicker mantine
1个回答
0
投票

我也有同样的问题

与演示相比,我发现缺少一些样式

"@mantine/dates": "^7.1.7", "@mantine/core": "^7.1.3", "@mantine/ds": "^7.1.3", “打字稿”:“^5.0.2”, “反应”:“^18.2.0”,

也链接到这里https://github.com/mantinedev/ui.mantine.dev/issues/75

© www.soinside.com 2019 - 2024. All rights reserved.