File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed
personalization-webcomponents/src Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change 4
4
<div v-html =" mucIconsSprite" />
5
5
<!-- eslint-disable-next-line vue/no-v-html -->
6
6
<div v-html =" customIconsSprite" />
7
- <muc-callout >
8
- <template #header >
9
- <p >checklist-domi Webcomponent</p >
10
- </template >
11
- <template #content >
12
- <p >{{ calloutContent }}</p >
13
- </template >
14
- </muc-callout >
7
+ <checklist-header
8
+ :checklist =checklists[1]
9
+ :loading =false >
10
+
11
+ </checklist-header >
12
+
15
13
</div >
14
+
16
15
</template >
17
16
18
17
<script setup lang="ts">
19
- import { MucCallout } from " @muenchen/muc-patternlab-vue" ;
20
18
import customIconsSprite from " @muenchen/muc-patternlab-vue/assets/icons/custom-icons.svg?raw" ;
21
19
import mucIconsSprite from " @muenchen/muc-patternlab-vue/assets/icons/muc-icons.svg?raw" ;
22
- import { computed } from " vue" ;
20
+ import { onMounted , ref } from " vue" ;
21
+
22
+
23
+ import ChecklistHeader from " @/components/ChecklistHeader.vue" ;
24
+ import type DummyChecklist from " @/api/dummyservice/DummyChecklist.ts" ;
25
+ import DummyChecklistService from " @/api/dummyservice/DummyChecklistService.ts" ;
26
+
23
27
24
- import { FIRSTNAME_DEFAULT } from " @/util/constants " ;
28
+ const checklists = ref < DummyChecklist []>([]) ;
25
29
26
- const { firstName = FIRSTNAME_DEFAULT } = defineProps <{
27
- firstName? : string ;
28
- }>();
30
+ onMounted (() => {
31
+ const dcl = new DummyChecklistService ();
32
+ checklists .value = dcl .getChecklists ();
33
+ })
29
34
30
- const calloutContent = computed (() => {
31
- return ` Hello ${firstName } ` ;
32
- });
33
35
</script >
34
36
35
37
<style >
You can’t perform that action at this time.
0 commit comments