mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 14:31:47 +01:00
docs: display jsdoc defaultValue
This commit is contained in:
@@ -17,7 +17,7 @@ const metaProps: ComputedRef<ComponentMeta['props']> = computed(() => {
|
||||
}
|
||||
|
||||
return meta.meta.props.map((prop) => {
|
||||
prop.default = prop.default ?? componentTheme?.defaultVariants?.[prop.name]
|
||||
prop.default = prop.default ?? prop.tags?.find(tag => tag.name === 'defaultValue')?.text ?? componentTheme?.defaultVariants?.[prop.name]
|
||||
return prop
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user