Kaynağa Gözat

Changelog: update for 1.4.7

Leopoldthecoder 7 yıl önce
ebeveyn
işleme
a0ec1580e1

+ 1 - 0
.gitignore

@@ -13,3 +13,4 @@ fe.element/element-ui
 .npmrc
 coverage
 waiter.config.js
+build/bin/algolia-key.js

+ 7 - 0
CHANGELOG.en-US.md

@@ -1,5 +1,12 @@
 ## Changelog
 
+### 1.4.7
+
+*2017-10-16*
+
+- Fixed compatibility of Autocomplete and Vue 2.5.x, #6942 (by @rennai)
+- Added `allow-focus` attribute for Switch, #7494 (by @breadadams)
+
 ### 1.4.6
 
 *2017-09-27*

+ 6 - 0
CHANGELOG.zh-CN.md

@@ -1,5 +1,11 @@
 ## 更新日志
 
+### 1.4.7
+*2017-10-16*
+
+- 修复 Autocomplete 与 Vue 2.5.x 不兼容的问题,#6942(by @rennai)
+- Switch 新增 `allow-focus` 属性,#7494(by @breadadams)
+
 ### 1.4.6
 *2017-09-27*
 

+ 2 - 2
examples/app.vue

@@ -204,8 +204,8 @@
         if (!notified) {
           const h = this.$createElement;
           const title = this.lang === 'zh-CN'
-            ? '2.0.0-alpha.1 发布'
-            : '2.0.0-alpha.1 released';
+            ? '2.0.0 Alpha 发布'
+            : '2.0.0 Alpha released';
           const messages = this.lang === 'zh-CN'
             ? ['点击', '这里', '查看详情']
             : ['Click ', 'here', ' to learn more'];

+ 4 - 4
examples/docs/en-US/switch.md

@@ -123,12 +123,12 @@ off-value  | switch value when in `off` state | boolean / string / number | —
 on-color | background color when in `on` state | string | — | #20A0FF
 off-color | background color when in `off` state | string | — | #C0CCDA
 name | input name of Switch | string | — | —
-allow-focus | allow `.focus()` & `.blur()` methods on the `input` $ref | boolean | — | false
+allow-focus | allow `focus` and `blur` events on the input | boolean | — | false
 
 ### Events
 
  Event Name | Description | Parameters
 ---- | ----| ----
-change | triggers when value changes | (value: Boolean)
-blur | triggers on blur (if `allowFocus` is `true`) | (event: Event)
-focus | triggers on focus (if `allowFocus` is `true`) | (event: Event)
+change | triggers when value changes | value after changing
+blur | triggers on blur (if `allow-focus` is true) | event: Event
+focus | triggers on focus (if `allow-focus` is true) | event: Event

+ 3 - 0
examples/docs/zh-CN/switch.md

@@ -124,8 +124,11 @@
 | on-color  | switch 打开时的背景色    | string   | — | #20A0FF |
 | off-color  | switch 关闭时的背景色    | string   | — | #C0CCDA |
 | name  | switch 对应的 name 属性    | string   | — | — |
+| allow-focus  | 允许 switch 触发 focus 和 blur 事件 | boolean | — | false |
 
 ### Events
 | 事件名称      | 说明    | 回调参数      |
 |---------- |-------- |---------- |
 | change  | switch 状态发生变化时的回调函数    | 新状态的值 |
+| blur  | switch 失去焦点时触发,仅当 `allow-focus` 为 true 时生效 | Event 事件对象 |
+| focus  | switch 获得焦点时触发,仅当 `allow-focus` 为 true 时生效 | Event 事件对象 |