Skip to content

Commit

Permalink
basic document show form
Browse files Browse the repository at this point in the history
  • Loading branch information
fmatthies committed Dec 13, 2023
1 parent d8e751f commit 5c812da
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/components/Documents/DocumentForm.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<template>
<q-dialog :model-value="show" persistent>
<q-card>
<q-card-section>
<div class="text-h6">
{{ modelValue.name }}
</div>
</q-card-section>
<q-card-section>
<div class="q-pa-lg">
{{ modelValue.highlightedText }}
</div>
</q-card-section>
<q-btn
class="q-ma-sm"
@click="$emit('update:show', $event)"
>
{{ t('close') }}
</q-btn>
</q-card>
</q-dialog>
</template>

<script lang="ts">
import {defineComponent} from 'vue'
import {Document} from '@onto-med/top-api';
import {useI18n} from 'vue-i18n';
export default defineComponent({
props: {
modelValue: {
type: Object as () => Document,
required: true
},
show: Boolean
},
emits: ['update:show'],
setup(props, { emit }) {
const { t } = useI18n()
return {
t,
}
}
})
</script>

<style scoped lang="sass">
</style>

0 comments on commit 5c812da

Please sign in to comment.