Browse Source

fix(nc-gui): runtime directive warnings in EmojiPicker.vue

pull/6954/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
5f837e4b33
  1. 4
      packages/nc-gui/components/general/EmojiPicker.vue

4
packages/nc-gui/components/general/EmojiPicker.vue

@ -2,7 +2,6 @@
import data from 'emoji-mart-vue-fast/data/apple.json' import data from 'emoji-mart-vue-fast/data/apple.json'
import 'emoji-mart-vue-fast/css/emoji-mart.css' import 'emoji-mart-vue-fast/css/emoji-mart.css'
import { Icon } from '@iconify/vue' import { Icon } from '@iconify/vue'
import { EmojiIndex, Picker } from 'emoji-mart-vue-fast/src' import { EmojiIndex, Picker } from 'emoji-mart-vue-fast/src'
const props = defineProps<{ const props = defineProps<{
@ -21,6 +20,7 @@ const clearable = computed(() => {
}) })
const isOpen = ref(false) const isOpen = ref(false)
const emojiIndex = new EmojiIndex(data, { const emojiIndex = new EmojiIndex(data, {
emojisToShowFilter: (emoji: any) => { emojisToShowFilter: (emoji: any) => {
if (Number(emoji.added_in) >= 14) { if (Number(emoji.added_in) >= 14) {
@ -78,6 +78,7 @@ const showClearButton = computed(() => {
</script> </script>
<template> <template>
<div>
<a-dropdown v-model:visible="isOpen" :trigger="['click']" :disabled="readonly"> <a-dropdown v-model:visible="isOpen" :trigger="['click']" :disabled="readonly">
<div <div
class="flex flex-row justify-center items-center select-none rounded-md nc-emoji" class="flex flex-row justify-center items-center select-none rounded-md nc-emoji"
@ -132,6 +133,7 @@ const showClearButton = computed(() => {
</div> </div>
</template> </template>
</a-dropdown> </a-dropdown>
</div>
</template> </template>
<style lang="scss"> <style lang="scss">

Loading…
Cancel
Save