feat(home-page): add hero sorting function
1. 新增首页工具栏排序控件,支持按职业/星级排序及升降序切换 2. 实现排序逻辑,保留原始数组下标保证编辑定位准确 3. 更新样式文件,添加排序控件组的布局样式
This commit is contained in:
@@ -60,7 +60,7 @@ body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 首页工具栏:计数 + 新建入口 */
|
||||
/* 首页工具栏:计数 + 排序 + 新建入口 */
|
||||
.home-toolbar {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
@@ -71,6 +71,8 @@ body {
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
/* 排序控件组:维度 + 方向 */
|
||||
.toolbar-sort { display: flex; align-items: center; gap: 8px; }
|
||||
|
||||
/* 首页:一行一个英雄的列表布局 */
|
||||
.hero-rows {
|
||||
|
||||
Reference in New Issue
Block a user