mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
Changelog: update for 1.1.0
This commit is contained in:
parent
1df8c50dfb
commit
d8d20f0da1
@ -1,5 +1,32 @@
|
||||
## Changelog
|
||||
|
||||
### 1.1.0 Helium
|
||||
|
||||
*2016-12-29*
|
||||
|
||||
New features:
|
||||
- Two brand new components: Carousel and Collapse
|
||||
- SSR supported
|
||||
- Scrollbars' style inside components is upgraded
|
||||
- Table now supports custom templates via [scoped slots](http://vuejs.org/v2/guide/components.html#Scoped-Slots); the good old `inline-template` is still compatible, but it's no longer recommended and is likely to be removed in the future
|
||||
- Table now supports expandable rows
|
||||
- DatePicker now supports specifying the first day of week
|
||||
- TimeSelect now supports `maxTime`
|
||||
- Autocomplete now supports `popper-class`
|
||||
- To customize template of Tab-Pane, now you can use the `slot` named `label`
|
||||
|
||||
Fixes:
|
||||
- `change` event of DatePicker incorrectly triggering multiple times, #2070
|
||||
- Width shaking of tab-pane while initializing, #1883
|
||||
|
||||
Breaking changes:
|
||||
- Only compatible with Vue 2.1.6 and beyond
|
||||
- Parameters of Form validateField() methods are updated
|
||||
- Alert's render-content attribute is removed, and now you can pass your custom template via default slot
|
||||
- The box models of Input and Select are updated from `block` to `inline-block`
|
||||
- The box model of Tabs is updated from `inline-block` to `block`, and Tab-Pane's `label-content` attribute is removed
|
||||
- The dropdown of Autocomplete now inserts directly to `<body>`, not `<el-autocomplete>` any more
|
||||
|
||||
### 1.0.9
|
||||
|
||||
*2016-12-27*
|
||||
|
@ -1,5 +1,31 @@
|
||||
## 更新日志
|
||||
|
||||
### 1.1.0 Helium
|
||||
*2016-12-29*
|
||||
|
||||
新特性:
|
||||
- 新增 Carousel、Collapse 组件
|
||||
- 支持 SSR
|
||||
- 组件内的滚动条样式优化
|
||||
- Table 支持通过 [Scoped Slots](http://vuejs.org/v2/guide/components.html#Scoped-Slots) 传入模板;原来的 `inline-template` 仍然兼容,但是不再推荐使用,未来可能会被移除
|
||||
- Table 支持展开行功能(Expandable rows)
|
||||
- DatePicker 支持指定周起始日(first day of week)
|
||||
- TimeSelect 支持设置 `maxTime`
|
||||
- Autocomplete 新增 `popper-class`属性
|
||||
- Tab-Pane 新增 name 为 label 的具名 `slot`,用于实现自定义标签内容
|
||||
|
||||
修复:
|
||||
- DatePicker 的 `change` 事件错误地触发多次的问题,#2070
|
||||
- Tabs 组件内 tab-pane 初始化时宽度抖动的问题,#1883
|
||||
|
||||
非兼容性更新:
|
||||
- 最低兼容 Vue 2.1.6
|
||||
- Form validateField() 方法回调的参数更新
|
||||
- Alert 取消了 render-content 属性,现在自定义模板需要通过默认 slot 传入
|
||||
- Input 和 Select 盒模型从 `block` 修改为 `inline-block`
|
||||
- Tabs 盒模型从 `inline-block` 修改为 `block`,Tab-Pane 移除 `label-content` 属性
|
||||
- Autocomplete 下拉列表现在直接插入到 `<body>` 标签下,而不是 `<el-autocomplete>` 下
|
||||
|
||||
### 1.0.9
|
||||
*2016-12-27*
|
||||
|
||||
|
@ -171,14 +171,14 @@ When a page is wide enough but has limited height, you can activate card mode fo
|
||||
| arrow | when arrows are shown | string | always/hover/never | hover |
|
||||
| type | type of the Carousel | string | card | — |
|
||||
|
||||
### Events
|
||||
### Carousel Events
|
||||
| Event Name | Description | Parameters |
|
||||
|---------|---------|---------|
|
||||
| change | triggers when the active slide switches | index of the new active slide, index of the old active slide |
|
||||
|
||||
### Methods
|
||||
### Carousel Methods
|
||||
| Method | Description | Parameters |
|
||||
|---------- |-------------- | — |
|
||||
|---------- |-------------- | -- |
|
||||
| setActiveItem | manually switch slide | index of the slide to be switched to, starting from 0; or the `name` of corresponding `el-carousel-item` |
|
||||
| prev | switch to the previous slide | — |
|
||||
| next | switch to the next slide | — |
|
||||
|
@ -227,7 +227,7 @@
|
||||
|
||||
### Carousel Methods
|
||||
| 方法名 | 说明 | 参数 |
|
||||
|---------- |-------------- | — |
|
||||
|---------- |-------------- | -- |
|
||||
| setActiveItem | 手动切换幻灯片 | 需要切换的幻灯片的索引,从 0 开始;或相应 `el-carousel-item` 的 `name` 属性值 |
|
||||
| prev | 切换至上一张幻灯片 | — |
|
||||
| next | 切换至下一张幻灯片 | — |
|
||||
|
@ -179,5 +179,5 @@
|
||||
|
||||
### Methods
|
||||
| 方法名 | 说明 | 参数 |
|
||||
|---------- |-------------- | — |
|
||||
|---------- |-------------- | -- |
|
||||
| clearFiles | 清空已上传的文件列表 | — |
|
||||
|
Loading…
Reference in New Issue
Block a user