docs(ComponentCode): fix number inputs

This commit is contained in:
Benjamin Canac
2024-12-13 12:47:47 +01:00
parent 0b86f4315e
commit cef16cd49d

View File

@@ -324,7 +324,7 @@ const { data: ast } = await useAsyncData(`component-code-${name}-${hash({ props:
</USelect>
<UInput
v-else
:type="option.type?.includes('number') ? 'number' : 'text'"
:type="option.type?.includes('number') && typeof getComponentProp(option.name) === 'number' ? 'number' : 'text'"
:model-value="getComponentProp(option.name)"
color="neutral"
variant="soft"