Browse Source

Select: add focus listener (#1193)

杨奕 8 năm trước cách đây
mục cha
commit
897ec4650c
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      examples/docs/en-US/table.md
  2. 1 1
      packages/select/src/select.vue

+ 1 - 1
examples/docs/en-US/table.md

@@ -1068,7 +1068,7 @@ Customize table column so it can be integrated with other components.
 | Attribute      | Description          | Type      | Accepted Values       | Default  |
 |---------- |-------------- |---------- |--------------------------------  |-------- |
 | 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 |
 | border | whether table has vertical border | boolean | — | false |
 | fit | whether width of column automatically fits its container | boolean | — | true |

+ 1 - 1
packages/select/src/select.vue

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