Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日期选择器 n-date-picker,当type="daterange"时,能不能右边end选框默认显示当前月或者有个配置 #2732

Closed
Muxin-007 opened this issue Apr 3, 2022 · 3 comments
Labels
feature request New feature or request priority: high

Comments

@Muxin-007
Copy link

This function solves the problem (这个功能解决的问题)

当我禁用选择未来时间时,展开时间选择右边选框全是禁用的,需要先在上面往前选择月份,比如现在是4月2号,点开时间选择器 左边选框的是现实4月份,右边选框是5月份。有的用户不清楚,先点击左边选框4月份往前 显示是3月份右边选框还是5月份,因为禁用未来时间五月份不能点击,又要在右边选框选择往前选择四月,这样要点击两下,用户会觉的很麻烦

Expected API (期望的 API)

有个属性配置右边选框默认显示当前月还是未来一月

@github-actions github-actions bot added the feature request New feature or request label Apr 3, 2022
@07akioni
Copy link
Collaborator

07akioni commented Apr 6, 2022

会加个属性允许用户控制默认开始和结束的月份

@stormspirit055
Copy link
Contributor

聪哥, 这个feature 你理想的api是啥样的

@07akioni
Copy link
Collaborator

07akioni commented Apr 7, 2022

聪哥, 这个feature 你理想的api是啥样的

default-panel-start-date: number
default-panel-end-date: number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: high
Projects
None yet
Development

No branches or pull requests

3 participants