docs(ComponentCode): force string for label when items used as boolean

This commit is contained in:
Sébastien Chopin
2024-12-11 10:59:15 +01:00
parent d5f9cc27a4
commit d8d56d909b

View File

@@ -141,7 +141,7 @@ const options = computed(() => {
const items = propItems.length
? propItems.map((item: any) => ({
value: item,
label: item
label: String(item)
}))
: prop?.type === 'boolean' || prop?.type === 'boolean | undefined'
? [{ value: true, label: 'true' }, { value: false, label: 'false' }]