2023-02-01 19:45:32 +01:00
|
|
|
<template>
|
2023-04-08 02:01:42 +02:00
|
|
|
<XModalWindow
|
|
|
|
ref="dialog"
|
|
|
|
:width="600"
|
|
|
|
@close="dialog?.close()"
|
|
|
|
@closed="$emit('closed')"
|
|
|
|
>
|
|
|
|
<template #header>{{ i18n.ts._mfm.cheatSheet }}</template>
|
2023-06-03 04:54:23 +02:00
|
|
|
<XCheatSheet :popup="true" style="background: var(--bg)"/>
|
2023-04-08 02:01:42 +02:00
|
|
|
</XModalWindow>
|
2023-02-01 19:45:32 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2023-04-08 02:01:42 +02:00
|
|
|
import XModalWindow from "@/components/MkModalWindow.vue";
|
|
|
|
import XCheatSheet from "@/pages/mfm-cheat-sheet.vue";
|
|
|
|
import { i18n } from "@/i18n";
|
2023-02-01 19:45:32 +01:00
|
|
|
|
|
|
|
const emit = defineEmits<{
|
2023-04-08 02:01:42 +02:00
|
|
|
(ev: "done"): void;
|
|
|
|
(ev: "closed"): void;
|
2023-02-01 19:45:32 +01:00
|
|
|
}>();
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2023-06-03 04:54:23 +02:00
|
|
|
|
2023-02-01 19:45:32 +01:00
|
|
|
</style>
|