Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React dates 箭头未在airbnb/react日期中显示(在手机屏幕中显示为是,而不是在桌面上显示)_React Dates - Fatal编程技术网

React dates 箭头未在airbnb/react日期中显示(在手机屏幕中显示为是,而不是在桌面上显示)

React dates 箭头未在airbnb/react日期中显示(在手机屏幕中显示为是,而不是在桌面上显示),react-dates,React Dates,我正在使用库airbnb/react dates作为日期选择器。我使用的是标准代码: <SingleDatePicker orientation={datePickerOrientation} date={newEndsOn} onDateChange={(date) => setNewEndsOn(date)} focused={datePickerFocused} onFocusChange={({ focused }) => setDatePicker

我正在使用库airbnb/react dates作为日期选择器。我使用的是标准代码:

<SingleDatePicker
  orientation={datePickerOrientation}
  date={newEndsOn}
  onDateChange={(date) => setNewEndsOn(date)}
  focused={datePickerFocused}
  onFocusChange={({ focused }) => setDatePickerFocused(focused)}
/>
setNewEndsOn(日期)}
聚焦={datePickerFocused}
onFocusChange={({focused})=>setDatePickerFocused(focused)}
/>
其中,
datePickerOrientation
可以获取“垂直”或“水平”值,具体取决于移动设备或桌面

在移动设备中,我可以看到几个月内移动的导航箭头。不幸的是,我看不到桌面版本上的箭头

有人知道为什么吗?这是预期的行为吗

我在本期中发现,您可以覆盖箭头,但不幸的是,它只适用于移动设备:


不知何故,桌面上的箭头不在dom中。

您能否提供
datePickerOrientation
功能的实现您能否回答这个问题您能否提供
datePickerOrientation
功能的实现您能否回答这个问题