mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 04:07:56 +01:00
docs(ComponentCard): prevent label prop as select (#568)
This commit is contained in:
committed by
Benjamin Canac
parent
b901222c4b
commit
11980a3c9c
@@ -11,7 +11,7 @@
|
|||||||
class="justify-center"
|
class="justify-center"
|
||||||
/>
|
/>
|
||||||
<USelectMenu
|
<USelectMenu
|
||||||
v-else-if="prop.type === 'string' && prop.options.length"
|
v-else-if="prop.type === 'string' && prop.options.length && prop.name !== 'label'"
|
||||||
v-model="componentProps[prop.name]"
|
v-model="componentProps[prop.name]"
|
||||||
:options="prop.options"
|
:options="prop.options"
|
||||||
:name="`prop-${prop.name}`"
|
:name="`prop-${prop.name}`"
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ Use the FormGroup component around an [Input](/forms/input), [Textarea](/forms/t
|
|||||||
::component-card
|
::component-card
|
||||||
---
|
---
|
||||||
props:
|
props:
|
||||||
name: 'email'
|
|
||||||
label: 'Email'
|
label: 'Email'
|
||||||
|
name: 'email'
|
||||||
code: >-
|
code: >-
|
||||||
|
|
||||||
<UInput placeholder="you@example.com" icon="i-heroicons-envelope" />
|
<UInput placeholder="you@example.com" icon="i-heroicons-envelope" />
|
||||||
|
|||||||
Reference in New Issue
Block a user