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-n,header-left-n
- header-left-n ,排序方式:1-5 ,breadcrumb,6-x
- header-right-n ,排序方式:1-4,global-search,6-9,theme-toggle,11-14,language-toggle,16-19,fullscreen,21-24,notification,26-29,user-dropdown,30-x