feat: add support for custom slot header-index, sorted by index (#4039)

* feat: header右侧支持n个自定义位置插槽,插槽命名方式header-index,根据index大小排序。
框架默认插槽user-dropdown的index:20,notification的index:10 (#4034)

* chore: 将默认组件加入排序

* chore: 更改slot命名方式支持header左侧自定义插槽,命名方式:header-right-n,header-left-n,具体位置看README

---------

Co-authored-by: likui628 <90845831+likui628@users.noreply.github.com>
This commit is contained in:
jinmao88
2024-08-06 22:32:51 +08:00
committed by GitHub
parent e27be2d47a
commit 84c8fb0ecc
3 changed files with 104 additions and 16 deletions

View File

@@ -0,0 +1,7 @@
## layout
### header
- 支持N个自定义插槽命名方式header-right-nheader-left-n
- header-left-n 排序方式1-5 ,breadcrumb6-x
- header-right-n 排序方式1-4global-search6-9theme-toggle11-14language-toggle16-19fullscreen21-24notification26-29user-dropdown30-x