2021-02-26 20:08:34 -08:00
|
|
|
<template>
|
2022-12-27 01:29:39 -08:00
|
|
|
<MkWindow ref="window"
|
2023-01-06 21:44:50 -08:00
|
|
|
:initial-width="300"
|
|
|
|
:initial-height="290"
|
|
|
|
:can-resize="true"
|
2021-02-26 20:08:34 -08:00
|
|
|
:mini="true"
|
|
|
|
:front="true"
|
2022-01-18 06:06:16 -08:00
|
|
|
@closed="emit('closed')"
|
2021-02-26 20:08:34 -08:00
|
|
|
>
|
2023-02-16 17:56:23 -08:00
|
|
|
<MkEmojiPicker :show-pinned="showPinned" :as-reaction-picker="asReactionPicker" as-window :class="$style.picker" @chosen="chosen"/>
|
2021-02-26 20:08:34 -08:00
|
|
|
</MkWindow>
|
|
|
|
</template>
|
|
|
|
|
2022-01-18 06:06:16 -08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2022-09-06 02:21:49 -07:00
|
|
|
import MkWindow from '@/components/MkWindow.vue';
|
2022-08-30 08:24:33 -07:00
|
|
|
import MkEmojiPicker from '@/components/MkEmojiPicker.vue';
|
2021-02-26 20:08:34 -08:00
|
|
|
|
2022-01-18 06:06:16 -08:00
|
|
|
withDefaults(defineProps<{
|
|
|
|
src?: HTMLElement;
|
|
|
|
showPinned?: boolean;
|
|
|
|
asReactionPicker?: boolean;
|
|
|
|
}>(), {
|
|
|
|
showPinned: true,
|
|
|
|
});
|
2021-02-26 20:08:34 -08:00
|
|
|
|
2022-01-18 06:06:16 -08:00
|
|
|
const emit = defineEmits<{
|
2022-05-07 01:00:05 -07:00
|
|
|
(ev: 'chosen', v: any): void;
|
|
|
|
(ev: 'closed'): void;
|
2022-01-18 06:06:16 -08:00
|
|
|
}>();
|
2021-02-26 20:08:34 -08:00
|
|
|
|
2022-01-18 06:06:16 -08:00
|
|
|
function chosen(emoji: any) {
|
|
|
|
emit('chosen', emoji);
|
|
|
|
}
|
2021-02-26 20:08:34 -08:00
|
|
|
</script>
|
|
|
|
|
2023-01-06 21:44:50 -08:00
|
|
|
<style lang="scss" module>
|
|
|
|
.picker {
|
|
|
|
height: 100%;
|
2021-02-26 20:08:34 -08:00
|
|
|
}
|
|
|
|
</style>
|