-
Notifications
You must be signed in to change notification settings - Fork 311
docs: optimize features of action-menu/alert/anchor and so on #3142
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
Conversation
WalkthroughThe changes add a new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DocFile
participant Renderer
User->>DocFile: Request component documentation
DocFile-->>User: Returns exported object with features array
User->>Renderer: Pass feature details for rendering
Renderer-->>User: Display updated documentation with feature details
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
examples/sites/demos/pc/app/alert/webdoc/alert.jsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-vue". (The package "eslint-plugin-vue" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-vue" was referenced from the config file in ".eslintrc.js » @antfu/eslint-config » @antfu/eslint-config-vue". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. examples/sites/demos/pc/app/action-menu/webdoc/action-menu.jsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-vue". (The package "eslint-plugin-vue" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-vue" was referenced from the config file in ".eslintrc.js » @antfu/eslint-config » @antfu/eslint-config-vue". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. examples/sites/demos/pc/app/anchor/webdoc/anchor.jsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-vue". (The package "eslint-plugin-vue" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-vue" was referenced from the config file in ".eslintrc.js » @antfu/eslint-config » @antfu/eslint-config-vue". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Walkthrough该PR更新了多个组件的特性列表,包括action-menu、alert、anchor、autocomplete、breadcrumb、bulletin-board、button-group、calendar、calendar-view和card。每个组件的特性列表详细描述了支持的功能、属性和演示示例。 Changes
|
[e2e-test-warn] The title of the Pull request should look like "fix(vue-renderless): [action-menu, alert] fix xxx bug". Please make sure you've read our contributing guide |
@@ -148,5 +148,150 @@ export default { | |||
}, | |||
codeFiles: ['events.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
@@ -154,5 +154,138 @@ export default { | |||
}, | |||
codeFiles: ['custom-class.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
@@ -54,5 +54,85 @@ export default { | |||
}, | |||
codeFiles: ['change.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
WalkthroughThe PR updates the feature list of multiple components, including action-menu, alert, anchor, autocomplete, breadcrumb, bulletin-board, button-group, calendar, calendar-view and card. The feature list for each component describes the supported features, properties, and demonstration examples in detail. Changes
|
@@ -213,5 +213,203 @@ export default { | |||
}, | |||
codeFiles: ['select-event.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
@@ -72,5 +72,72 @@ export default { | |||
}, | |||
codeFiles: ['options.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
@@ -119,5 +119,124 @@ export default { | |||
}, | |||
codeFiles: ['events.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
@@ -150,5 +150,152 @@ export default { | |||
}, | |||
codeFiles: ['change-event.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
@@ -188,5 +188,204 @@ export default { | |||
}, | |||
codeFiles: ['calendar-event.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
@@ -94,5 +94,98 @@ export default { | |||
}, | |||
codeFiles: ['dynamic-add-schedule.vue'] | |||
} | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
@@ -176,5 +176,59 @@ export default { | |||
// }, | |||
// codeFiles: ['card-events.vue'] | |||
// }, | |||
], |
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.
Ensure that the features array is correctly initialized and populated with valid feature objects.
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.
Actionable comments posted: 0
🧹 Nitpick comments (3)
examples/sites/demos/pc/app/calendar-view/webdoc/calendar-view.js (2)
307-307
: Consider completing the markColor informationThe description mentions the markColor attribute but doesn't include the available color options that are mentioned in the demo description (line 104-106).
- '通过 showMark 回调函数来标记某些日期,markColor 属性设置标记的颜色,此功能只在时间线模式和日程模式生效。', + '通过 showMark 回调函数来标记某些日期,markColor 属性设置标记的颜色,此功能只在时间线模式和日程模式生效。markColor 可选颜色同 theme。',
259-259
: Minor typo in descriptionThere appears to be a typo in the Chinese description for timeline slot.
- description: '时间下模式下提供 timeline1-timeline7 这 7 个插槽,方便用户自定义日程展示。', + description: '时间线模式下提供 timeline1-timeline7 这 7 个插槽,方便用户自定义日程展示。',examples/sites/demos/pc/app/action-menu/webdoc/action-menu.js (1)
185-185
: Enhance icon configuration description with more detailsThe current description is somewhat vague about the specific icon properties. Consider adding more details to match the demo description on lines 40-42.
- description: '支持设置菜单项图标、下拉触发源图标,以及控制图标显示。', + description: '通过 icon 属性设置菜单项的图标,suffix-icon 设置下拉触发源图标,show-icon 设置是否显示下拉触发源图标。',
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (10)
examples/sites/demos/pc/app/action-menu/webdoc/action-menu.js
(1 hunks)examples/sites/demos/pc/app/alert/webdoc/alert.js
(1 hunks)examples/sites/demos/pc/app/anchor/webdoc/anchor.js
(1 hunks)examples/sites/demos/pc/app/autocomplete/webdoc/autocomplete.js
(1 hunks)examples/sites/demos/pc/app/breadcrumb/webdoc/breadcrumb.js
(1 hunks)examples/sites/demos/pc/app/bulletin-board/webdoc/bulletin-board.js
(1 hunks)examples/sites/demos/pc/app/button-group/webdoc/button-group.js
(1 hunks)examples/sites/demos/pc/app/calendar-view/webdoc/calendar-view.js
(1 hunks)examples/sites/demos/pc/app/calendar/webdoc/calendar.js
(1 hunks)examples/sites/demos/pc/app/card/webdoc/card.js
(1 hunks)
🔇 Additional comments (10)
examples/sites/demos/pc/app/autocomplete/webdoc/autocomplete.js (1)
217-413
: Well-structured feature documentation!The added features array provides comprehensive documentation for the autocomplete component. Each feature is clearly defined with consistent structure, proper descriptions, and relevant API/demo references, making it easier for developers to understand the component's capabilities.
examples/sites/demos/pc/app/anchor/webdoc/anchor.js (1)
58-136
: Good organization of anchor component featuresThe feature documentation clearly outlines all anchor functionality with a consistent structure. Each feature properly maps to related APIs and demo examples, which enhances discoverability for developers.
examples/sites/demos/pc/app/breadcrumb/webdoc/breadcrumb.js (1)
76-141
: Clear and consistent feature documentationThe breadcrumb features are well-documented with a logical organization. All features include appropriate support flags, descriptions, API references, and demo links, maintaining the same structure as other component documentation.
examples/sites/demos/pc/app/card/webdoc/card.js (1)
180-232
: Properly documented active features onlyThe card component's feature documentation is correctly structured and maintains integrity by only referencing active demos (not the commented-out ones in lines 59-178). This approach ensures that documentation matches the actually available functionality.
examples/sites/demos/pc/app/bulletin-board/webdoc/bulletin-board.js (1)
123-240
: Well-structured feature documentation with comprehensive coverage.The new
features
array provides a clear, structured way to document all the bulletin-board component's capabilities. Each feature is well-defined with its support status, description, related APIs, and demo references, making it much easier for developers to understand the component's functionality.I particularly like how you've organized the features to match the existing demo structure while providing more concise descriptions focused on the APIs.
examples/sites/demos/pc/app/calendar/webdoc/calendar.js (1)
98-189
: Clean implementation of feature documentation with good organization.The added
features
array provides a comprehensive overview of the calendar component's capabilities. Each feature is clearly defined with all necessary metadata, and I appreciate how theapis
array maps to the specific attributes developers need to use for each feature.The relationship between features, APIs, and demos is well-established, creating a cohesive documentation structure.
examples/sites/demos/pc/app/alert/webdoc/alert.js (1)
158-289
: Excellent feature documentation with detailed API mappings.The features array provides thorough documentation of the alert component's capabilities. Each feature is well-defined with appropriate metadata, descriptions, and API references.
I particularly like the detailed descriptions that explain relationships between multiple properties (like the connection between
closable
andclose-text
), which helps developers understand how features work together.examples/sites/demos/pc/app/button-group/webdoc/button-group.js (1)
154-299
: Comprehensive feature documentation with clear mapping to demos.The added
features
array provides a well-structured overview of the button-group component's capabilities. Each feature entry contains all necessary information to understand its purpose and usage.The documentation effectively covers various aspects of the component, from basic usage to complex scenarios like data mapping and event handling, making it a valuable resource for developers.
examples/sites/demos/pc/app/calendar-view/webdoc/calendar-view.js (1)
192-389
: Well-structured features documentation!The addition of the
features
array provides a comprehensive overview of the calendar-view component's capabilities. Each feature is well-organized with consistent properties including id, name, support status, description, cloud availability, related APIs, and demo references. This structure makes it much easier for developers to understand the component's capabilities at a glance.The features section effectively covers all the functionality demonstrated in the existing demos, creating a clear mapping between features, demos, and APIs.
examples/sites/demos/pc/app/action-menu/webdoc/action-menu.js (1)
152-295
: Well-organized feature documentation structure!The addition of the
features
array provides a clear and structured representation of the action-menu component's capabilities. Each feature is consistently defined with properties like id, name, support status, description, cloud availability, related APIs, and demo references. This organization makes it easy for developers to understand available functionality and how to implement specific features.The documentation effectively cross-references features with their corresponding demos and APIs, creating a complete reference for the component.
PR
完善以下组件的特性列表(features):
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