feat: Use Twemoji in emoji picker (#1351)
parent
55e8c6b6f7
commit
5d94eabff6
|
@ -19,7 +19,7 @@ async function openEmojiPicker() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const promise = import('@emoji-mart/data').then(r => r.default)
|
const promise = import('@emoji-mart/data/sets/14/twitter.json').then(r => r.default)
|
||||||
const { Picker } = await import('emoji-mart')
|
const { Picker } = await import('emoji-mart')
|
||||||
picker = new Picker({
|
picker = new Picker({
|
||||||
data: () => promise,
|
data: () => promise,
|
||||||
|
@ -28,6 +28,7 @@ async function openEmojiPicker() {
|
||||||
? emit('select', native)
|
? emit('select', native)
|
||||||
: emit('selectCustom', { src, alt, 'data-emoji-id': name })
|
: emit('selectCustom', { src, alt, 'data-emoji-id': name })
|
||||||
},
|
},
|
||||||
|
set: 'twitter',
|
||||||
theme: colorMode.value,
|
theme: colorMode.value,
|
||||||
custom: customEmojisData.value,
|
custom: customEmojisData.value,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue