-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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(components): fix the attribute conflict #13504
Conversation
When value is input by shortcut, it's value will not be changed by defaultTime anymore closed element-plus#13483
👋 @kamesan012, seems like this is your first time contribution to element-plus.
|
Hello @kamesan012, thank you for contributing to element-plus, please see our guideline to see how to make contribution |
🧪 Playground Preview: https://element-plus.run/?pr=13504 |
packages/components/date-picker/src/date-picker-com/panel-date-pick.vue
Outdated
Show resolved
Hide resolved
packages/components/date-picker/src/date-picker-com/panel-date-pick.vue
Outdated
Show resolved
Hide resolved
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.
Can you add a test case?
Added. |
@btea Does this prrequire two people to review before merging? |
Yes, please be patient. |
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.
LGTM, Thank for your contribution
* fix(components): fix the attribute conflict When value is input by shortcut, it's value will not be changed by defaultTime anymore closed element-plus#13483 * fix(components): change param to pass the test * fix(components): delete unnecessary changes * fix(components): use let to replace ref variable * fix(components): add test cases
* fix(components): fix the attribute conflict When value is input by shortcut, it's value will not be changed by defaultTime anymore closed element-plus#13483 * fix(components): change param to pass the test * fix(components): delete unnecessary changes * fix(components): use let to replace ref variable * fix(components): add test cases
When value is input by shortcut, it's value will not be changed by defaultTime anymore
closed #13483
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.Description
🤖 Generated by Copilot at 146b1df
This change improves the date picker component by allowing shortcut options to emit date values without default time values. It introduces a new parameter
isShortcut
to theformatEmit
andemit
functions inpanel-date-pick.vue
.Related Issue
Fixes #13483.
Explanation of Changes
🤖 Generated by Copilot at 146b1df
isShortcut
parameter toformatEmit
andemit
functions to indicate shortcut date selection (link, link, link)