mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
refactor: MarkdownItem typing
This commit is contained in:
parent
4242b55327
commit
cc90c50baf
2 changed files with 8 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -17,6 +17,8 @@ export type ButtonItemProps = BaseDisplayItemProps & {
|
|||
|
||||
export type DisplayTextItemProps = BaseDisplayItemProps
|
||||
|
||||
export type MarkdownItemProps = BaseDisplayItemProps
|
||||
|
||||
|
||||
// WRITABLE
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue