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

[Feature Request] 日历组件 calendar 支持 show-title 和 show-month-title #5779

Closed
pingren opened this issue Mar 8, 2020 · 3 comments
Closed
Milestone

Comments

@pingren
Copy link

pingren commented Mar 8, 2020

这个功能解决了什么问题

在不使用弹层(poppable: false) 时:

  1. 需要隐藏日历组件的标题和月份标题,减少组件占用的屏幕空间。
  2. 需要在外部组件(比如导航栏 Navbar)显示标题的场景。

描述您想要的解决方案

加入 props 控制 calendar 显示/隐藏这两个标题。

建议的API是什么样的

show-title 控制是否显示标题。
show-month-title 控制是否显示当前月份标题。

@chenjiahan chenjiahan added this to the 2.5.5 milestone Mar 9, 2020
@chenjiahan
Copy link
Member

下个版本加上 👌

@chenjiahan
Copy link
Member

已在 2.5.5 版本支持

@SignDawn
Copy link

SignDawn commented Jan 5, 2021

:show-subtitle='false' 后,在 van-calendar__body 中出现 van-calendar__month-title 如何把这个内部的月份日期 title 也去掉?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants