Tencent / Tencent/tdesign-react
[Divider] 期望自定义子元素的父级标签不是 span
Open
@honkinglin is already working on this.
Since Jul 13, 2023.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
Divider 组件支持 children 或 content 属性传入 TNode 类型的元素,当子元素是 div 块级元素时,由于父级是 span 行内元素,可能会不便于子元素语义化。
你建议的方案是什么
期望自定义子元素的父级标签不是 span。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.