Better inherit $attrs on extension components
This commit is contained in:
parent
dcd3fce6e1
commit
27e340413c
4 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
:value="option"
|
:value="option"
|
||||||
:checked="value && value.includes(option)"
|
:checked="value && value.includes(option)"
|
||||||
|
v-bind="$attrs"
|
||||||
@change="updateValue($event.target)"
|
@change="updateValue($event.target)"
|
||||||
/>
|
/>
|
||||||
{{ option }}
|
{{ option }}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
:name="name"
|
:name="name"
|
||||||
:value="value"
|
:value="value"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
|
v-bind="$attrs"
|
||||||
@input="$emit('input', Number($event.target.value))"
|
@input="$emit('input', Number($event.target.value))"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
<select
|
<select
|
||||||
class="uk-select uk-form-small"
|
class="uk-select uk-form-small"
|
||||||
:value="value"
|
:value="value"
|
||||||
|
v-bind="$attrs"
|
||||||
@input="$emit('input', $event.target.value)"
|
@input="$emit('input', $event.target.value)"
|
||||||
>
|
>
|
||||||
<option v-for="option in options" :key="option">
|
<option v-for="option in options" :key="option">
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
:name="name"
|
:name="name"
|
||||||
:value="value"
|
:value="value"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
|
v-bind="$attrs"
|
||||||
@input="$emit('input', $event.target.value)"
|
@input="$emit('input', $event.target.value)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue