mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 04:37:57 +01:00
docs(ComponentCode): fix number inputs
This commit is contained in:
@@ -324,7 +324,7 @@ const { data: ast } = await useAsyncData(`component-code-${name}-${hash({ props:
|
|||||||
</USelect>
|
</USelect>
|
||||||
<UInput
|
<UInput
|
||||||
v-else
|
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)"
|
:model-value="getComponentProp(option.name)"
|
||||||
color="neutral"
|
color="neutral"
|
||||||
variant="soft"
|
variant="soft"
|
||||||
|
|||||||
Reference in New Issue
Block a user