We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在使用BubbleList组件时,根据文档的示例,定义roles:
const roles: GetProp<BubbleListProps, 'roles'> = { ai: { // ....other config messageRender: (content) => {}, // ....other config }, user: { // ....other config messageRender: (content) => {}, // ....other config }, };
messageRender中的content会推断为默认string, 但实际content是一个泛型结构。
在Bubble组件中是可以传递一个泛型来定义content的,希望BubbleListProps也能支持传递一个泛型来定义content的结构。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
需求动机
在使用BubbleList组件时,根据文档的示例,定义roles:
messageRender中的content会推断为默认string, 但实际content是一个泛型结构。
提议的 API 是什么样的?
在Bubble组件中是可以传递一个泛型来定义content的,希望BubbleListProps也能支持传递一个泛型来定义content的结构。
The text was updated successfully, but these errors were encountered: