From 429ee228a741d0c5d1d1c5ff515bb4480e9f71cc Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Wed, 22 Feb 2017 18:16:48 +0800 Subject: [PATCH] Changelog: update for 1.2.0 --- CHANGELOG.en-US.md | 40 +++++++++++++++++-- CHANGELOG.zh-CN.md | 39 ++++++++++++++++-- build/bin/version.js | 4 +- examples/components/footer.vue | 2 +- examples/pages/template/changelog.tpl | 11 +++++ packages/theme-default/src/notification.css | 1 + .../theme-default/src/select-dropdown.css | 1 - 7 files changed, 88 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 40d215bed..48d16d048 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -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 diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 1d4b75a26..a1d178dee 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -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 传入 diff --git a/build/bin/version.js b/build/bin/version.js index 42e63e91c..cf86fa684 100644 --- a/build/bin/version.js +++ b/build/bin/version.js @@ -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)); diff --git a/examples/components/footer.vue b/examples/components/footer.vue index 20f3f7ff7..5137d2d6a 100644 --- a/examples/components/footer.vue +++ b/examples/components/footer.vue @@ -2,7 +2,7 @@