refactor(hero): 移除无用的英雄操作按钮与相关样式
1. 从App.vue中删除英雄列表的修改和删除操作按钮 2. 移除全局和移动端适配下的.row-actions相关样式代码 3. 清理heroes.json中多余的技能配置字段
This commit is contained in:
@@ -46,10 +46,6 @@
|
||||
<span v-if="bonusCount(h)" class="trigger-chip">加成: ×{{ bonusCount(h) }}</span>
|
||||
</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>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -151,9 +151,6 @@ body {
|
||||
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; }
|
||||
|
||||
@@ -227,7 +224,6 @@ body {
|
||||
.hero-row { gap: 4px 10px; }
|
||||
.row-main { min-width: 0; }
|
||||
.row-skills { min-width: 100%; }
|
||||
.row-actions { margin-left: 0; }
|
||||
.editor-dialog { width: 98% !important; }
|
||||
.editor-dialog .el-dialog__body { max-height: 76vh; padding: 6px 10px; }
|
||||
.form-grid { grid-template-columns: 1fr; }
|
||||
|
||||
Reference in New Issue
Block a user