chore: update arco component references#4
Open
FeLpc wants to merge 1 commit into
Open
Conversation
补充/更正多个 Arco 组件参考文档中的缺失属性、类型与用法示例。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
发现的问题 (Context & Issue)
在使用 Arco Design 官方提供的 skills 时,我发现部分代码片段/物料中包含了一些非 Arco 原生的 API。
具体来说,代码中遗留了不少属于 Ant Design 独有的子组件、Props、特定枚举值。
不存在的子组件
子组件缺失
产生的影响 (Impact)
这些可能是来自 antd 的 API 并未在 Arco Design 实现,或者以其他 props 参数实现,官方提供错误 skills 示例,会导致以下问题:
误导开发者:用户在使用官方推荐的 skills 时,AI 会默认这些 API 是 Arco 支持的,从而生成有误的代码。
破坏开箱即用体验:官方物料本应是最佳实践的体现,但包含无效案例反而会增加开发者的排错成本。
本次 PR 的修复内容 (What's Changed)
使用 claude code 清理了 skills 中所有不属于 Arco Design 体系的冗余 Props 和枚举。
按照 Arco Design 的最新官方文档,将这些组件的属性重新映射并适配为正确的 Arco API,确保其可以正常工作。
最后人工对照 arco 官方文档和源码审核了改动内容(抽查,抽查比例 > 50%)。
吐槽(Complain)