-
Notifications
You must be signed in to change notification settings - Fork 273
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(button): [button]fix error css var #2312
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<template> | ||
<div class="gray-bg"> | ||
<tiny-button ghost type="primary" reset-time="0">主要按钮</tiny-button> | ||
<tiny-button ghost reset-time="0">次要按钮</tiny-button> | ||
<tiny-button ghost type="success" reset-time="0">成功按钮</tiny-button> | ||
<tiny-button ghost type="info" reset-time="0">信息按钮</tiny-button> | ||
<tiny-button ghost type="warning" reset-time="0">告警按钮</tiny-button> | ||
<tiny-button ghost type="danger" reset-time="0">危险按钮</tiny-button> | ||
<tiny-button ghost type="primary">主要按钮</tiny-button> | ||
<tiny-button ghost>次要按钮</tiny-button> | ||
<tiny-button ghost type="success">成功按钮</tiny-button> | ||
<tiny-button ghost type="info">信息按钮</tiny-button> | ||
<tiny-button ghost type="warning">告警按钮</tiny-button> | ||
<tiny-button ghost type="danger">危险按钮</tiny-button> | ||
Comment on lines
+3
to
+8
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. 💡 Codebase verification Inconsistent removal of The Recommended Actions:
🔗 Analysis chainConsistent removal of The However, I have a few points for consideration:
To ensure this change is consistent across the codebase, let's check for any remaining usage of 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for any remaining usage of reset-time in button components
rg --type vue 'reset-time' | grep -i button
Length of output: 71 Script: #!/bin/bash
# Search for any remaining usage of reset-time in button components within .vue files
rg 'reset-time' --glob '*.vue' | grep -i button
Length of output: 32314 |
||
</div> | ||
</template> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<template> | ||
<div class="gray-bg"> | ||
<tiny-button ghost reset-time="0" type="primary">主要按钮</tiny-button> | ||
<tiny-button ghost reset-time="0">次要按钮</tiny-button> | ||
<tiny-button ghost reset-time="0" type="success">成功按钮</tiny-button> | ||
<tiny-button ghost reset-time="0" type="info">信息按钮</tiny-button> | ||
<tiny-button ghost reset-time="0" type="warning">告警按钮</tiny-button> | ||
<tiny-button ghost reset-time="0" type="danger">危险按钮</tiny-button> | ||
<tiny-button ghost type="primary">主要按钮</tiny-button> | ||
<tiny-button ghost>次要按钮</tiny-button> | ||
<tiny-button ghost type="success">成功按钮</tiny-button> | ||
<tiny-button ghost type="info">信息按钮</tiny-button> | ||
<tiny-button ghost type="warning">告警按钮</tiny-button> | ||
<tiny-button ghost type="danger">危险按钮</tiny-button> | ||
Comment on lines
+3
to
+8
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. 💡 Codebase verification Inconsistent Removal of The Please ensure that the 🔗 Analysis chainSummary: Consistent removal of The changes in this file consistently remove the To ensure completeness of the review:
To verify the consistent removal of the This script will help identify any inconsistencies in the removal of the To address the issue with the 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for any remaining instances of the reset-time attribute on tiny-button components
# Search for tiny-button components with reset-time attribute
echo "Searching for remaining reset-time attributes on tiny-button components:"
rg --type vue '<tiny-button.*reset-time.*>' -g '!examples/sites/demos/pc/app/button/ghost.vue'
# Search for any mentions of reset-time in relation to buttons in comments or documentation
echo "Searching for mentions of reset-time in relation to buttons:"
rg --type vue 'reset-time.*button|button.*reset-time' -g '!examples/sites/demos/pc/app/button/ghost.vue'
Length of output: 545 Script: #!/bin/bash
# Description: Check for any remaining instances of the reset-time attribute on tiny-button components
# Search for tiny-button components with reset-time attribute in .vue files
echo "Searching for remaining reset-time attributes on tiny-button components:"
rg '<tiny-button.*reset-time.*>' --glob '*.vue' -g '!examples/sites/demos/pc/app/button/ghost.vue'
# Search for any mentions of reset-time in relation to buttons in comments or documentation within .vue files
echo "Searching for mentions of reset-time in relation to buttons:"
rg 'reset-time.*button|button.*reset-time' --glob '*.vue' -g '!examples/sites/demos/pc/app/button/ghost.vue'
Length of output: 64490 |
||
</div> | ||
</template> | ||
|
||
|
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.
💡 Codebase verification
Inconsistent Usage of
native-type="submit"
in Other ComponentsThe
native-type="submit"
attribute is still present in the following.vue
files:examples/sites/demos/pc/app/drawer/footer-slot-composition-api.vue
examples/sites/demos/pc/app/drawer/footer-slot.vue
examples/sites/demos/mobile-first/app/button/icon.vue
examples/sites/demos/mobile-first/app/button/banner.vue
examples/sites/demos/mobile-first/app/button/basic-usage.vue
Please ensure that the removal of
native-type="submit"
is consistently applied across all button components to maintain standardized behavior and prevent unexpected form submission issues.🔗 Analysis chain
Verify the intended behavior of the primary button
The
native-type="submit"
attribute has been removed from the primary button. This change alters the button's behavior in form submissions, as it will no longer automatically submit a form when clicked.Please confirm if this change is intentional and part of the CSS variable fix mentioned in the PR title. If so, ensure that:
To check for consistency, you can run the following script to find other instances of
native-type="submit"
in button components:Consider adding a comment in the code explaining why the
native-type="submit"
attribute was removed, to provide context for future developers.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 101
Script:
Length of output: 96
Script:
Length of output: 1089