diff --git a/examples/components/footer.vue b/examples/components/footer.vue
index ca06e032563..d24ca4063c8 100644
--- a/examples/components/footer.vue
+++ b/examples/components/footer.vue
@@ -7,8 +7,7 @@
{{ langConfig.changelog }}
{{ langConfig.faq }}
{{ langConfig.starter }}
- {{ langConfig.theme }}
- {{ langConfig.preview }}
+ {{ langConfig.theme }}
Element-React
Element-Angular
@@ -62,7 +61,7 @@
display: inline-block;
vertical-align: top;
margin-right: 110px;
-
+
h4 {
font-size: 18px;
color: #333;
@@ -86,7 +85,7 @@
.footer-social {
float: right;
text-align: right;
-
+
.footer-social-title {
color: #666;
font-size: 18px;
@@ -144,13 +143,13 @@
height: auto;
}
}
-
+
@media (max-width: 1000px) {
.footer-social {
display: none;
}
}
-
+
@media (max-width: 768px) {
.footer {
.footer-main {
diff --git a/examples/components/theme-configurator/index.vue b/examples/components/theme-configurator/index.vue
index 04ed6f1806f..a11591e22f4 100644
--- a/examples/components/theme-configurator/index.vue
+++ b/examples/components/theme-configurator/index.vue
@@ -48,6 +48,7 @@ import {
export default {
props: {
themeConfig: Object,
+ previewConfig: Object,
isOfficial: Boolean,
onUserConfigUpdate: Function
},
@@ -155,7 +156,7 @@ export default {
this.onAction();
},
onDownload() {
- bus.$emit(ACTION_DOWNLOAD_THEME, this.userConfig);
+ bus.$emit(ACTION_DOWNLOAD_THEME, this.userConfig, this.previewConfig.name);
},
onAction() {
this.onUserConfigUpdate(this.userConfig);
diff --git a/examples/components/theme/loader/index.vue b/examples/components/theme/loader/index.vue
index b84bd25ddab..e078d11589d 100644
--- a/examples/components/theme/loader/index.vue
+++ b/examples/components/theme/loader/index.vue
@@ -23,8 +23,8 @@ export default {
this.userConfig = val;
this.onAction();
});
- bus.$on(ACTION_DOWNLOAD_THEME, val => {
- this.onDownload(val);
+ bus.$on(ACTION_DOWNLOAD_THEME, (themeConfig, themeName) => {
+ this.onDownload(themeConfig, themeName);
});
},
data() {
@@ -41,7 +41,7 @@ export default {
});
this.lastApply = time;
},
- onDownload(themeConfig) {
+ onDownload(themeConfig, themeName) {
this.triggertProgressBar(true);
updateVars(
Object.assign({}, themeConfig, { download: true }),
@@ -55,7 +55,7 @@ export default {
.then(() => {
this.triggertProgressBar(false);
});
- ga('send', 'event', 'ThemeConfigurator', 'Download');
+ ga('send', 'event', 'ThemeConfigurator', 'Download', themeName);
},
onAction() {
this.triggertProgressBar(true);
diff --git a/examples/components/theme/theme-card.vue b/examples/components/theme/theme-card.vue
index c928a94828c..bf7ee0d8df4 100644
--- a/examples/components/theme/theme-card.vue
+++ b/examples/components/theme/theme-card.vue
@@ -152,7 +152,7 @@
}
&.is-upload:hover {
box-shadow: none;
- }
+ }
&:hover {
box-shadow: 0 0 10px 0 #999;
@@ -172,10 +172,10 @@
{{getActionDisplayName('upload-theme')}}
-
@@ -224,8 +224,8 @@
{{getActionDisplayName('rename-theme')}}
{{getActionDisplayName('copy-theme')}}
-
{{getActionDisplayName('delete-theme')}}
@@ -325,7 +325,7 @@ export default {
});
break;
case 'download':
- bus.$emit(ACTION_DOWNLOAD_THEME, this.theme);
+ bus.$emit(ACTION_DOWNLOAD_THEME, this.theme, this.config.name);
break;
default:
this.$emit('action', e, this.config);
diff --git a/examples/docs/zh-CN/divider.md b/examples/docs/zh-CN/divider.md
index 190a29154c2..a5dae7d3b24 100644
--- a/examples/docs/zh-CN/divider.md
+++ b/examples/docs/zh-CN/divider.md
@@ -57,5 +57,5 @@
### Divider Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|------------- |---------------- |---------------- |---------------------- |-------- |
-| direction | 设置分割线方向 | boolean | horizontal / vertical | horizontal |
+| direction | 设置分割线方向 | string | horizontal / vertical | horizontal |
| content-position | 设置分割线文案的位置 | string | left / right / center | center |
\ No newline at end of file
diff --git a/examples/i18n/component.json b/examples/i18n/component.json
index 3b1e1736a7b..1b7c553d017 100644
--- a/examples/i18n/component.json
+++ b/examples/i18n/component.json
@@ -12,8 +12,7 @@
"repo": "代码仓库",
"community": "社区",
"changelog": "更新日志",
- "theme": "自定义主题工具",
- "preview": "在线主题生成",
+ "theme": "在线主题生成器",
"faq": "常见问题",
"gitter": "在线讨论",
"starter": "脚手架",
@@ -44,8 +43,7 @@
"repo": "GitHub",
"community": "Community",
"changelog": "Changelog",
- "theme": "Theme CLI tool",
- "preview": "Online theme generator",
+ "theme": "Online Theme Roller",
"faq": "FAQ",
"gitter": "Gitter",
"starter": "Starter kit",
@@ -76,8 +74,7 @@
"repo": "GitHub",
"community": "Comunidad",
"changelog": "Lista de cambios",
- "theme": "Generador de temas por CLI",
- "preview": "Generador de temas en línea",
+ "theme": "Online Theme Roller",
"faq": "FAQ",
"gitter": "Gitter",
"starter": "Kit de inicio",
@@ -108,8 +105,7 @@
"repo": "GitHub",
"community": "Communauté",
"changelog": "Changelog",
- "theme": "Générateur de thème (CLI)",
- "preview": "Générateur de thème en ligne",
+ "theme": "Online Theme Roller",
"faq": "FAQ",
"gitter": "Gitter",
"starter": "Kit de démarrage",
diff --git a/examples/index.tpl b/examples/index.tpl
index fc51edbcb42..ee4ae898d21 100644
--- a/examples/index.tpl
+++ b/examples/index.tpl
@@ -37,6 +37,8 @@
});
<% } %>
<% if (process.env.NODE_ENV !== 'production') { %><% } %>