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