From v1 to v2
From v1 to v2
This document will help you upgrade from @ant-design/x 1.x to @ant-design/x 2.x.
@ant-design/x-sdk with comprehensive refactoringuseXAgent hook for model scheduling, and upgraded useXChat as the conversation data management hook tool for producing data needed for page rendering. The entire implementation logic has been refactored and needs to be modified according to the new documentation.useXConversations conversation list management hook, providing operations including conversation creation, deletion, update, and multi-conversation persistence capabilities.Chat Provider interface implementation to provide unified request management and data format conversion for useXChat.messageRender replaced with contentRender, and supports receiving extended parameters.actions property, added suffix property. Suffix content displays action buttons by default. When default action buttons are not needed, you can set suffix={false}.(files: FileList) => void.size renamed to byte for displaying file size (bytes).size as card size configuration, optional values 'small' | 'default'.items list removed extra property.If you encounter problems during the upgrade process, please provide feedback at GitHub issues. We will respond as soon as possible and make corresponding improvements to this document.