Skip to content

Commit

Permalink
media-object-refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
sikhote committed Jan 9, 2025
1 parent d1f42a5 commit b0f38ed
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions src/components/choreographer/CdrChoreographer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { useCssModule, markRaw } from 'vue';
import { useCssModule, computed } from 'vue';
import {
CdrAbstract,
CdrKicker,
Expand Down Expand Up @@ -30,21 +30,24 @@ const props = withDefaults(defineProps<Choreographer>(), {
components: () => ({}),
});
const componentMap = markRaw({
abstract: CdrAbstract,
kicker: CdrKicker,
title: CdrTitle,
body: CdrBody,
image: CdrImg,
picture: CdrPicture,
rating: CdrRating,
link: CdrLink,
card: CdrCard,
layout: CdrLayout,
button: CdrButton,
container: CdrContainer,
...props.components,
}) as ChoreographerComponents;
const componentMap = computed(
() =>
({
abstract: CdrAbstract,
kicker: CdrKicker,
title: CdrTitle,
body: CdrBody,
image: CdrImg,
picture: CdrPicture,
rating: CdrRating,
link: CdrLink,
card: CdrCard,
layout: CdrLayout,
button: CdrButton,
container: CdrContainer,
...props.components,
}) as ChoreographerComponents,
);
const baseClass = 'cdr-choreographer';
const style = useCssModule();
Expand Down

0 comments on commit b0f38ed

Please sign in to comment.