@3cr/viewer-browser 0.0.120 → 0.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
demoPatientSubtitles,
|
|
5
|
+
demoPatientTitle,
|
|
6
|
+
openUrl,
|
|
7
|
+
} from "@/demo/options";
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
modal: boolean;
|
|
11
|
+
isModalOpen: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const emit = defineEmits<{
|
|
15
|
+
"update:modal": [value: boolean];
|
|
16
|
+
}>();
|
|
17
|
+
|
|
18
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
19
|
+
modal: false,
|
|
20
|
+
isModalOpen: true,
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const modalState = computed({
|
|
24
|
+
get() {
|
|
25
|
+
return props.modal;
|
|
26
|
+
},
|
|
27
|
+
set(value) {
|
|
28
|
+
emit("update:modal", value);
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<v-dialog v-model:model-value="modalState">
|
|
35
|
+
<v-card
|
|
36
|
+
class="pa-1 ma-auto position-relative motif-background"
|
|
37
|
+
theme="dark"
|
|
38
|
+
max-width="680"
|
|
39
|
+
>
|
|
40
|
+
<v-card-title>{{ demoPatientTitle }}</v-card-title>
|
|
41
|
+
<v-card-text v-for="subtitle in demoPatientSubtitles" :key="subtitle"
|
|
42
|
+
>{{ subtitle }}
|
|
43
|
+
</v-card-text>
|
|
44
|
+
<v-card-actions>
|
|
45
|
+
<v-btn
|
|
46
|
+
color="error"
|
|
47
|
+
@click="modalState = false"
|
|
48
|
+
:disabled="!isModalOpen"
|
|
49
|
+
>
|
|
50
|
+
Continue with Demo
|
|
51
|
+
</v-btn>
|
|
52
|
+
<v-spacer />
|
|
53
|
+
<v-btn
|
|
54
|
+
variant="tonal"
|
|
55
|
+
color="success"
|
|
56
|
+
@click="openUrl('https://3dicomviewer.com/pricing')"
|
|
57
|
+
>
|
|
58
|
+
Purchase 3Dicom Patient
|
|
59
|
+
</v-btn>
|
|
60
|
+
</v-card-actions>
|
|
61
|
+
</v-card>
|
|
62
|
+
</v-dialog>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<style scoped></style>
|