mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 03:38:54 +01:00
docs(ComponentCode): force string for label when items used as boolean
This commit is contained in:
@@ -141,7 +141,7 @@ const options = computed(() => {
|
|||||||
const items = propItems.length
|
const items = propItems.length
|
||||||
? propItems.map((item: any) => ({
|
? propItems.map((item: any) => ({
|
||||||
value: item,
|
value: item,
|
||||||
label: item
|
label: String(item)
|
||||||
}))
|
}))
|
||||||
: prop?.type === 'boolean' || prop?.type === 'boolean | undefined'
|
: prop?.type === 'boolean' || prop?.type === 'boolean | undefined'
|
||||||
? [{ value: true, label: 'true' }, { value: false, label: 'false' }]
|
? [{ value: true, label: 'true' }, { value: false, label: 'false' }]
|
||||||
|
|||||||
Reference in New Issue
Block a user