Commit f60fe752 authored by 杨奕's avatar 杨奕 Committed by baiyaaaaa

Changelog: update for 1.2.2 (#3141)

parent 705325c7
## Changelog ## Changelog
### 1.2.2
*2017-02-28*
- Fixed compatibility issues with Vue 2.2, #3002 #3067 #3097
- Fixed Cascader's dropdown hiding behind Dialog when nested in a Dialog, #3035
- Fixed incorrect parameter of `change` event of Cascader, #3014
- Add `change` event for ColorPicker, #3049 (by @nicoeg)
- Fixed `setCheckedKeys` method of Tree not working on non-leaf nodes, #2967 (by @rainyLeo)
### 1.2.1 ### 1.2.1
*2017-02-23* *2017-02-23*
......
## 更新日志 ## 更新日志
### 1.2.2
*2017-02-28*
- 修复若干组件与 Vue 2.2 不兼容的问题,#3002 #3067 #3097
- 修复嵌套在 Dialog 内的 Cascader 下拉框有时出现在 Dialog 之后的问题,#3035
- 修复 Cascader 的 `change` 事件参数在某些情况下不正确的问题,#3014
- 新增 ColorPicker 的 `change` 事件,#3049(by @nicoeg)
- 修复 Tree 的 `setCheckedKeys` 方法对非叶子节点无效的问题,#2967(by @rainyLeo)
### 1.2.1 ### 1.2.1
*2017-02-23* *2017-02-23*
......
...@@ -42,7 +42,7 @@ if [ "$TRAVIS_TAG" ]; then ...@@ -42,7 +42,7 @@ if [ "$TRAVIS_TAG" ]; then
export SUB_FOLDER=$(echo "$TRAVIS_TAG" | grep -o -E "\d+\.\d+") export SUB_FOLDER=$(echo "$TRAVIS_TAG" | grep -o -E "\d+\.\d+")
echo $SUB_FOLDER echo $SUB_FOLDER
SUB_FOLDER='1.1' SUB_FOLDER='1.2'
mkdir $SUB_FOLDER mkdir $SUB_FOLDER
rm -rf *.js *.css *.map static rm -rf *.js *.css *.map static
rm -rf $SUB_FOLDER/** rm -rf $SUB_FOLDER/**
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
]); ]);
}, },
setCheckedKeys() { setCheckedKeys() {
this.$refs.tree.setCheckedKeys([8]); this.$refs.tree.setCheckedKeys([3]);
}, },
resetChecked() { resetChecked() {
this.$refs.tree.setCheckedKeys([]); this.$refs.tree.setCheckedKeys([]);
...@@ -446,7 +446,7 @@ Tree nodes can be initially expanded or checked ...@@ -446,7 +446,7 @@ Tree nodes can be initially expanded or checked
}]); }]);
}, },
setCheckedKeys() { setCheckedKeys() {
this.$refs.tree.setCheckedKeys([8]); this.$refs.tree.setCheckedKeys([3]);
}, },
resetChecked() { resetChecked() {
this.$refs.tree.setCheckedKeys([]); this.$refs.tree.setCheckedKeys([]);
......
...@@ -88,4 +88,9 @@ ...@@ -88,4 +88,9 @@
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------- |---------- |------------- |-------- | |---------- |-------- |---------- |------------- |-------- |
| show-alpha | 是否支持透明度选择 | boolean | — | false | | show-alpha | 是否支持透明度选择 | boolean | — | false |
| color-format | 写入 v-model 的颜色的格式 | string | hsl / hsv / hex / rgb | hex(show-alpha 为 false)/ rgb(show-alpha 为 true) | | color-format | 写入 v-model 的颜色的格式 | string | hsl / hsv / hex / rgb | hex(show-alpha 为 false)/ rgb(show-alpha 为 true) |
\ No newline at end of file
### Events
| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
| change | 当绑定值变化时触发 | 当前值 |
\ No newline at end of file
...@@ -95,4 +95,4 @@ Vue.use(ElementUI) ...@@ -95,4 +95,4 @@ Vue.use(ElementUI)
} }
``` ```
如果不清楚 `babel-plugin-component` 是什么,请阅读 <a href="./#/zh-CN/component/quickstart">上手</a> 一节。更多 `element-theme` 用法请参考[项目仓库](https://github.com/ElementUI/element-theme) 如果不清楚 `babel-plugin-component` 是什么,请阅读 <a href="./#/zh-CN/component/quickstart">上手</a> 一节。更多 `element-theme` 用法请参考[项目仓库](https://github.com/ElementUI/element-theme)
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
]); ]);
}, },
setCheckedKeys() { setCheckedKeys() {
this.$refs.tree.setCheckedKeys([8]); this.$refs.tree.setCheckedKeys([3]);
}, },
resetChecked() { resetChecked() {
this.$refs.tree.setCheckedKeys([]); this.$refs.tree.setCheckedKeys([]);
...@@ -468,7 +468,7 @@ ...@@ -468,7 +468,7 @@
}]); }]);
}, },
setCheckedKeys() { setCheckedKeys() {
this.$refs.tree.setCheckedKeys([8]); this.$refs.tree.setCheckedKeys([3]);
}, },
resetChecked() { resetChecked() {
this.$refs.tree.setCheckedKeys([]); this.$refs.tree.setCheckedKeys([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment