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