Pārlūkot izejas kodu

Changelog: update for 2.0.0-alpha.2

Leopoldthecoder 7 gadi atpakaļ
vecāks
revīzija
53f9e5ee2e
3 mainītis faili ar 23 papildinājumiem un 4 dzēšanām
  1. 10 0
      CHANGELOG.en-US.md
  2. 9 0
      CHANGELOG.zh-CN.md
  3. 4 4
      examples/components/theme-picker.vue

+ 10 - 0
CHANGELOG.en-US.md

@@ -1,5 +1,15 @@
 ## Changelog
 
+### 2.0.0-alpha.2
+
+*2017-10-05*
+
+- Updated the primary color of `theme-chalk`, #7351
+- Fixed console error when using Dropdown, #7322
+- Fixed console error when using Menu, #7321
+- Added `popper-class` attribute for ColorPicker, #7351
+- Now Button's `disabled` attribute works correctly, #7352
+
 ### 2.0.0-alpha.1
 
 *2017-09-30*

+ 9 - 0
CHANGELOG.zh-CN.md

@@ -1,5 +1,14 @@
 ## 更新日志
 
+### 2.0.0-alpha.2
+*2017-10-05*
+
+- 修正 `theme-chalk` 的主色,#7351
+- 修复使用 Dropdown 时控制台报错的问题,#7322
+- 修复使用 Menu 时控制台报错的问题,#7321
+- ColorPicker 新增 `popper-class` 属性,#7351
+- 修复 Button 的 `disabled` 属性无效的问题,#7352
+
 ### 2.0.0-alpha.1
 *2017-09-30*
 

+ 4 - 4
examples/components/theme-picker.vue

@@ -39,10 +39,10 @@
         if (typeof val !== 'string') return;
         const themeCluster = this.getThemeCluster(val.replace('#', ''));
         const originalCluster = this.getThemeCluster(oldVal.replace('#', ''));
-        const getHandler = (text, id) => {
+        const getHandler = (variable, id) => {
           return () => {
             const originalCluster = this.getThemeCluster(ORIGINAL_THEME.replace('#', ''));
-            let newStyle = this.updateStyle(text, originalCluster, themeCluster);
+            let newStyle = this.updateStyle(this[variable], originalCluster, themeCluster);
 
             let styleTag = document.getElementById(id);
             if (!styleTag) {
@@ -54,8 +54,8 @@
           };
         };
 
-        const chalkHandler = getHandler(this.chalk, 'chalk-style');
-        const docsHandler = getHandler(this.docs, 'docs-style');
+        const chalkHandler = getHandler('chalk', 'chalk-style');
+        const docsHandler = getHandler('docs', 'docs-style');
 
         if (!this.chalk) {
           const url = `https://unpkg.com/element-ui@${ version }/lib/theme-chalk/index.css`;