Changelog: update for 1.3.2

pull/4792/head
Leopoldthecoder 2017-05-10 20:44:49 +08:00 committed by 杨奕
parent 8d67762188
commit 7971ec3dd8
12 changed files with 40 additions and 7 deletions

View File

@ -1,5 +1,16 @@
## Changelog ## Changelog
### 1.3.2
*2017-05-10*
- Fixed undefined custom component `el-collapse-transition` error when importing some components on demand, #4728
- Fixed vertical alignment issue of Pagination in FireFox, #4756
- Fixed dropdown panel view not updating after binding value of DatePicker is programmatically changed when `type` is week, #4739
- Fixed height calculation errors of Table with summary rows, #4736
- Added `before-filter` attribute for Cascader, #4774
- Added `debounce` attribute for InputNumber, #4712by @pengchongfu
### 1.3.1 ### 1.3.1
*2017-05-06* *2017-05-06*

View File

@ -1,5 +1,15 @@
## 更新日志 ## 更新日志
### 1.3.2
*2017-05-10*
- 修复在按需引入某些组件时,报 `el-collapse-transition` 未找到的错,#4728
- 修复 Pagination 在 FireFox 中的垂直居中问题,#4756
- 修复 `type` 为 week 时的 DatePicker 在更新绑定值后面板视图不更新的问题,#4739
- 修复 `show-summary` 的 Table 的一些高度计算错误,#4736
- 新增 Cascader 的 `before-filter` 属性,#4774
- 新增 InputNumber 的 `debounce` 属性,#4712by @pengchongfu
### 1.3.1 ### 1.3.1
*2017-05-06* *2017-05-06*

View File

@ -33,6 +33,7 @@
- [FAQ](./FAQ.md) - [FAQ](./FAQ.md)
- [Customize Theme](http://element.eleme.io/#/en-US/component/custom-theme) - [Customize Theme](http://element.eleme.io/#/en-US/component/custom-theme)
- [Preview and generate theme online](https://elementui.github.io/theme-preview) - [Preview and generate theme online](https://elementui.github.io/theme-preview)
- [Element for React](https://github.com/eleme/element-react)
- Starter Kit - Starter Kit
- [element-starter](https://github.com/ElementUI/element-starter) - [element-starter](https://github.com/ElementUI/element-starter)
- [element-cooking-starter](https://github.com/ElementUI/element-cooking-starter) - [element-cooking-starter](https://github.com/ElementUI/element-cooking-starter)

View File

@ -91,7 +91,7 @@
setNav() { setNav() {
let nav = navConfig[this.lang]; let nav = navConfig[this.lang];
this.nav = nav[0].children.concat(nav[1]); this.nav = nav[0].children.concat(nav[1]);
nav[2].groups.map(group => group.list).forEach(list => { nav[3].groups.map(group => group.list).forEach(list => {
this.nav = this.nav.concat(list); this.nav = this.nav.concat(list);
}); });
}, },

View File

@ -5,6 +5,7 @@
<p class="footer-main-title">Element {{ version }} Beryllium</p> <p class="footer-main-title">Element {{ version }} Beryllium</p>
<a href="https://github.com/ElemeFE/element/issues" class="footer-main-link" target="_blank">{{ langConfig.feedback }}</a> <a href="https://github.com/ElemeFE/element/issues" class="footer-main-link" target="_blank">{{ langConfig.feedback }}</a>
<a :href="`https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.${ lang }.md`" class="footer-main-link" target="_blank">{{ langConfig.contribution }}</a> <a :href="`https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.${ lang }.md`" class="footer-main-link" target="_blank">{{ langConfig.contribution }}</a>
<a :href="`https://eleme.github.io/element-react/#/${ lang }/quick-start`" class="footer-main-link" target="_blank">Element-React</a>
</div> </div>
<div class="footer-social"> <div class="footer-social">
<el-popover <el-popover

View File

@ -126,9 +126,10 @@
</el-dropdown> </el-dropdown>
<ul> <ul>
<li class="nav-item" v-for="item in data"> <li class="nav-item" v-for="item in data">
<a v-if="!item.path" @click="expandMenu">{{item.name}}</a> <a v-if="!item.path && !item.href" @click="expandMenu">{{item.name}}</a>
<a v-if="item.href" :href="item.href" target="_blank">{{item.name}}</a>
<router-link <router-link
v-else v-if="item.path"
active-class="active" active-class="active"
:to="base + item.path" :to="base + item.path"
exact exact

View File

@ -1656,7 +1656,7 @@ Search and select options with a keyword.
| value | specify which key of option object is used as the option's value | string | — | — | | value | specify which key of option object is used as the option's value | string | — | — |
| children | specify which key of option object is used as the option's child options | string | — | — | | children | specify which key of option object is used as the option's child options | string | — | — |
| disabled | specify which key of option object indicates if the option is disabled | string | — | — | | disabled | specify which key of option object indicates if the option is disabled | string | — | — |
| before-filter | hook function before filtering with the value to be filtered as its parameter. If `false` or a `Promise` is returned, filtering will be aborted | function(value) | — | — | | before-filter | hook function before filtering with the value to be filtered as its parameter. If `false` is returned or a `Promise` is returned and then is rejected, filtering will be aborted | function(value) | — | — |
### Events ### Events
| Event Name | Description | Parameters | | Event Name | Description | Parameters |

View File

@ -359,7 +359,7 @@ on-success | hook function when uploaded successfully | function(response, file,
on-error | hook function when some errors occurs | function(err, file, fileList) | — | — on-error | hook function when some errors occurs | function(err, file, fileList) | — | —
on-progress | hook function when some progress occurs | function(event, file, fileList) | — | — | on-progress | hook function when some progress occurs | function(event, file, fileList) | — | — |
on-change | hook function when select file or upload file success or upload file fail | function(file, fileList) | — | — | on-change | hook function when select file or upload file success or upload file fail | function(file, fileList) | — | — |
before-upload | hook function before uploading with the file to be uploaded as its parameter. If `false` or a `Promise` is returned, uploading will be aborted | function(file) | — | — before-upload | hook function before uploading with the file to be uploaded as its parameter. If `false` is returned or a `Promise` is returned and then is rejected, uploading will be aborted | function(file) | — | —
thumbnail-mode | whether thumbnail is displayed | boolean | — | false thumbnail-mode | whether thumbnail is displayed | boolean | — | false
file-list | default uploaded files, e.g. [{name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}] | array | — | [] file-list | default uploaded files, e.g. [{name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}] | array | — | []
list-type | type of fileList | string | text/picture/picture-card | text | list-type | type of fileList | string | text/picture/picture-card | text |

View File

@ -1687,7 +1687,7 @@
| label | 指定选项标签为选项对象的某个属性值 | string | — | — | | label | 指定选项标签为选项对象的某个属性值 | string | — | — |
| children | 指定选项的子选项为选项对象的某个属性值 | string | — | — | | children | 指定选项的子选项为选项对象的某个属性值 | string | — | — |
| disabled | 指定选项的禁用为选项对象的某个属性值 | string | — | — | | disabled | 指定选项的禁用为选项对象的某个属性值 | string | — | — |
| before-filter | 可选参数, 筛选之前的钩子,参数为输入的值,若返回 false 或者 Promise 则停止筛选。 | function(value) | — | — | | before-filter | 可选参数, 筛选之前的钩子,参数为输入的值,若返回 false 或者返回 Promise 且被 reject则停止筛选。 | function(value) | — | — |
### Events ### Events
| 事件名称 | 说明 | 回调参数 | | 事件名称 | 说明 | 回调参数 |

View File

@ -409,7 +409,7 @@
| on-error | 可选参数, 文件上传失败时的钩子 | function(err, file, fileList) | — | — | | on-error | 可选参数, 文件上传失败时的钩子 | function(err, file, fileList) | — | — |
| on-progress | 可选参数, 文件上传时的钩子 | function(event, file, fileList) | — | — | | on-progress | 可选参数, 文件上传时的钩子 | function(event, file, fileList) | — | — |
| on-change | 可选参数, 文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用 | function(file, fileList) | — | — | | on-change | 可选参数, 文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用 | function(file, fileList) | — | — |
| before-upload | 可选参数, 上传文件之前的钩子,参数为上传的文件,若返回 false 或者 Promise 则停止上传。 | function(file) | — | — | | before-upload | 可选参数, 上传文件之前的钩子,参数为上传的文件,若返回 false 或者返回 Promise 且被 reject则停止上传。 | function(file) | — | — |
| list-type | 文件列表的类型 | string | text/picture/picture-card | text | | list-type | 文件列表的类型 | string | text/picture/picture-card | text |
| auto-upload | 是否在选取文件后立即进行上传 | boolean | — | true | | auto-upload | 是否在选取文件后立即进行上传 | boolean | — | true |
| file-list | 上传的文件列表, 例如: [{name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}] | array | — | [] | | file-list | 上传的文件列表, 例如: [{name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}] | array | — | [] |

View File

@ -29,6 +29,10 @@
"name": "更新日志", "name": "更新日志",
"path": "/changelog" "path": "/changelog"
}, },
{
"name": "Element React",
"href": "https://eleme.github.io/element-react/"
},
{ {
"name": "基础组件", "name": "基础组件",
"groups": [ "groups": [
@ -267,6 +271,10 @@
"name": "Changelog", "name": "Changelog",
"path": "/changelog" "path": "/changelog"
}, },
{
"name": "Element React",
"href": "https://eleme.github.io/element-react/"
},
{ {
"name": "Components", "name": "Components",
"groups": [ "groups": [

View File

@ -12,6 +12,7 @@ const registerRoute = (navConfig) => {
children: [] children: []
}); });
navs.forEach(nav => { navs.forEach(nav => {
if (nav.href) return;
if (nav.groups) { if (nav.groups) {
nav.groups.forEach(group => { nav.groups.forEach(group => {
group.list.forEach(nav => { group.list.forEach(nav => {