Closed James-9696 closed 2 weeks ago
The changes in this pull request involve updates to the drawer
component's API definitions and modifications to the visibility and width control logic of the drawer in related Vue files. The show-footer
property in the API was redefined for clarity, and a new interface IDrawerConfigs
was introduced to structure configuration parameters. Additionally, the methods controlling drawer visibility were adjusted to ensure the width is set before the drawer is opened, enhancing the control flow.
File Path | Change Summary |
---|---|
examples/sites/demos/apis/drawer.js | Updated show-footer property value; added IDrawerConfigs interface with events and customSlots . |
examples/sites/demos/pc/app/drawer/width-composition-api.vue | Modified openDrawer0 , openDrawer1 , and openDrawer2 to set width before changing visible . |
examples/sites/demos/pc/app/drawer/width.vue | Updated openDrawer0 method to set width to '900px' when opening the drawer. |
height
to drawer.js
, directly related to the drawer component's configuration.before-close
method of the drawer component, relevant to its functionality.enhancement
, documentation
🐰 In the drawer, width takes flight,
Setting the scene, making it right.
With slots and events, oh what a sight,
Clarity reigns, in day and in night!
Hopping along, we celebrate this change,
For a better drawer, let’s rearrange! 🌟
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?
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
New Features
show-footer
property and event handling.IDrawerConfigs
interface to define configuration parameters.Improvements
Bug Fixes