mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
refactor: DisplayTextItem typing
This commit is contained in:
parent
906d9ca95c
commit
4242b55327
2 changed files with 8 additions and 11 deletions
|
@ -1,18 +1,13 @@
|
|||
<script setup lang="ts">
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
id?: string
|
||||
label?: string
|
||||
}>(),
|
||||
{
|
||||
import type { DisplayTextItemProps } from '@/types/form'
|
||||
|
||||
withDefaults(defineProps<DisplayTextItemProps>(), {
|
||||
id: undefined,
|
||||
label: undefined,
|
||||
},
|
||||
)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div :id="id">
|
||||
<p v-text="label" />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -15,6 +15,8 @@ export type ButtonItemProps = BaseDisplayItemProps & {
|
|||
type?: StateVariant
|
||||
}
|
||||
|
||||
export type DisplayTextItemProps = BaseDisplayItemProps
|
||||
|
||||
|
||||
// WRITABLE
|
||||
|
||||
|
|
Loading…
Reference in a new issue