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

希望月份选择器在选择月份之后能自动关闭面板 #5786

Open
3 tasks done
adele-ty opened this issue Mar 14, 2024 · 1 comment
Open
3 tasks done

希望月份选择器在选择月份之后能自动关闭面板 #5786

adele-ty opened this issue Mar 14, 2024 · 1 comment
Labels
feature request New feature or request

Comments

@adele-ty
Copy link

问题的清晰而简明的描述

<n-date-picker
v-model:value="timestamp" type="month"
update-value-on-close :actions="null" @update:value="(e, value) => handleMonth(value)"
/>
当type为month时,选择月份之后需要点击页面的其他部分,月份选择器才会收起面板

建议的解决方案

希望可以添加一个prop,类似于DateRange中的close-on-select属性

备选方案

No response

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。
@adele-ty adele-ty added the feature request New feature or request label Mar 14, 2024
@18626428291
Copy link

附议,并且其 例如类型是date或者datetime的时候,希望选择年和月都会自动收起内部的面板,现在需要点击内部面板和外部面板之间的区域才能收起内部面板,有点影响操作

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants