-
Notifications
You must be signed in to change notification settings - Fork 284
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
feat(dropdown): [action-menu,dropdown,autocomplete,input] component dark theme adaptation #3014
Changes from 2 commits
977097b
15386bd
aff176f
a5326e8
b563ad1
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,7 +1,7 @@ | ||
<template> | ||
<div class="demo-drop"> | ||
<p class="demo-dropdown">默认:</p> | ||
<tiny-dropdown split-button type="primary"> | ||
<tiny-dropdown border type="primary"> | ||
默认尺寸 | ||
<template #dropdown> | ||
<tiny-dropdown-menu> | ||
|
@@ -14,7 +14,7 @@ | |
</template> | ||
</tiny-dropdown> | ||
<p class="demo-dropdown">其他尺寸:</p> | ||
<tiny-dropdown size="medium" split-button type="primary"> | ||
<tiny-dropdown size="medium" border type="primary"> | ||
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. 💡 Verification agent 🧩 Analysis chainVerify that all dropdown sizes render correctly with the new attribute. The medium-sized dropdown now uses the 🏁 Script executed: #!/bin/bash
# Check for other instances of split-button that might need updating
rg "split-button" --type vue packages/ examples/ -l Length of output: 79 Action: Verify dropdown attribute update and UI consistency Please manually verify that:
🏁 Script executed: #!/bin/bash
# Search for any lingering "split-button" attribute in Vue files by using a glob pattern
rg "split-button" --glob "*.vue" packages/ examples/ -l Length of output: 529 Action Required: Verify Dropdown Attribute Consistency in All Examples It looks like the update in
Please verify whether these remaining instances are intentional (e.g., for legacy demos or separate variants) or if they also require updating to use the new attribute mechanism. Additionally, double-check that all dropdown sizes render consistently in both light and dark themes. |
||
中等尺寸 | ||
<template #dropdown> | ||
<tiny-dropdown-menu> | ||
|
@@ -27,7 +27,7 @@ | |
</template> | ||
</tiny-dropdown> | ||
|
||
<tiny-dropdown size="small" split-button type="primary"> | ||
<tiny-dropdown size="small" border type="primary"> | ||
小型尺寸 | ||
<template #dropdown> | ||
<tiny-dropdown-menu> | ||
|
@@ -40,7 +40,7 @@ | |
</template> | ||
</tiny-dropdown> | ||
|
||
<tiny-dropdown size="mini" split-button type="primary"> | ||
<tiny-dropdown size="mini" border type="primary"> | ||
超小尺寸 | ||
<template #dropdown> | ||
<tiny-dropdown-menu> | ||
|
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.
💡 Verification agent
🧩 Analysis chain
Attribute change from
split-button
toborder
Changing from
split-button
toborder
appears to be an API modification that may affect the component's appearance or behavior. Ensure this change is documented in the component's API documentation.Consider adding a comment in the code explaining the purpose of the
border
attribute for better developer understanding.🌐 Web query:
💡 Result:
Split-button and border attributes serve distinct purposes in Vue dropdown components based on implementation across different libraries:
Split-button Attribute
Border Attributes
elementAttr
for custom styling (DevExtreme):Key differences:
No standard border-specific prop exists in major Vue dropdown implementations - borders are typically controlled through CSS classes or generic attribute passthroughs [5][8]. The split-button is a deliberate component architecture choice, while border treatment is a presentational concern handled through styling mechanisms.
Citations:
Documentation Update Required Due to Attribute Change
split-button
prop toborder
in<tiny-dropdown border type="success">
notably shifts the component’s behavior. Whereassplit-button
is intended for creating a dual-action (functional split) button, theborder
attribute appears to control only styling.border
attribute to aid future maintainers.File:
examples/sites/demos/pc/app/dropdown/inherit-width-composition-api.vue
| Line: 4