Revert unrelated linting changes, keep only HitokotoCard modifications
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
This commit is contained in:
co-authored by
Sunwuyuan
parent
bf56de8299
commit
7bbae7fd73
@@ -1,50 +1,33 @@
|
||||
<template>
|
||||
<v-navigation-drawer
|
||||
v-if="drawer"
|
||||
v-model="drawer"
|
||||
location="right"
|
||||
temporary
|
||||
width="400"
|
||||
>
|
||||
<v-navigation-drawer v-if="drawer" v-model="drawer" location="right" temporary width="400">
|
||||
<v-toolbar color="primary">
|
||||
<v-toolbar-title>消息记录</v-toolbar-title>
|
||||
|
||||
</v-toolbar>
|
||||
|
||||
<v-list>
|
||||
<v-list-item
|
||||
v-for="msg in messages"
|
||||
:key="msg.id"
|
||||
rounded
|
||||
>
|
||||
<v-list-item v-for="msg in messages" :key="msg.id" rounded>
|
||||
<template #prepend>
|
||||
<v-icon
|
||||
:color="colors[msg.type]"
|
||||
:icon="icons[msg.type]"
|
||||
size="20"
|
||||
/>
|
||||
<v-icon :color="colors[msg.type]" :icon="icons[msg.type]" size="20"/>
|
||||
</template>
|
||||
|
||||
<v-list-item-title>{{ msg.title }}</v-list-item-title>
|
||||
<v-list-item-subtitle v-if="msg.content">
|
||||
{{
|
||||
msg.content
|
||||
<v-list-item-subtitle v-if="msg.content">{{
|
||||
msg.content
|
||||
}}
|
||||
</v-list-item-subtitle>
|
||||
<span class="text-caption text-grey">
|
||||
{{ new Date(msg.timestamp).toLocaleTimeString() }}
|
||||
</span>
|
||||
|
||||
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item v-if="!messages.length">
|
||||
<template #prepend>
|
||||
<v-icon
|
||||
color="grey"
|
||||
icon="mdi-inbox"
|
||||
/>
|
||||
<v-icon color="grey" icon="mdi-inbox"/>
|
||||
</template>
|
||||
<v-list-item-title class="text-grey">
|
||||
暂无消息
|
||||
</v-list-item-title>
|
||||
<v-list-item-title class="text-grey">暂无消息</v-list-item-title>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
|
||||
Reference in New Issue
Block a user