絵文字とフォルダの表示順序入れ替え
This commit is contained in:
parent
84ed25a1fd
commit
b47b6205f4
|
|
@ -29,19 +29,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<header class="_acrylic" @click="shown = !shown">
|
<header class="_acrylic" @click="shown = !shown">
|
||||||
<i class="toggle ti-fw" :class="shown ? 'ti ti-chevron-down' : 'ti ti-chevron-up'"></i> <slot></slot> (<i class="ti ti-folder ti-fw"></i>:{{ customEmojiTree.length }} <i class="ti ti-icons ti-fw"></i>:{{ emojis.length }})
|
<i class="toggle ti-fw" :class="shown ? 'ti ti-chevron-down' : 'ti ti-chevron-up'"></i> <slot></slot> (<i class="ti ti-folder ti-fw"></i>:{{ customEmojiTree.length }} <i class="ti ti-icons ti-fw"></i>:{{ emojis.length }})
|
||||||
</header>
|
</header>
|
||||||
<div v-if="shown" class="body">
|
|
||||||
<button
|
|
||||||
v-for="emoji in emojis"
|
|
||||||
:key="emoji"
|
|
||||||
:data-emoji="emoji"
|
|
||||||
class="_button item"
|
|
||||||
@pointerenter="computeButtonTitle"
|
|
||||||
@click="emit('chosen', emoji, $event)"
|
|
||||||
>
|
|
||||||
<MkCustomEmoji v-if="emoji[0] === ':'" class="emoji" :name="emoji" :normal="true"/>
|
|
||||||
<MkEmoji v-else class="emoji" :emoji="emoji" :normal="true"/>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div v-if="shown" style="padding-left: 9px;">
|
<div v-if="shown" style="padding-left: 9px;">
|
||||||
<MkEmojiPickerSection
|
<MkEmojiPickerSection
|
||||||
v-for="child in customEmojiTree"
|
v-for="child in customEmojiTree"
|
||||||
|
|
@ -55,6 +42,19 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
{{ child.value || i18n.ts.other }}
|
{{ child.value || i18n.ts.other }}
|
||||||
</MkEmojiPickerSection>
|
</MkEmojiPickerSection>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="shown" class="body">
|
||||||
|
<button
|
||||||
|
v-for="emoji in emojis"
|
||||||
|
:key="emoji"
|
||||||
|
:data-emoji="emoji"
|
||||||
|
class="_button item"
|
||||||
|
@pointerenter="computeButtonTitle"
|
||||||
|
@click="emit('chosen', emoji, $event)"
|
||||||
|
>
|
||||||
|
<MkCustomEmoji v-if="emoji[0] === ':'" class="emoji" :name="emoji" :normal="true"/>
|
||||||
|
<MkEmoji v-else class="emoji" :emoji="emoji" :normal="true"/>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue