相册编辑

This commit is contained in:
yanran200730
2022-05-24 17:52:33 +08:00
parent 85e6f9db6b
commit c0f62e94f7
6 changed files with 415 additions and 6 deletions

View File

@@ -22,7 +22,7 @@
<h2>水印库</h2>
</div>
<div class="watermark-list" v-if="currIndex === 1">
<div class="item" @click="checkd(item.id)" v-for="(item, index) in list" :key="index" :class="[checkedList.includes(item.id) ? 'active' : '']">
<div class="item" @click="checked(item.id)" v-for="(item, index) in list" :key="index" :class="[checkedList.includes(item.id) ? 'active' : '']">
<image class="checked" v-if="checkedList.includes(item.id)" src="./images/xuanzhong.png" />
<image class="watermark" :src="item.thum" mode="aspectFill" />
</div>
@@ -81,7 +81,7 @@
})
},
checkd (type) {
checked (type) {
const i = this.checkedList.indexOf(type)
if (i > -1) {
this.checkedList.splice(i, 1)