Skip to content

Commit

Permalink
fix(Timeline): fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed May 22, 2023
1 parent 1d5bc05 commit bbbb69c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 30 deletions.
10 changes: 3 additions & 7 deletions packages/timeline/src/VTimelineDivider.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<script setup lang="ts">
withDefaults(defineProps<{}>(), {});
</script>

<template>
<li class="v-timeline-divider" />
</template>
<template>
<li class="v-timeline-divider" />
</template>
46 changes: 23 additions & 23 deletions packages/timeline/src/VTimelineItemDot.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<script setup lang="ts">
import {getColor} from '@morpheme/utils';
const props = withDefaults(
defineProps<{
color?: string;
textColor?: string;
}>(),
{},
);
const bgColor = getColor(props.color);
const textColor = getColor(props.textColor);
</script>

<template>
<li
class="v-timeline-item-dot"
:style="{backgroundColor: bgColor, color: textColor}"
>
<slot />
</li>
</template>
<script setup lang="ts">
import {getColor} from '@morpheme/utils';
const props = withDefaults(
defineProps<{
color?: string;
textColor?: string;
}>(),
{},
);
const bgColor = getColor(props.color) as any;
const textColor = getColor(props.textColor);
</script>

<template>
<li
class="v-timeline-item-dot"
:style="{backgroundColor: bgColor, color: textColor}"
>
<slot />
</li>
</template>

0 comments on commit bbbb69c

Please sign in to comment.