Closed James-9696 closed 3 weeks ago
The changes in this pull request involve modifications to the dialog box components in a Vue application. Key alterations include the replacement of <span>
elements with <div>
elements that utilize a new class, .body-class
, which is styled with a margin. Additionally, event handlers for closing the dialog have been added, and the logic for managing the body's height based on scroll permissions has been streamlined. Overall, the functionality related to dialog visibility remains unchanged.
File Path | Change Summary |
---|---|
examples/sites/demos/pc/app/dialog-box/hidden-header-composition-api.vue, examples/sites/demos/pc/app/dialog-box/hidden-header.vue | Replaced <span> with <div class="body-class"> and added scoped styles for .body-class with margin-top: 32px . |
examples/sites/demos/pc/app/dialog-box/lock-scroll-composition-api.vue, examples/sites/demos/pc/app/dialog-box/lock-scroll.vue | Added @close="closeDlg(true)" to the dialog, updated openDlg and closeDlg methods to adjust body height based on scroll permissions, and shifted to using reactive state management for visibility. |
.body-class
styling changes.🐰 In the dialog box, a change so bright,
A new class added, oh what a sight!
With margins just right, it fits like a glove,
Enhancing the layout, we celebrate with love!
Close with a click, the scroll now aligns,
Hopping through code, where magic entwines! ✨
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
Bug Fixes
Documentation