Skip to content

ThoughtChain - Item 当title是ReactNode 并且开启了折叠 collapsible 之后无法渲染Title #1150

@450611

Description

@450611

重现步骤

引用官方文档示例: https://ant-design-x.antgroup.com/components/thought-chain-cn#thought-chain-demo-collapsible

其中修改item
.....
const items: ThoughtChainProps['items'] = [
{
key: 'item-1',
title:

Click me to expand the content
, //修改成ReactNode
description: 'Collapsible',
content: mockContent,
status: 'success',
},
{
key: 'item-2',
title: 'Click me to expand the content',
description: 'Collapsible',
content: mockContent,
status: 'pending',
},
];
....

当前行为

无法渲染出ReactNode

Image

预期行为

正确渲染出Title

上下文

No response

版本

1.3.0

您在哪些浏览器上遇到了这个问题?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions