From 481fdaa450ea8cbc16717b0ec37541eb88348ed4 Mon Sep 17 00:00:00 2001 From: pan Date: Mon, 7 Sep 2026 14:04:49 +0800 Subject: [PATCH] feat(home-page): add hero sorting function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增首页工具栏排序控件,支持按职业/星级排序及升降序切换 2. 实现排序逻辑,保留原始数组下标保证编辑定位准确 3. 更新样式文件,添加排序控件组的布局样式 --- put/web/src/App.vue | 37 +++++++++++++++++++++++++++++++++++-- put/web/src/style.css | 4 +++- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/put/web/src/App.vue b/put/web/src/App.vue index eff28cad..e0b8d634 100644 --- a/put/web/src/App.vue +++ b/put/web/src/App.vue @@ -13,11 +13,22 @@
共 {{ heroes.length }} 个英雄 +
+ + 默认 + 按职业 + 按星级 + + + 升序 + 降序 + +
+ 新建英雄
暂无英雄,点击右上角「新建英雄」开始配置
-
+
{{ h.uuid }} {{ h.name || '(未命名)' }} @@ -178,7 +189,7 @@