mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
47 lines
816 B
Vue
47 lines
816 B
Vue
<template>
|
|
<XModalWindow
|
|
ref="dialog"
|
|
:width="600"
|
|
@close="dialog?.close()"
|
|
@closed="$emit('closed')"
|
|
>
|
|
<template #header>{{ i18n.ts._mfm.cheatSheet }}</template>
|
|
|
|
<div class="_monolithic_">
|
|
<div class="_section">
|
|
<XCheatSheet/>
|
|
</div>
|
|
</div>
|
|
</XModalWindow>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import XModalWindow from '@/components/MkModalWindow.vue';
|
|
import XCheatSheet from '@/pages/mfm-cheat-sheet.vue';
|
|
import { i18n } from '@/i18n';
|
|
|
|
const emit = defineEmits<{
|
|
(ev: 'done'): void;
|
|
(ev: 'closed'): void;
|
|
}>();
|
|
|
|
const dialog = $ref<InstanceType<typeof XModalWindow>>();
|
|
|
|
function close(res) {
|
|
dialog.close();
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.fade-enter-active,
|
|
.fade-leave-active {
|
|
transition: opacity 0.2s ease-in-out;
|
|
}
|
|
.fade-enter-from,
|
|
.fade-leave-to {
|
|
opacity: 0;
|
|
}
|
|
|
|
</style>
|
|
|