mirror of https://github.com/ElemeFE/element
Changelog: update for 1.2.0
parent
58c19ebaf0
commit
429ee228a7
|
@ -1,5 +1,39 @@
|
|||
## Changelog
|
||||
|
||||
### 1.2.0 Lithium
|
||||
|
||||
*2017-02-22*
|
||||
|
||||
#### New features:
|
||||
- Two brand new components: Cascader and ColorPicker
|
||||
- New attributes `editable` and `addable`, and new events `tab-add` and `edit` for Tabs
|
||||
- Language config files in UMD format
|
||||
- New events `node-expand` and `node-collapse` for Tree, #2507 (by @masterzhang)
|
||||
- New attribute `indent` for Tree, #2713
|
||||
- Dialog's title now supports named slot, #2657
|
||||
- New attribute `range` for Slider, #2751
|
||||
- Upload
|
||||
- Attribute `auto-upload` that controls if files are uploaded immediately after selecting, and its default value is `true`
|
||||
- Event `on-change` that fires when file status changes
|
||||
- Attribute `list-type` that configures the appearance of file list
|
||||
- Scroll bars in Autocomplete are made prettier
|
||||
|
||||
#### Fixes:
|
||||
- Carousel not responding to contents' update, #2775
|
||||
- Numbers in TimePicker not align in some conditions, #2948
|
||||
- TimePicker only responding to odd clicks in some conditions, #2884 (by @k55k32)
|
||||
- Tabs' display order error when tab-pane is dynamically changed, #2898
|
||||
- Menu highlighting menu-item when `default-active` is assigned to an non-existent item
|
||||
- Collapse's style issue when nested
|
||||
|
||||
#### Breaking changes:
|
||||
- Tooltip is refactored, no additional HTML tags will be rendered so that the structures of nested component stay unchanged, #2459
|
||||
- The backdrop of Dialog now inserts to body element by default, #2556
|
||||
- Tabs don't maintain tab instances internally any more, so they should be handled externally via events emitted by Tabs, #2567
|
||||
- Upload is refactored
|
||||
- `default-file-list` renamed to `file-list`, and `show-upload-list` renamed to `show-file-list`
|
||||
- `thumbnail-mode` removed
|
||||
|
||||
### 1.1.6
|
||||
|
||||
*2017-01-23*
|
||||
|
@ -80,7 +114,7 @@ Breaking change
|
|||
|
||||
*2016-12-29*
|
||||
|
||||
New features:
|
||||
#### New features:
|
||||
- Two brand new components: Carousel and Collapse
|
||||
- SSR supported
|
||||
- Scrollbars' style inside components is upgraded
|
||||
|
@ -91,11 +125,11 @@ New features:
|
|||
- Autocomplete now supports `popper-class`
|
||||
- To customize template of Tab-Pane, now you can use the `slot` named `label`
|
||||
|
||||
Fixes:
|
||||
#### Fixes:
|
||||
- `change` event of DatePicker incorrectly triggering multiple times, #2070
|
||||
- Width shaking of tab-pane while initializing, #1883
|
||||
|
||||
Breaking changes:
|
||||
#### 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
|
||||
|
|
|
@ -1,5 +1,38 @@
|
|||
## 更新日志
|
||||
|
||||
### 1.2.0 Lithium
|
||||
*2017-02-22*
|
||||
|
||||
#### 新特性:
|
||||
- 新增 Cascader、ColorPicker 组件
|
||||
- Tabs 新增 `editable` 和 `addable` 属性以及 `tab-add` 和 `edit` 事件
|
||||
- 新增 UMD 格式的语言包文件
|
||||
- Tree 新增 `node-expand` 和 `node-collapse` 事件,#2507(by @masterzhang)
|
||||
- Tree 新增 `indent` 属性,#2713
|
||||
- Dialog 的标题支持以具名 slot 的方式传入,#2657
|
||||
- Slider 新增 `range` 属性,支持范围选择,#2751
|
||||
- Upload
|
||||
- 新增 `auto-upload` 属性,用以控制是否在选择图片后自动上传,默认为开启
|
||||
- 新增 `on-change` 钩子函数在文件状态改变时会调用
|
||||
- 新增 `list-type` 设置文件列表展示外观
|
||||
- Autocomplete 滚动条使用 el-scrollbar
|
||||
|
||||
#### 修复:
|
||||
- Carousel 不响应内容动态更新的问题,#2775
|
||||
- TimePicker 在某些情况下数字位置不居中的问题,#2948
|
||||
- TimePicker 在某些情况下范围选择时仅响应偶数次点击的问题,#2884(by @k55k32)
|
||||
- Tab 修复 tab-pane 动态显示时插入顺序问题, #2898
|
||||
- Menu 修复将 `default-active` 设置为不存在的 index 时 menu-item 还会高亮的问题
|
||||
- Collapse 修复嵌套使用时的样式问题
|
||||
|
||||
#### 非兼容性更新:
|
||||
- 重构 Tooltip,不再生成额外的 HTML 标签,确保被 tooltip 包裹的组件的结构不变,#2459
|
||||
- Dialog 的遮罩层现在默认插入至 body 元素上,#2556
|
||||
- Tabs 现在内部不再维护 tab 实例,需要在外部通过相关事件去处理, #2567
|
||||
- Upload 重构升级
|
||||
- `default-file-list` 属性更名为 `file-list`, `show-upload-list` 属性更名为 `show-file-list`
|
||||
- `thumbnail-mode` 属性被移除
|
||||
|
||||
### 1.1.6
|
||||
*2017-01-23*
|
||||
|
||||
|
@ -73,7 +106,7 @@
|
|||
### 1.1.0 Helium
|
||||
*2016-12-29*
|
||||
|
||||
新特性:
|
||||
#### 新特性:
|
||||
- 新增 Carousel、Collapse 组件
|
||||
- 支持 SSR
|
||||
- 组件内的滚动条样式优化
|
||||
|
@ -84,11 +117,11 @@
|
|||
- 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 传入
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var version = process.env.VERSION || require('../../package.json').version;
|
||||
var content = { '1.0.9': '1.0' };
|
||||
content[version] = '1.1';
|
||||
var content = { '1.0.9': '1.0', '1.1.6': '1.1' };
|
||||
if (!content[version]) content[version] = '1.2';
|
||||
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="footer-main">
|
||||
<p class="footer-main-title">Element {{ version }} Helium</p>
|
||||
<p class="footer-main-title">Element {{ version }} Lithium</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/blob/master/.github/CONTRIBUTING.${ lang }.md`" class="footer-main-link" target="_blank">{{ langConfig.contribution }}</a>
|
||||
</div>
|
||||
|
|
|
@ -58,6 +58,17 @@
|
|||
|
||||
ul {
|
||||
padding-left: 0;
|
||||
ul {
|
||||
padding-left: 20px;
|
||||
li::before {
|
||||
content: '';
|
||||
circle: 4px #fff;
|
||||
border: solid 1px #5e6d82;
|
||||
margin-right: 5px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li li {
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
font-weight: normal;
|
||||
font-size: var(--notification-title-font-size);
|
||||
color: var(--notification-title-color);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@e content {
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
|
||||
@b select-dropdown__wrap {
|
||||
max-height: var(--select-dropdown-max-height);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@b select-dropdown__list {
|
||||
|
|
Loading…
Reference in New Issue