refactor: switch to setup-sfc

This commit is contained in:
三咲智子 2022-11-25 15:12:49 +08:00
parent 6ca34cab85
commit bbc8ed5307
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
10 changed files with 55 additions and 41 deletions

View file

@ -59,7 +59,7 @@ function getFieldNameIcon(fieldName: string) {
</NuxtLink>
</div>
<div flex flex-col>
<ContentRich font-bold text-2xl :content="getDisplayName(account)" :emojis="account.emojis" />
<ContentRichSetup font-bold text-2xl :content="getDisplayName(account)" :emojis="account.emojis" />
<p op50>
{{ getAccountHandle(account) }}
</p>

View file

@ -18,7 +18,7 @@ const accountHandle = $(useAccountHandle(account, fullServer))
</NuxtLink>
</div>
<NuxtLink flex flex-col :to="link ? getAccountPath(account) : null">
<ContentRich font-bold :content="getDisplayName(account)" :emojis="account.emojis" />
<ContentRichSetup font-bold :content="getDisplayName(account)" :emojis="account.emojis" />
<p op35 text-sm>
{{ accountHandle }}
</p>

View file

@ -10,6 +10,6 @@ const { link = true } = defineProps<{
<template>
<NuxtLink :to="link ? getAccountPath(account) : undefined" flex gap-1 items-center>
<AccountAvatar :account="account" w-5 h-5 />
<ContentRich :content="getDisplayName(account)" :emojis="account.emojis" />
<ContentRichSetup :content="getDisplayName(account)" :emojis="account.emojis" />
</NuxtLink>
</template>

View file

@ -8,6 +8,6 @@ defineProps<{
<template>
<NuxtLink :to="getAccountPath(account)">
<ContentRich font-bold :content="getDisplayName(account)" :emojis="account.emojis" />
<ContentRichSetup font-bold :content="getDisplayName(account)" :emojis="account.emojis" />
</NuxtLink>
</template>