-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
refactor: use XProvider instead of ConfigProvider. #127
Conversation
docs: update all markdown test: update all test docs: update changelog
WalkthroughWalkthrough此次更改涉及多个文件的重构,主要集中在组件配置管理的更新。引入了新的自定义钩子 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant App
participant XProvider
participant Component
User->>App: 访问应用
App->>XProvider: 提供样式配置
XProvider->>Component: 传递组件配置
Component->>User: 渲染界面
Recent review detailsFiles selected for processing (2)
Note Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 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 (
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
Deploying x with Cloudflare Pages
|
现在还只是 UI 层面的配置,接下来可以对标 https://docs.copilotkit.ai/tutorial-ai-todo-list-copilot/step-2-setup-copilotkit#configure-the-copilotkit--provider 做 ai 相关的 runtime 配置。 |
嗯嗯,我这个 PR 先删干净以及把相关关键词替换了,后续 runtime 建设的过程中补充这些内容。 |
@ant-design/x
关键词更新了所有的文档、测试用例、代码中的antd
关键词其他:
docs: update all markdown
test: update all test
docs: update changelog
Summary by CodeRabbit
新特性
XProvider
,替代了原有的ConfigProvider
,以增强配置管理。useXComponentConfig
自定义钩子,提升组件配置的灵活性。XProviderContext
,用于共享样式配置,增强了样式和类名的自定义能力。文档
XProvider
的使用说明,支持中英文。重构
ComponentsList
、BackgroundImage
和ColorPicker
,简化了用户界面结构。修复
Sender
组件的类型问题,改善了安装过程中的兼容性。