From 2e4f6bef9ad0115e8439a584be520f1f398a4b86 Mon Sep 17 00:00:00 2001 From: wangguohao Date: Sat, 2 Feb 2019 10:03:18 +0800 Subject: [PATCH] update custom-theme docs --- examples/docs/en-US/custom-theme.md | 15 +++++++++------ examples/docs/es/custom-theme.md | 15 +++++++++------ examples/docs/zh-CN/custom-theme.md | 15 +++++++++------ 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/examples/docs/en-US/custom-theme.md b/examples/docs/en-US/custom-theme.md index fd277bec2..15e82e465 100644 --- a/examples/docs/en-US/custom-theme.md +++ b/examples/docs/en-US/custom-theme.md @@ -110,12 +110,15 @@ Vue.use(ElementUI) If you are using `babel-plugin-component` for on-demand import, just modify `.babelrc` and specify `styleLibraryName` to the path where your custom theme is located relative to `.babelrc`. Note that `~` is required: ```json { - "plugins": [["component", [ - { - "libraryName": "element-ui", - "styleLibraryName": "~theme" - } - ]]] + "plugins": [ + [ + "component", + { + "libraryName": "element-ui", + "styleLibraryName": "~theme" + } + ] + ] } ``` diff --git a/examples/docs/es/custom-theme.md b/examples/docs/es/custom-theme.md index 121f27b85..e253796e4 100644 --- a/examples/docs/es/custom-theme.md +++ b/examples/docs/es/custom-theme.md @@ -110,12 +110,15 @@ Vue.use(ElementUI) Si esta utilizando `babel-plugin-component` para importar bajo demanda, solo debe modificar el archivo `.babelrc` y especificar en la propiedad `styleLibraryName` la ruta en donde se encuentra localizado su tema personalizado relativo a `.babelrc`. **Nota** el carácter `~` es obligatorio: ```json { - "plugins": [["component", [ - { - "libraryName": "element-ui", - "styleLibraryName": "~theme" - } - ]]] + "plugins": [ + [ + "component", + { + "libraryName": "element-ui", + "styleLibraryName": "~theme" + } + ] + ] } ``` diff --git a/examples/docs/zh-CN/custom-theme.md b/examples/docs/zh-CN/custom-theme.md index 50b36cd9c..bb948f101 100644 --- a/examples/docs/zh-CN/custom-theme.md +++ b/examples/docs/zh-CN/custom-theme.md @@ -109,12 +109,15 @@ Vue.use(ElementUI) 如果是搭配 `babel-plugin-component` 一起使用,只需要修改 `.babelrc` 的配置,指定 `styleLibraryName` 路径为自定义主题相对于 `.babelrc` 的路径,注意要加 `~`。 ```json { - "plugins": [["component", [ - { - "libraryName": "element-ui", - "styleLibraryName": "~theme" - } - ]]] + "plugins": [ + [ + "component", + { + "libraryName": "element-ui", + "styleLibraryName": "~theme" + } + ] + ] } ```