Closed shenjunjian closed 3 weeks ago
The changes in this pull request primarily focus on enhancing the tooltip functionality within the Vue components, specifically in the always-show
and highlight-query
directives. Modifications include updating the tooltip content to provide clearer reasons for item disablement, refining the structure and styling of the components, and improving documentation for the v-auto-tip
directive. Additionally, test cases have been adjusted to reflect these changes, ensuring that the expected tooltip content aligns with the new implementations.
File Path | Change Summary |
---|---|
examples/sites/demos/pc/app/directives/auto-tip/always-show-composition-api.vue | Updated tooltip content to use item.disabledReason . Added effect: 'dark' to tooltip configuration. Modified options array to include a new disabled item with JSX for tooltip content. Added text-decoration: line-through; for .is_disabled . |
examples/sites/demos/pc/app/directives/auto-tip/always-show.vue | Similar updates as above for tooltip content and configuration. Updated options array and added CSS for disabled items. |
examples/sites/demos/pc/app/directives/auto-tip/always-show.spec.js | Modified expected tooltip content in test cases for hover actions. |
examples/sites/demos/pc/app/directives/highlight-query/avoid-composition-api.vue | Changed button label and added descriptive text indicating scenarios cannot be dynamically updated. Updated titles and replaced <tiny-input> with <tiny-button> . Added new CSS classes for styling. |
examples/sites/demos/pc/app/directives/highlight-query/avoid.spec.js | Adjusted locator for button element in test case to select the first instance. |
examples/sites/demos/pc/app/directives/highlight-query/avoid.vue | Similar updates as above for button text and section titles. Updated button components and added new CSS styles for improved presentation. |
examples/sites/demos/pc/app/directives/webdoc/directives-auto-tip.js | Enhanced descriptions for v-auto-tip directive, clarifying usage instructions and parameter details. |
examples/sites/demos/pc/app/directives/webdoc/directives-highlight-query.js | Modified descriptions in the demos array to improve clarity regarding functionality of highlight commands. |
always-show-composition-api.vue
file involve modifications to the v-auto-tip
directive, which is directly related to the changes made in the main PR regarding tooltip content.auto-tip
functionality, which is relevant to the changes made in the main PR that enhance tooltip behavior.documentation
🐇 In the land of code where bunnies hop,
Tooltips now shine, they never stop!
With reasons so clear, and styles so bright,
Our UI's a joy, a true delight!
So let’s celebrate with a happy cheer,
For every change brings us closer, my dear! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
v-auto-tip
andhighlight-query
directives.Style