This commit is contained in:
duan 2024-08-23 10:38:05 +08:00
parent dfc9667c90
commit 82624d49b5
1 changed files with 9 additions and 10 deletions

View File

@ -30,14 +30,13 @@
</el-button>
</div>
<div class="shop_list">
<div class="item_wrap" v-for="(item, index) in productIds" :key="item.id">
<div style="display: flex;align-items: center;margin-top: 6px;">
<div class="name">{{ item.name }}</div>
<el-input style="width: 120px;" v-model="item.num" placeholder='请填写数量'
@input="checkIfNum(item)"></el-input>
<el-button type="text" @click="productIds.splice(index, 1)"
style="margin-left: 20px;">删除</el-button>
</div>
<div class="item_wrap" style="display: flex;align-items: center;margin-top: 6px;"
v-for="(item, index) in productIds" :key="item.id">
<div class="name">{{ item.name }}</div>
<el-input style="width: 120px;" v-model="item.num" placeholder='请填写数量'
@input="checkIfNum(item)"></el-input>
<el-button type="text" @click="productIds.splice(index, 1)"
style="margin-left: 20px;">删除</el-button>
</div>
</div>
</el-form-item>
@ -176,8 +175,8 @@ export default {
</script>
<style scoped lang="scss">
.shop_list {
display: flex;
flex-wrap: wrap;
// display: flex;/
// flex-wrap: wrap;
.item_wrap {
$size: 80px;