Merge pull request #2854 from Xotic750/checkbox_tabindex

Checkbox tabindex
This commit is contained in:
Aresn 2018-01-19 14:14:50 +08:00 committed by GitHub
commit e0ce3830cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,9 @@
:value="label"
v-model="model"
:name="name"
@change="change">
@change="change"
@focus="$el.focus()"
>
<input
v-if="!group"
type="checkbox"
@ -23,7 +25,9 @@
:disabled="disabled"
:checked="currentValue"
:name="name"
@change="change">
@change="change"
@focus="$el.focus()"
>
</span>
<slot><span v-if="showSlot">{{ label }}</span></slot>
</label>