2023-07-27 08:31:52 +03:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2021-02-27 06:08:34 +02:00
|
|
|
<template>
|
2023-05-19 07:58:09 +03:00
|
|
|
<MkWindow
|
|
|
|
ref="window"
|
|
|
|
:initialWidth="300"
|
|
|
|
:initialHeight="290"
|
|
|
|
:canResize="true"
|
2021-02-27 06:08:34 +02:00
|
|
|
:mini="true"
|
|
|
|
:front="true"
|
2022-01-18 16:06:16 +02:00
|
|
|
@closed="emit('closed')"
|
2021-02-27 06:08:34 +02:00
|
|
|
>
|
2023-05-19 07:58:09 +03:00
|
|
|
<MkEmojiPicker :showPinned="showPinned" :asReactionPicker="asReactionPicker" asWindow :class="$style.picker" @chosen="chosen"/>
|
2021-02-27 06:08:34 +02:00
|
|
|
</MkWindow>
|
|
|
|
</template>
|
|
|
|
|
2022-01-18 16:06:16 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2022-09-06 12:21:49 +03:00
|
|
|
import MkWindow from '@/components/MkWindow.vue';
|
2022-08-30 18:24:33 +03:00
|
|
|
import MkEmojiPicker from '@/components/MkEmojiPicker.vue';
|
2021-02-27 06:08:34 +02:00
|
|
|
|
2022-01-18 16:06:16 +02:00
|
|
|
withDefaults(defineProps<{
|
|
|
|
src?: HTMLElement;
|
|
|
|
showPinned?: boolean;
|
|
|
|
asReactionPicker?: boolean;
|
|
|
|
}>(), {
|
|
|
|
showPinned: true,
|
|
|
|
});
|
2021-02-27 06:08:34 +02:00
|
|
|
|
2022-01-18 16:06:16 +02:00
|
|
|
const emit = defineEmits<{
|
2022-05-07 11:00:05 +03:00
|
|
|
(ev: 'chosen', v: any): void;
|
|
|
|
(ev: 'closed'): void;
|
2022-01-18 16:06:16 +02:00
|
|
|
}>();
|
2021-02-27 06:08:34 +02:00
|
|
|
|
2022-01-18 16:06:16 +02:00
|
|
|
function chosen(emoji: any) {
|
|
|
|
emit('chosen', emoji);
|
|
|
|
}
|
2021-02-27 06:08:34 +02:00
|
|
|
</script>
|
|
|
|
|
2023-01-07 07:44:50 +02:00
|
|
|
<style lang="scss" module>
|
|
|
|
.picker {
|
|
|
|
height: 100%;
|
2021-02-27 06:08:34 +02:00
|
|
|
}
|
|
|
|
</style>
|