refactor: MarkdownItem typing

This commit is contained in:
axolotle 2024-07-05 20:51:40 +02:00
parent 4242b55327
commit cc90c50baf
2 changed files with 8 additions and 5 deletions

View file

@ -1,10 +1,11 @@
<script setup lang="ts">
defineProps<{
label: string
id?: string
}>()
import type { MarkdownItemProps } from '@/types/form'
withDefaults(defineProps<MarkdownItemProps>(), {
id: undefined,
})
</script>
<template>
<VueShowdown :markdown="label" />
<VueShowdown :id="id" :markdown="label" />
</template>

View file

@ -17,6 +17,8 @@ export type ButtonItemProps = BaseDisplayItemProps & {
export type DisplayTextItemProps = BaseDisplayItemProps
export type MarkdownItemProps = BaseDisplayItemProps
// WRITABLE