Explorar o código

Doc: fix on-demand examples to support babel 7 (#9504)

* Update quickstart.md

* Update quickstart.md

* Update quickstart.md

* Update quickstart.md

* Adjust on demand import in es docs
Cristi Jora %!s(int64=7) %!d(string=hai) anos
pai
achega
017cadda71

+ 2 - 3
examples/docs/en-US/quickstart.md

@@ -57,12 +57,11 @@ Then edit .babelrc:
   "presets": [
     ["es2015", { "modules": false }]
   ],
-  "plugins": [["component", [
-    {
+  "plugins": [["component", {
       "libraryName": "element-ui",
       "styleLibraryName": "theme-chalk"
     }
-  ]]]
+  ]]
 }
 ```
 

+ 2 - 3
examples/docs/es/quickstart.md

@@ -57,12 +57,11 @@ Luego edite .babelrc:
   "presets": [
     ["es2015", { "modules": false }]
   ],
-  "plugins": [["component", [
-    {
+  "plugins": [["component", {
       "libraryName": "element-ui",
       "styleLibraryName": "theme-chalk"
     }
-  ]]]
+  ]]
 }
 ```
 

+ 2 - 3
examples/docs/zh-CN/quickstart.md

@@ -57,12 +57,11 @@ npm install babel-plugin-component -D
   "presets": [
     ["es2015", { "modules": false }]
   ],
-  "plugins": [["component", [
-    {
+  "plugins": [["component", {
       "libraryName": "element-ui",
       "styleLibraryName": "theme-chalk"
     }
-  ]]]
+  ]]
 }
 ```