docs(ComponentCode): handle input number

This commit is contained in:
Benjamin Canac
2024-07-17 17:27:14 +02:00
parent 9620d903c5
commit 8ae8993db4

View File

@@ -65,6 +65,7 @@ const options = computed(() => {
return { return {
name: key, name: key,
label: key, label: key,
type: prop?.type,
items items
} }
}) })
@@ -176,6 +177,7 @@ const { data: ast } = await useAsyncData(`component-code-${name}-${JSON.stringif
</USelectMenu> </USelectMenu>
<UInput <UInput
v-else v-else
:type="option.type.includes('number') ? 'number' : 'text'"
:model-value="getComponentProp(option.name)" :model-value="getComponentProp(option.name)"
color="gray" color="gray"
variant="soft" variant="soft"