semi-design
semi-design copied to clipboard
[Typography] copyable={{content:string}} should not show warning.
Which Component 出现bug的组件
- Typography
semi-ui version
- latest
Expected result 期望的结果是什么
- Typography pass copyable={{content:string}} to props should not show warning. Warning: Children in Typography is a object, it will case a [object Object] mistake when copy to clipboard.
Actual result 实际的结果是什么
- Warning shows
Steps to reproduce 复现步骤
- 1
Reproducible code 复现代码
()=><Typography.Paragraph copyable={{ content: 'Hello, Semi Design!' }}>点击复<div/>制文本。</Typography.Paragraph>
Additional information 补充说明
- 遇到这个bug的业务场景、上下文、或者你的需求场景