修改添加按钮位置

This commit is contained in:
zhangsir
2024-02-27 08:37:30 +08:00
parent 636773169c
commit 43568ae338
2 changed files with 5 additions and 5 deletions

View File

@@ -186,7 +186,7 @@
</div>
<div class="teacher_input select" style="display: flex; flex-wrap: wrap;width: 74.5%">
<div v-for="(item, index) in formData.offteachers"
:key="index" style="display: flex;margin-bottom: 10px;width: 100%;">
:key="index" style="display: flex;margin-bottom: 10px;width: 100%;">
<ProjectManager
v-model:value="item.teacherId"
v-model:name="item.teacherName"
@@ -195,12 +195,11 @@
<a-input-number :min="0" @change="inputWeightChange(index)" v-model:value="item.weight" placeholder="%"/>
<span style="margin-top: 10px;width: 34px;">权重</span>
<div style="display: flex;">
<a-button v-if="index===0" shape="circle" class="btn-circle btn-add" @click="inputAdd">+</a-button>
<a-button v-else shape="circle" class="btn-circle btn-add" @click="inputAdd"></a-button>
<!-- <a-button v-if="index===0" shape="circle" class="btn-circle btn-add" @click="inputAdd">+</a-button> -->
<a-button shape="circle" class="btn-circle" @click="inputRemove(index)" :disabled="formData.offteachers.length == 1"><template #icon><delete-outlined class="custom-icon"/></template></a-button>
</div>
</div>
<a-button shape="circle" class="btn-circle btn-add" @click="inputAdd">+</a-button>
</div>
</div>
<div class="cstm_items">

View File

@@ -1041,10 +1041,11 @@
<a-input-number :min="0" @change="inputWeightChange(index)" v-model:value="item.weight" placeholder="%"/>
<span style="margin-top: 10px;width: 34px;">权重</span>
<div style="display: flex;">
<a-button v-if="index===0" shape="circle" class="btn-circle btn-add" @click="inputAdd">+</a-button>
<!-- <a-button v-if="index===0" shape="circle" class="btn-circle btn-add" @click="inputAdd">+</a-button> -->
<a-button shape="circle" class="btn-circle" @click="inputRemove(index)" :disabled="offteachers.length == 1"><delete-outlined class="custom-icon"/></a-button>
</div>
</div>
<a-button shape="circle" class="btn-circle btn-add" @click="inputAdd">+</a-button>
</div>
</div>
<div class="cstm_items">