react-dates - airbnb/react-dates 中未显示箭头(在移动屏幕中是,不在桌面中)
问题描述
我正在使用库 airbnb/react-dates 作为日期选择器。我正在使用标准代码:
<SingleDatePicker
orientation={datePickerOrientation}
date={newEndsOn}
onDateChange={(date) => setNewEndsOn(date)}
focused={datePickerFocused}
onFocusChange={({ focused }) => setDatePickerFocused(focused)}
/>
根据移动设备或台式机,哪里datePickerOrientation
可以获得“垂直”或“水平”的值。
在移动设备中,我可以看到导航箭头移动数月。不幸的是,我在桌面版上看不到箭头。
有人知道为什么吗?这是预期的行为吗?
我在这个问题中发现您可以覆盖箭头,但不幸的是它只适用于移动设备:
https://github.com/airbnb/react-dates/issues/692
不知何故,桌面的箭头不在 dom 中。
解决方案
推荐阅读
- angular - ngfor 只显示第一行。它没有打印整行
- r - R中的并行处理-为什么更多的内核需要更多的时间?
- javascript - 有没有办法从谷歌表格中粘贴相同格式的值并将其粘贴到 p 标签中?
- python - Python 子类装饰器。为什么我只能用父类限定装饰器一次
- java - 对服务层中的存储库使用“自动装配”注释和“私有最终”有什么区别?
- angular - 使用引用变量作为动态从父组件调用子方法
- javascript - 我使用 ES6 模块以及使用导入/导出语法的 npm 模块的最简单方法是什么?
- javascript - 如何遍历所有工作表以获取单元格值以创建下拉框?
- ios - 有没有办法避免使用 GoogleSignIn 和 AppAuth-iOS 作为静态框架发生冲突?
- reactjs - 我在前端使用 React,在后端使用 Spring Boot,但出现错误