Select: add focus listener (#1193)

pull/1204/head
杨奕 2016-11-18 18:41:15 +08:00 committed by FuryBean
parent 63b465086d
commit dd08623526
2 changed files with 2 additions and 2 deletions

View File

@ -1068,7 +1068,7 @@ Customize table column so it can be integrated with other components.
| Attribute | Description | Type | Accepted Values | Default | | Attribute | Description | Type | Accepted Values | Default |
|---------- |-------------- |---------- |-------------------------------- |-------- | |---------- |-------------- |---------- |-------------------------------- |-------- |
| data | table data | array | — | — | | data | table data | array | — | — |
| height | table's height. By default | string/number | — | — | | height | Table's height. By default it has an auto height. If its value is a number, the height is measured in pixels; if its value is a string, the height is affected by external styles | string/number | — | — |
| stripe | whether table is striped | boolean | — | false | | stripe | whether table is striped | boolean | — | false |
| border | whether table has vertical border | boolean | — | false | | border | whether table has vertical border | boolean | — | false |
| fit | whether width of column automatically fits its container | boolean | — | true | | fit | whether width of column automatically fits its container | boolean | — | true |

View File

@ -39,7 +39,7 @@
:name="name" :name="name"
:disabled="disabled" :disabled="disabled"
:readonly="!filterable || multiple" :readonly="!filterable || multiple"
@click.native="toggleMenu" @focus="toggleMenu"
@keyup.native="debouncedOnInputChange" @keyup.native="debouncedOnInputChange"
@keydown.native.down.prevent="navigateOptions('next')" @keydown.native.down.prevent="navigateOptions('next')"
@keydown.native.up.prevent="navigateOptions('prev')" @keydown.native.up.prevent="navigateOptions('prev')"