Open Youyou-smiles opened 2 days ago
The changes in this pull request focus on enhancing the calendar-view
component across several files. The height
property type has been modified to allow both string and number values, improving flexibility. Additionally, the CSS for the calendar view has been updated to include an overflow: auto;
property, enabling scrolling for overflowing content. The Vue component's template has also been adjusted to conditionally apply styles based on the height
property type, streamlining the rendering logic.
File Path | Change Summary |
---|---|
examples/sites/demos/apis/calendar-view.js | Updated height property type from string to string | number . |
packages/theme/src/calendar-view/index.less | Added overflow: auto; to the main calendar view class for scrolling when content overflows. |
packages/vue/src/calendar-view/src/index.ts | Changed height property type in calendarViewProps from String to [String, Number] . |
packages/vue/src/calendar-view/src/pc.vue | Adjusted template to conditionally apply height styles based on height prop type; cleaned up rendering logic. |
calendar-view
component's properties.🐇 In the garden where the calendars grow,
A height change here, a style change there, oh!
With overflow set, the content can scroll,
Flexibility blooms, making it all whole.
Hopping through code, we make it just right,
Our calendar's ready, oh what a delight! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
…ght value
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
height
property in the calendar view component, now accepting both string and numeric values.