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">
|
<script setup lang="ts">
|
||||||
defineProps<{
|
import type { MarkdownItemProps } from '@/types/form'
|
||||||
label: string
|
|
||||||
id?: string
|
withDefaults(defineProps<MarkdownItemProps>(), {
|
||||||
}>()
|
id: undefined,
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VueShowdown :markdown="label" />
|
<VueShowdown :id="id" :markdown="label" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -17,6 +17,8 @@ export type ButtonItemProps = BaseDisplayItemProps & {
|
||||||
|
|
||||||
export type DisplayTextItemProps = BaseDisplayItemProps
|
export type DisplayTextItemProps = BaseDisplayItemProps
|
||||||
|
|
||||||
|
export type MarkdownItemProps = BaseDisplayItemProps
|
||||||
|
|
||||||
|
|
||||||
// WRITABLE
|
// WRITABLE
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue