refactor: DisplayTextItem typing

This commit is contained in:
axolotle 2024-07-05 20:51:17 +02:00
parent 906d9ca95c
commit 4242b55327
2 changed files with 8 additions and 11 deletions

View file

@ -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>

View file

@ -15,6 +15,8 @@ export type ButtonItemProps = BaseDisplayItemProps & {
type?: StateVariant type?: StateVariant
} }
export type DisplayTextItemProps = BaseDisplayItemProps
// WRITABLE // WRITABLE