-
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 1 commit
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 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 removal of
reset-time
attribute across the codebase.The
reset-time
attribute is still present in numerous button components across multiple.vue
files. This indicates that the removal was not applied consistently, which may lead to unexpected behavior in parts of the application.Recommended Actions:
reset-time
is intended to be global. If so, apply the change consistently across all relevant files.reset-time
does not adversely affect button behavior where it remains.🔗 Analysis chain
Consistent removal of
reset-time
attribute, but clarification needed.The
reset-time
attribute has been consistently removed from all six button components. This change appears intentional and aligns with the AI-generated summary.However, I have a few points for consideration:
reset-time
attribute? Understanding its impact on button behavior would be helpful.To ensure this change is consistent across the codebase, let's check for any remaining usage of
reset-time
in button components:🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 71
Script:
Length of output: 32314