Commit 8689f1b0 by pangchong

feat: 优化

parent 218865ba
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</a-collapse> </a-collapse>
</a-tab-pane> </a-tab-pane>
<a-tab-pane title="群组列表" v-if="showGroup"> <a-tab-pane title="群组列表" v-if="showGroup">
<div class="px-4">我是群组列表</div> <div class="px-4"></div>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
</a-spin> </a-spin>
......
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
<template #initiator="{ record }"> <template #initiator="{ record }">
<div class="flex items-center"> <div class="flex items-center">
<global-avatar :size="32" :icon-size="12"></global-avatar> <global-avatar :size="32" :icon-size="12"></global-avatar>
<span class="ml-2">{{ getInitiatorName(record) }}</span> <a-tooltip :content="getParticipantsName(record.userList)">
<span class="ml-2 truncate max-w-20">{{ getInitiatorName(record) }}</span>
</a-tooltip>
</div> </div>
</template> </template>
<template #participants="{ record }"> <template #participants="{ record }">
...@@ -124,7 +126,7 @@ const { ...@@ -124,7 +126,7 @@ const {
}, },
initialPage: 1, // 初始页码,默认为1 initialPage: 1, // 初始页码,默认为1
initialPageSize: 10, // 初始每页数据条数,默认为10 initialPageSize: 10, // 初始每页数据条数,默认为10
debounce: [800], debounce: 500,
abortLast: true, abortLast: true,
total: (res) => parseInt(res.data.total), total: (res) => parseInt(res.data.total),
data: (res) => { data: (res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment