mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
26 lines
555 B
Vue
26 lines
555 B
Vue
<script setup lang="ts">
|
|
import PopupElement from '../popups/PopupElement.vue';
|
|
|
|
const show = defineModel<boolean>();
|
|
const props = defineProps<{
|
|
'title': string;
|
|
'message'?: string;
|
|
}>();
|
|
|
|
const close = () => {
|
|
show.value = false;
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<PopupElement v-model="show">
|
|
<h2>{{ props.title }}</h2>
|
|
<p>{{ props.message }}</p>
|
|
<button @click="close">
|
|
Ok
|
|
</button>
|
|
</PopupElement>
|
|
</div>
|
|
</template>
|