Skip to content

Commit de0b5ec

Browse files
author
Kerwin
committed
chore: show description (Close #273)
1 parent d1b3d83 commit de0b5ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/common/UserAvatar/index.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ onMounted(async () => {
4444
<h2 v-if="userInfo.name" class="overflow-hidden font-bold text-md text-ellipsis whitespace-nowrap">
4545
{{ userInfo.name }}
4646
</h2>
47+
<p v-if="userInfo.name" class="overflow-hidden text-xs text-gray-500 text-ellipsis whitespace-nowrap">
48+
<span
49+
v-if="isString(userInfo.description) && userInfo.description !== ''"
50+
v-html="userInfo.description"
51+
/>
52+
</p>
4753
<NButton
4854
v-else tag="a" text
4955
@click="showPermission = true"

0 commit comments

Comments
 (0)