fix: reference content rich component

This commit is contained in:
三咲智子 2022-11-25 15:57:39 +08:00
parent c475ed3857
commit 2f1c890623
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
2 changed files with 3 additions and 3 deletions

View file

@ -80,7 +80,7 @@ function getFieldNameIcon(fieldName: string) {
</div>
</div>
<div v-if="account.note">
<ContentRich text-4 text-gray :content="account.note" :emojis="account.emojis" />
<ContentRichSetup text-4 text-gray :content="account.note" :emojis="account.emojis" />
</div>
<div flex flex-wrap gap-4>
<div v-for="field in fields" :key="field.name" flex="~ gap-1" items-center>
@ -88,7 +88,7 @@ function getFieldNameIcon(fieldName: string) {
<div v-else op50 uppercase text-xs font-bold>
{{ field.name }} |
</div>
<ContentRich text-sm filter-saturate-0 :content="field.value" />
<ContentRichSetup text-sm filter-saturate-0 :content="field.value" />
</div>
</div>
<div flex gap-5>

View file

@ -7,7 +7,7 @@ defineOptions({
const props = defineProps<{
content: string
emojis: Emoji[]
emojis?: Emoji[]
}>()
const emojiObject = emojisArrayToObject(props.emojis || [])