-
Notifications
You must be signed in to change notification settings - Fork 264
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
fix(drawer): [drawer] modify demo #2420
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -19,6 +19,7 @@ const width = ref('900px') | |||||||||||
|
||||||||||||
function openDrawer0() { | ||||||||||||
visible.value = true | ||||||||||||
width.value = '900px' | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix inconsistent state update order in openDrawer0. The width update in Apply this diff to maintain consistent state update order: function openDrawer0() {
- visible.value = true
width.value = '900px'
+ visible.value = true
} 📝 Committable suggestion
Suggested change
|
||||||||||||
} | ||||||||||||
|
||||||||||||
function openDrawer1() { | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -27,6 +27,7 @@ export default { | |||||||||||||
methods: { | ||||||||||||||
openDrawer0() { | ||||||||||||||
this.visible = true | ||||||||||||||
this.width = '900px' | ||||||||||||||
}, | ||||||||||||||
Comment on lines
29
to
31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix inconsistent width setting order in The current implementation sets the width after making the drawer visible, which differs from Apply this diff to maintain consistency with other methods and prevent potential visual artifacts: openDrawer0() {
- this.visible = true
this.width = '900px'
+ this.visible = true
}, 📝 Committable suggestion
Suggested change
|
||||||||||||||
openDrawer1() { | ||||||||||||||
this.width = '700px' | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add missing English description for show-footer property.
While the pcDemo value now correctly references the 'footer-slot' demo, the English description ('en-US') for the show-footer property is missing.
Add the English description to maintain documentation consistency: