docs(ComponentProps): improve schema collapsible display

This commit is contained in:
Benjamin Canac
2025-05-12 11:06:59 +02:00
parent 732a67aa88
commit 17d6803329

View File

@@ -38,7 +38,7 @@ const schemaProps = computed(() => {
</script> </script>
<template> <template>
<ProseCollapsible v-if="schemaProps?.length" class="mt-1"> <ProseCollapsible v-if="schemaProps?.length" class="mt-1 mb-0">
<ProseUl> <ProseUl>
<ProseLi v-for="schemaProp in schemaProps" :key="schemaProp.name"> <ProseLi v-for="schemaProp in schemaProps" :key="schemaProp.name">
<HighlightInlineType :type="`${schemaProp.name}${schemaProp.required === false ? '?' : ''}: ${schemaProp.type}`" /> <HighlightInlineType :type="`${schemaProp.name}${schemaProp.required === false ? '?' : ''}: ${schemaProp.type}`" />