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

Feat: [date-pick] support footer slot #16378

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

wuhaohuang
Copy link

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

This feat is to support date-pick’s ability to customize the footer, allowing developers to completely customize the bottom area of the calendar through slots, similar to antd-vue’s date selection component.
这个功能是为了支持 date-pick 能自定义 footer,允许开发人员能通过 slot 的方式完全自定义日历最下方的区域,类似 antd-vue 的日期选择组件。

Two test cases were also written to see whether it meets expectations with or without footer slot.
编写了两个测试用例,关于有无使用 footer slot 的情况下是否符合期望。

how to use:
image

like:
image

thx~

Copy link

👋 @wuhaohuang, seems like this is your first time contribution to element-plus.

  • Please make sure that you have read our guidelines and code of conduct before making a contribution.
  • You can comment with /label Components:[component_name] to add a label for which component you are working on.
  • You may join our Discord for staying tuned.

@pull-request-triage pull-request-triage bot added 1st contribution Their very first contribution Needs Review labels Apr 3, 2024
Copy link

github-actions bot commented Apr 3, 2024

Copy link

github-actions bot commented Apr 3, 2024

Hello @wuhaohuang, thank you for contributing to element-plus, please see our guideline to see how to make contribution

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

Successfully merging this pull request may close these issues.

None yet

1 participant