[WIP] replace `semantic-modal` with `ui/Modal` component
This commit is contained in:
parent
c369f3168a
commit
e0fb7f0fc4
|
@ -1,21 +1,10 @@
|
|||
<script setup lang="ts">
|
||||
import SemanticModal from '~/components/semantic/Modal.vue'
|
||||
import { useVModel } from '@vueuse/core'
|
||||
import Modal from '~/components/ui/Modal.vue'
|
||||
import { computed } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
interface Events {
|
||||
(e: 'update:show', show: boolean): void
|
||||
}
|
||||
|
||||
interface Props {
|
||||
show: boolean
|
||||
}
|
||||
|
||||
const emit = defineEmits<Events>()
|
||||
const props = defineProps<Props>()
|
||||
|
||||
const showRef = useVModel(props, 'show', emit)
|
||||
const model = defineModel<boolean>()
|
||||
|
||||
const { t } = useI18n()
|
||||
const general = computed(() => [
|
||||
|
@ -108,10 +97,9 @@ const player = computed(() => [
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<semantic-modal v-model:show="showRef">
|
||||
<header class="header">
|
||||
{{ t('components.ShortcutsModal.header.modal') }}
|
||||
</header>
|
||||
<Modal
|
||||
:title="t('components.ShortcutsModal.header.modal')"
|
||||
v-model="model">
|
||||
<section class="scrolling content">
|
||||
<div class="ui stackable two column grid">
|
||||
<div class="column">
|
||||
|
@ -157,5 +145,5 @@ const player = computed(() => [
|
|||
{{ t('components.ShortcutsModal.button.close') }}
|
||||
</button>
|
||||
</footer>
|
||||
</semantic-modal>
|
||||
</Modal>
|
||||
</template>
|
||||
|
|
|
@ -306,6 +306,7 @@ onMounted(() => {
|
|||
</div>
|
||||
</Modal>
|
||||
<Modal
|
||||
:title="labels.theme"
|
||||
ref="themeModal"
|
||||
v-model:show="isThemeModalOpen"
|
||||
:fullscreen="false"
|
||||
|
|
Loading…
Reference in New Issue