为图标添加提示

This commit is contained in:
2024-04-16 19:25:19 +08:00
parent ae1a80869c
commit 6387168d3d
2 changed files with 5 additions and 3 deletions

View File

@ -11,16 +11,19 @@
div(v-html="markdown(item.data)") div(v-html="markdown(item.data)")
.options .options
i.fas.fa-eraser( i.fas.fa-eraser(
v-if="account.gid === 1 || account.uid === item.uid", v-if="account.gid === 1 || account.uid === item.uid"
@click="remove(item._id)" @click="remove(item._id)"
title="删除"
) )
i.fas.fa-marker( i.fas.fa-marker(
v-if="account.gid === 1 || account.uid === item.uid", v-if="account.gid === 1 || account.uid === item.uid"
@click="remove(item._id)" @click="remove(item._id)"
title="编辑"
) )
i.fas.fa-heart( i.fas.fa-heart(
:class="{ like: item.like }", :class="{ like: item.like }",
@click="like(item._id, item.like)" @click="like(item._id, item.like)"
title="点赞"
) )
.post-none(v-else) 没有评论~ .post-none(v-else) 没有评论~
</template> </template>

View File

@ -6,7 +6,6 @@
span.fa.fa-edit.avatar-edit span.fa.fa-edit.avatar-edit
.name {{ account.name }} .name {{ account.name }}
input#img_add(type="file", accept="image/*", @change="upload($event)") input#img_add(type="file", accept="image/*", @change="upload($event)")
// multiple="multiple",
input#bg(type="file", accept="image/*", @change="upload_bg($event)") input#bg(type="file", accept="image/*", @change="upload_bg($event)")
.content.main-width .content.main-width
p account p account