mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-20 07:49:57 +00:00
parent
7182d69a61
commit
9687330dd4
1 changed files with 1 additions and 3 deletions
|
@ -10,10 +10,8 @@ const props = defineProps<{
|
||||||
emojis?: Emoji[]
|
emojis?: Emoji[]
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const emojiObject = emojisArrayToObject(props.emojis || [])
|
|
||||||
|
|
||||||
export default () => h(
|
export default () => h(
|
||||||
'span',
|
'span',
|
||||||
{ class: 'content-rich' },
|
{ class: 'content-rich' },
|
||||||
contentToVNode(props.content, emojiObject),
|
contentToVNode(props.content, emojisArrayToObject(props.emojis || [])),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue