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
feat: add Breadcrumb.Separator #17873
Conversation
Deploy preview for ant-design ready! Built with commit b91dcd5 |
<Breadcrumb.Item>Home</Breadcrumb.Item> | ||
<Breadcrumb> | ||
<Breadcrumb.Item separator=":">Location</Breadcrumb.Item> | ||
<Breadcrumb.Item separator="---">Home</Breadcrumb.Item> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要支持这种用法。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最好只推荐一种使用方式,否则 <Breadcrumb.Item separator=":" />
和 <Breadcrumb.Separator>:</Breadcrumb.Separator>
两个写法完全等效,共存没什么意义。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,在最开始的时候,我在设计 Breadcrumb.Separator 组件的时候,发现也需要改其他文件的代码,且改动量不小。所以最终决定使用 <Breadcrumb.Item separator=":" /> 。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
从语义上来说 Breadcrumb.Separator
好很多。
Codecov Report
@@ Coverage Diff @@
## feature #17873 +/- ##
===========================================
+ Coverage 96.12% 96.12% +<.01%
===========================================
Files 271 272 +1
Lines 7478 7489 +11
Branches 2052 2056 +4
===========================================
+ Hits 7188 7199 +11
Misses 288 288
Partials 2 2
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## feature #17873 +/- ##
===========================================
+ Coverage 96.12% 96.12% +<.01%
===========================================
Files 271 272 +1
Lines 7478 7489 +11
Branches 2052 2099 +47
===========================================
+ Hits 7188 7199 +11
Misses 288 288
Partials 2 2
Continue to review full report at Codecov.
|
</Breadcrumb>, | ||
mountNode, | ||
); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separator-1.md
=> separator-indepent.md
| ------- | -------------- | -------------------------------------- | ------ | ------ | | ||
| href | 链接的目的地 | string | - | 3.17.0 | | ||
| overlay | 下拉菜单的内容 | [Menu](/components/menu) \| () => Menu | - | 3.17.0 | | ||
| onClick | 单击事件 | (e:MouseEvent)=>void | - | 3.17.0 | | ||
|
||
### routes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档里要加一下 Breadcrumb.Separator 的说明。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
说明的表格中的“版本”字段该如何填写?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.21.0 好了,赶上车这个月底就发了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
components/breadcrumb/index.zh-CN.md
Outdated
@@ -32,6 +32,14 @@ title: Breadcrumb | |||
| overlay | 下拉菜单的内容 | [Menu](/components/menu) \| () => Menu | - | 3.17.0 | | |||
| onClick | 单击事件 | (e:MouseEvent)=>void | - | 3.17.0 | | |||
|
|||
### Breadcrumb.Separator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以在这后面标一个 3.21.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
语义化提交或者 PR 标题有规范吗?这个 PR 提交还需要修改吗❓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Breadcrumb.Separator | |
### Breadcrumb.Separator `3.21.0` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 这个变动的性质是?
🔗 相关 Issue
close #17812
💡 需求背景和解决方案
需求背景
解决方案
📝 更新日志怎么写?
☑️ 请求合并前的自查清单
View rendered components/breadcrumb/demo/separator-1.md