Changelog: update for 1.4.7

pull/7517/head
Leopoldthecoder 2017-10-16 16:17:10 +08:00 committed by 杨奕
parent 6d311ed6d3
commit a0ec1580e1
6 changed files with 23 additions and 6 deletions

1
.gitignore vendored
View File

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

View File

@ -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*

View File

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

View File

@ -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'];

View File

@ -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

View File

@ -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 事件对象 |