Skip to content
Snippets Groups Projects
Commit 6084b8d7 authored by Ina Martini's avatar Ina Martini
Browse files

refactor: change props

parent e96f187e
No related branches found
No related tags found
3 merge requests!66Final merge,!49Create spare component,!4Pipeline fix
......@@ -41,12 +41,25 @@
<script setup lang="ts">
import InteractiveSpare from '@/components/InteractiveSpare.vue'
import { defineProps, ref } from 'vue'
import { defineProps, ref, watchEffect } from 'vue'
import ModalComponent from "@/components/ModalComponent.vue";
const isModalOpen = ref(false)
defineProps(['speech', 'pngSize', 'direction', 'imageDirection'])
const props = defineProps({
speech: Array,
pngSize: Number,
direction: String,
imageDirection: String,
show: {
type: Boolean,
default: true,
required: false
}
})
watchEffect(() => {
isModalOpen.value = props.show
})
</script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment