diff --git a/examples/with-element-ui/nuxt.config.js b/examples/with-element-ui/nuxt.config.js index 643f79ee78..e53632dade 100644 --- a/examples/with-element-ui/nuxt.config.js +++ b/examples/with-element-ui/nuxt.config.js @@ -3,7 +3,7 @@ module.exports = { ** Global CSS */ css: [ - 'element-ui/lib/theme-default/index.css' + 'element-ui/lib/theme-chalk/index.css' ], /* diff --git a/examples/with-element-ui/package.json b/examples/with-element-ui/package.json index d5696a30ea..40dc968f5b 100644 --- a/examples/with-element-ui/package.json +++ b/examples/with-element-ui/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "element-ui": "^1.4.9", + "element-ui": "^2", "nuxt": "latest" }, "scripts": { diff --git a/examples/with-element-ui/plugins/element-ui.js b/examples/with-element-ui/plugins/element-ui.js index cb618add96..346f98d67b 100644 --- a/examples/with-element-ui/plugins/element-ui.js +++ b/examples/with-element-ui/plugins/element-ui.js @@ -1,5 +1,5 @@ import Vue from 'vue' -import Element from 'element-ui/lib/element-ui.common' +import Element from 'element-ui' import locale from 'element-ui/lib/locale/lang/en' export default () => {