Skip to content

Commit

Permalink
Merge pull request #986 from pxgo/master
Browse files Browse the repository at this point in the history
优化
  • Loading branch information
pxgo authored Sep 27, 2024
2 parents ab33ea1 + 8b925d6 commit 82bb437
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/lib/vue/EmojiSelector.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="pug">
draggable-dialog(title="Emoji 表情" width="50rem" height='35rem' heightXS='70%' ref="draggableDialog")
.emoji-selector-container
.emoji-selector-container(v-if="initialized")
.emoji-selector-nav-container
.emoji-selector-nav-item(
v-for="item in emojiGroups"
Expand Down Expand Up @@ -89,6 +89,7 @@
export default {
data: () => ({
initialized: false,
callback: null,
emoji: [],
multipleSelection: true,
Expand Down Expand Up @@ -160,6 +161,7 @@
this.$refs.draggableDialog.close();
},
open(callback) {
this.initialized = true;
this.initMultipleSelection();
const self = this;
self.callback = callback;
Expand Down

0 comments on commit 82bb437

Please sign in to comment.