diff --git a/.eslintrc b/.eslintrc
index ba8a1b188..efb7c4f79 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -6,7 +6,7 @@
"expect": true,
"sinon": true
},
- "plugins": ['vue'],
+ "plugins": ['vue','json'],
"extends": 'elemefe',
"parserOptions": {
"ecmaFeatures": {
diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md
index df777aff6..497b52d20 100644
--- a/CHANGELOG.en-US.md
+++ b/CHANGELOG.en-US.md
@@ -1,5 +1,15 @@
## Changelog
+### 2.0.4
+
+*2017-11-10*
+
+- Improved accessibility for Cascader, Dropdown, Message, Notification, Popover, Tooltip and Tree
+- Fixed Container resize when the width of viewport decreases, #8042
+- Fixed Tree's `updateKeyChildren` incorrectly deleting child nodes, #8100
+- Fixed bordered CheckboxButton's height when nested in a Form, #8100
+- Fixed Menu's parsing error for custom colors, #8153 (by @zhouyixiang)
+
### 2.0.3
*2017-11-03*
diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md
index d713059db..1e21c98a4 100644
--- a/CHANGELOG.zh-CN.md
+++ b/CHANGELOG.zh-CN.md
@@ -1,5 +1,15 @@
## 更新日志
+### 2.0.4
+
+*2017-11-10*
+
+- 提升 Cascader、Dropdown、Message、Notification、Popover、Tooltip、Tree 的可访问性
+- 修复当视口变窄时 Container 无法同步更新其宽度的问题,#8042
+- 修复 Tree 的 `updateKeyChildren` 在删除子节点时的行为错误,#8100
+- 修复带有边框的 CheckboxButton 在 Form 中高度错误的问题,#8100
+- 修复 Menu 在解析自定义颜色时的错误,#8153(by @zhouyixiang)
+
### 2.0.3
*2017-11-03*
diff --git a/examples/app.vue b/examples/app.vue
index 784c0b888..035034755 100644
--- a/examples/app.vue
+++ b/examples/app.vue
@@ -191,7 +191,6 @@
const lang = location.hash.replace('#', '').split('/')[1] || 'zh-CN';
const localize = lang => {
- console.log(lang);
switch (lang) {
case 'zh-CN':
use(zhLocale);
@@ -232,6 +231,7 @@
const preferGithub = localStorage.getItem('PREFER_GITHUB');
if (href.indexOf('element-cn') > -1 || preferGithub) return;
setTimeout(() => {
+ if (this.lang !== 'zh-CN') return;
this.$confirm('建议大陆用户访问部署在国内的站点,是否跳转?', '提示')
.then(() => {
location.href = location.href.replace('element.', 'element-cn.');
@@ -249,12 +249,12 @@
this.suggestJump();
}
setTimeout(() => {
- const notified = localStorage.getItem('RELEASE_NOTIFIED');
- if (!notified) {
+ const notified = localStorage.getItem('ES_NOTIFIED');
+ if (!notified && this.lang !== 'zh-CN') {
const h = this.$createElement;
const title = this.lang === 'zh-CN'
- ? '2.0 正式发布'
- : '2.0 available now';
+ ? '帮助我们完成西班牙语文档'
+ : 'Help us with Spanish docs';
const messages = this.lang === 'zh-CN'
? ['点击', '这里', '查看详情']
: ['Click ', 'here', ' to learn more'];
@@ -266,13 +266,13 @@
h('a', {
attrs: {
target: '_blank',
- href: `https://github.com/ElemeFE/element/issues/${ this.lang === 'zh-CN' ? '7755' : '7756' }`
+ href: 'https://github.com/ElemeFE/element/issues/8074'
}
}, messages[1]),
messages[2]
]),
onClose() {
- localStorage.setItem('RELEASE_NOTIFIED', 1);
+ localStorage.setItem('ES_NOTIFIED', 1);
}
});
}
diff --git a/examples/docs/en-US/select.md b/examples/docs/en-US/select.md
index 79e85c45b..abff1c601 100644
--- a/examples/docs/en-US/select.md
+++ b/examples/docs/en-US/select.md
@@ -101,6 +101,7 @@
value8: '',
value9: [],
value10: [],
+ value11: [],
loading: false,
states: ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"]
};
@@ -320,7 +321,7 @@ You can clear Select using a clear icon.
Multiple select uses tags to display selected options.
-:::demo Set `multiple` attribute for `el-select` to enable multiple mode. In this case, the value of `v-model` will be an array of selected options.
+:::demo Set `multiple` attribute for `el-select` to enable multiple mode. In this case, the value of `v-model` will be an array of selected options. By default the selected options will be displayed as Tags. You can collapse them to a text by using `collapse-tags` attribute.
```html