Skip to content
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

[Cell] title 参数为空的情况下 description 不被渲染 #350

Open
imkero opened this issue Feb 27, 2023 · 1 comment
Open

[Cell] title 参数为空的情况下 description 不被渲染 #350

imkero opened this issue Feb 27, 2023 · 1 comment

Comments

@imkero
Copy link

imkero commented Feb 27, 2023

tdesign-mobile-react 版本

0.3.1

重现链接

https://codesandbox.io/s/tdesign-react-demo-forked-rmkcef?file=/src/demo.jsx

重现步骤

Cell 组件传入假值(空字符串、null 等)

<Cell
  title=""
  description="一段很长很长的内容文字"
  arrow
  leftIcon={<Icon name="app" />}
/>

期望结果

description 正常渲染

image

实际结果

description 不被渲染,且右侧箭头定位不准

image

框架版本

React(18.2.0)

浏览器版本

Chrome(110.0.5481.104)

系统版本

Windows 10

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

👋 @imkero,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant