Skip to content

Add scoped slot for custom date rendering in date-picker#425

Open
zhedream wants to merge 1 commit intoview-design:masterfrom
zhedream:master
Open

Add scoped slot for custom date rendering in date-picker#425
zhedream wants to merge 1 commit intoview-design:masterfrom
zhedream:master

Conversation

@zhedream
Copy link

This pull request enhances the customizability of the date picker component by introducing support for a dateRender slot. This allows consumers of the component to provide a custom rendering template for each date cell, improving flexibility for different UI requirements.

Slot customization improvements:

  • Added a dateRender slot to date-table.vue, enabling custom rendering of date cells via a named slot that exposes the cell object.
  • Updated Date/date.vue and picker.vue to forward the dateRender slot to their respective child components, ensuring that custom date rendering is consistently supported throughout the date picker panels. [1] [2]

Adds a scoped slot to the date-picker component to allow custom rendering of individual date cells.
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant