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 0a5a90c commit d1f42a5
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 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, computed } from 'vue';
import { useCssModule, markRaw } from 'vue';
import {
CdrAbstract,
CdrKicker,
Expand Down Expand Up @@ -30,24 +30,21 @@ const props = withDefaults(defineProps<Choreographer>(), {
components: () => ({}),
});
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 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 baseClass = 'cdr-choreographer';
const style = useCssModule();
Expand Down

0 comments on commit d1f42a5

Please sign in to comment.