mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 22:26:43 -06:00
41 lines
822 B
Vue
41 lines
822 B
Vue
<template>
|
|
<MkWindow ref="window"
|
|
:initial-width="300"
|
|
:initial-height="290"
|
|
:can-resize="true"
|
|
:mini="true"
|
|
:front="true"
|
|
@closed="emit('closed')"
|
|
>
|
|
<MkEmojiPicker :show-pinned="showPinned" :as-reaction-picker="asReactionPicker" as-window @chosen="chosen" :class="$style.picker"/>
|
|
</MkWindow>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { } from 'vue';
|
|
import MkWindow from '@/components/MkWindow.vue';
|
|
import MkEmojiPicker from '@/components/MkEmojiPicker.vue';
|
|
|
|
withDefaults(defineProps<{
|
|
src?: HTMLElement;
|
|
showPinned?: boolean;
|
|
asReactionPicker?: boolean;
|
|
}>(), {
|
|
showPinned: true,
|
|
});
|
|
|
|
const emit = defineEmits<{
|
|
(ev: 'chosen', v: any): void;
|
|
(ev: 'closed'): void;
|
|
}>();
|
|
|
|
function chosen(emoji: any) {
|
|
emit('chosen', emoji);
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.picker {
|
|
height: 100%;
|
|
}
|
|
</style>
|