You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ant Design 日期范围选择器仅显示一个月份问题求助

Ant Design 日期范围选择器仅显示单个月份问题

根据官方文档,Ant Design 日期范围选择器的日历应分别显示两个月份,但当前仅显示一个月份。查阅文档后,我已将值从单个值存储改为数组形式,以下是我的代码片段:

<RangePicker
                format="YYYY-MM-DD"
                size="small"
                value={[
                  dayjs(globalDates?.startDate, "YYYY-MM-DD"),
                  dayjs(globalDates?.endDate, "YYYY-MM-DD")
                ]}
                name="startDate"
                picker="day"
                allowClear={false}
                style={styles?.rangePickerStyles}
                className="h-12 w-full"
                popupStyle={{ zIndex: 9999 }}
                onChange={handleDateChange}
              />

内容的提问来源于stack exchange,提问作者Mohd Mehran Siddiqui

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 14:04:55