refactor(hero): 移除无用的英雄操作按钮与相关样式

1. 从App.vue中删除英雄列表的修改和删除操作按钮
2. 移除全局和移动端适配下的.row-actions相关样式代码
3. 清理heroes.json中多余的技能配置字段
This commit is contained in:
pan
2026-09-04 14:52:14 +08:00
parent 16d44e3f5e
commit c48d497bd8
3 changed files with 5 additions and 16 deletions

View File

@@ -43,8 +43,7 @@
"cd": 8, "cd": 8,
"cdExpr": null, "cdExpr": null,
"overrides": { "overrides": {
"ap": 30, "ap": 30
"summon_count": 1
}, },
"desc": "{target}获得生命最大值{ap}%的护盾", "desc": "{target}获得生命最大值{ap}%的护盾",
"lv_entries": [ "lv_entries": [
@@ -52,19 +51,17 @@
"lv": 8, "lv": 8,
"s_lv": 2, "s_lv": 2,
"overrides": { "overrides": {
"ap": 60, "ap": 60
"summon_count": 1
}, },
"desc": "" "desc": "{target}获得生命最大值{ap}%的护盾"
}, },
{ {
"lv": 16, "lv": 16,
"s_lv": 3, "s_lv": 3,
"overrides": { "overrides": {
"ap": 120, "ap": 120
"summon_count": 2
}, },
"desc": "" "desc": "{target}获得生命最大值{ap}%的护盾"
} }
] ]
} }

View File

@@ -46,10 +46,6 @@
<span v-if="bonusCount(h)" class="trigger-chip">加成: ×{{ bonusCount(h) }}</span> <span v-if="bonusCount(h)" class="trigger-chip">加成: ×{{ bonusCount(h) }}</span>
</div> </div>
<div class="row-comment" v-if="h.comment || h.info">{{ h.comment || h.info }}</div> <div class="row-comment" v-if="h.comment || h.info">{{ h.comment || h.info }}</div>
<div class="row-actions" @click.stop>
<el-button size="small" type="primary" @click="openEdit(i)">修改</el-button>
<el-button size="small" type="danger" plain @click="removeHero(i)">删除</el-button>
</div>
</div> </div>
</section> </section>

View File

@@ -151,9 +151,6 @@ body {
line-height: 18px; line-height: 18px;
} }
/* 行尾操作按钮 */
.row-actions { display: flex; gap: 6px; margin-left: auto; }
/* 编辑弹窗:内容区内部滚动 */ /* 编辑弹窗:内容区内部滚动 */
.editor-dialog .el-dialog__body { max-height: 78vh; overflow-y: auto; padding: 8px 16px; } .editor-dialog .el-dialog__body { max-height: 78vh; overflow-y: auto; padding: 8px 16px; }
@@ -227,7 +224,6 @@ body {
.hero-row { gap: 4px 10px; } .hero-row { gap: 4px 10px; }
.row-main { min-width: 0; } .row-main { min-width: 0; }
.row-skills { min-width: 100%; } .row-skills { min-width: 100%; }
.row-actions { margin-left: 0; }
.editor-dialog { width: 98% !important; } .editor-dialog { width: 98% !important; }
.editor-dialog .el-dialog__body { max-height: 76vh; padding: 6px 10px; } .editor-dialog .el-dialog__body { max-height: 76vh; padding: 6px 10px; }
.form-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; }