Changelog: update for 1.3.0-beta.3

This commit is contained in:
Leopoldthecoder 2017-05-03 15:23:38 +08:00 committed by 杨奕
parent defd128f54
commit cf60e6c9bb
4 changed files with 33 additions and 2 deletions

View File

@ -1,5 +1,20 @@
## Changelog
### 1.3.0-beta.3
*2017-05-03*
#### New features:
- Added `label` attribute for CarouselItem, #4317 (by @paul-blundell)
- `message` of MessageBox now supports VNode, #4550
- Added `filter-placement` attribute for TableColumn, #4491
- Added `visible` attribute for Dialog, which supports the `.sync` modifier, #4539
- `current-page` of Pagination `current-page` now supports `.sync`, #4539
- Added `abort` method for Upload, #4575
#### Fix:
- Upload not displaying preview image when is `auto-upload` false, #4572
### 1.3.0-beta.1
*2017-04-28*

View File

@ -1,5 +1,19 @@
## 更新日志
### 1.3.0-beta.3
*2017-05-03*
#### 新特性:
- CarouselItem 新增 `label` 属性,#4317by @paul-blundell
- MessageBox 的 `message` 属性增加对 VNode 的支持,#4550
- TableColumn 新增 `filter-placement` 属性,#4491
- Dialog 新增 `visible` 属性,且支持 `.sync` 修饰符,#4539
- Pagination 的 `current-page` 增加对 `.sync` 的支持,#4539
- Upload 新增 `abort` 方法,#4575
#### 修复:
- `auto-upload` 为 false 的 Upload 不显示预览图片的问题,#4572
### 1.3.0-beta.1
*2017-04-28*

View File

@ -1306,7 +1306,7 @@ Filter the table to find desired data.
width="100"
:filters="[{ text: 'Home', value: 'Home' }, { text: 'Office', value: 'Office' }]"
:filter-method="filterTag"
filter-placement="bottom-start">
filter-placement="bottom-end">
<template scope="scope">
<el-tag
:type="scope.row.tag === 'Home' ? 'primary' : 'success'"
@ -1743,6 +1743,7 @@ For table of numbers, you can add an extra row at the table footer displaying ea
| selectable | function that determines if a certain row can be selected, works when `type` is 'selection' | Function(row, index) | — | — |
| reserve-selection | whether to reserve selection after data refreshing, works when `type` is 'selection' | boolean | — | false |
| filters | an array of data filtering options. For each element in this array, `text` and `value` are required | Array[{ text, value }] | — | — |
| filter-placement | placement for the filter dropdown | String | same as Tooltip's `placement` | — |
| filter-multiple | whether data filtering supports multiple options | Boolean | — | true |
| filter-method | data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true` | Function(value, row) | — | — |
| filtered-value | filter value for selected data, might be useful when table header is rendered with `render-header` | Array | — | — |

View File

@ -1372,7 +1372,7 @@
width="100"
:filters="[{ text: '家', value: '家' }, { text: '公司', value: '公司' }]"
:filter-method="filterTag"
filter-placement="bottom-start">
filter-placement="bottom-end">
<template scope="scope">
<el-tag
:type="scope.row.tag === '家' ? 'primary' : 'success'"
@ -1830,6 +1830,7 @@
| selectable | 仅对 type=selection 的列有效,类型为 FunctionFunction 的返回值用来决定这一行的 CheckBox 是否可以勾选 | Function(row, index) | — | — |
| reserve-selection | 仅对 type=selection 的列有效,类型为 Boolean为 true 则代表会保留之前数据的选项,需要配合 Table 的 clearSelection 方法使用。 | Boolean | — | false |
| filters | 数据过滤的选项,数组格式,数组中的元素需要有 text 和 value 属性。 | Array[{ text, value }] | — | — |
| filter-placement | 过滤弹出框的定位 | String | 与 Tooltip 的 `placement` 属性相同 | — |
| filter-multiple | 数据过滤的选项是否多选 | Boolean | — | true |
| filter-method | 数据过滤使用的方法,如果是多选的筛选项,对每一条数据会执行多次,任意一次返回 true 就会显示。 | Function(value, row) | — | — |
| filtered-value | 选中的数据过滤项,如果需要自定义表头过滤的渲染方式,可能会需要此属性。 | Array | — | — |