arco-design-vue
arco-design-vue copied to clipboard
feat(breadcrumb): support routes and more props config
Types of changes
- [x] New feature
- [ ] Bug fix
- [x] Enhancement
- [ ] Component style change
- [x] Typescript definition change
- [x] Documentation change
- [ ] Coding style change
- [ ] Refactoring
- [ ] Test cases
- [ ] Continuous integration
- [ ] Breaking change
- [ ] Others
Background and context
Solution
How is the change tested?
Changelog
| Component | Changelog(CN) | Changelog(EN) | Related issues |
|---|---|---|---|
| breadcrumb | 支持 separator 属性 | suport separator prop | - |
| breadcrumb | 支持 routes 属性 | suport routes prop | - |
| breadcrumb | 支持 more-icon 插槽 | suport more-icon slot | - |
| breadcrumb-item | 支持 droplist 属性和插槽 | suport droplist prop and slot | - |
Checklist:
- [ ] Test suite passes (
npm run test) - [ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
- [ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to
featurebranch and others should be submitted tomainbranch)
Other information
- [x] 下拉菜单
- [x] routes 配置
- [ ] droplist props (需要帮助 😅 类型要单独声明一份还是要?)
- [ ] feat version
🤔 RFC(暂时不实现)
- [ ] 有关 ellipsis 的设置,配置 tooltip 展示
- [ ] 有关
<a href={#/${paths.join('/').replace(/^//, '')}}>路径合并方法,是否要设置为 prop 配置函数(支持自定义),可选属性