From afb62edc58b61cc190ff07214c4ac37486c80850 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 8 Apr 2019 18:10:41 +0800 Subject: [PATCH 1/7] fix[Sidebar]: fixed sidebar background css bug --- src/styles/sidebar.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index e0accb83..525a65b9 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -12,6 +12,7 @@ .sidebar-container { transition: width 0.28s; width: $sideBarWidth !important; + background-color: $menuBg; height: 100%; position: fixed; font-size: 0px; From c833cb6efabdef7f2d1241d1b204e2701f8a04c1 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 8 Apr 2019 21:45:10 +0800 Subject: [PATCH 2/7] perf[Chore]: optimization.splitChunks adapt cnpm module name --- build/index.js | 2 +- vue.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/index.js b/build/index.js index baf3807a..0c57de2a 100644 --- a/build/index.js +++ b/build/index.js @@ -26,7 +26,7 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) { app.listen(port, function () { console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) if (report) { - console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}/report.html`)) + console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) } }) diff --git a/vue.config.js b/vue.config.js index d3a08991..d5fede2b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -114,7 +114,7 @@ module.exports = { elementUI: { name: 'chunk-elementUI', // split elementUI into a single package priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app - test: /[\\/]node_modules[\\/]element-ui[\\/]/ + test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm }, commons: { name: 'chunk-commons', From 342b7b428a7e87951a03228bc2ee750cbb551eb9 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 8 Apr 2019 22:05:10 +0800 Subject: [PATCH 3/7] fix[Chore]: add @vue/cli-plugin-eslint --- package.json | 1 + vue.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f8f98543..1b59855b 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "@babel/core": "7.0.0", "@babel/register": "7.0.0", "@vue/cli-plugin-babel": "3.5.3", + "@vue/cli-plugin-eslint": "3.5.1", "@vue/cli-plugin-unit-jest": "3.5.3", "@vue/cli-service": "3.5.3", "@vue/test-utils": "1.0.0-beta.29", diff --git a/vue.config.js b/vue.config.js index d5fede2b..cbd79510 100644 --- a/vue.config.js +++ b/vue.config.js @@ -21,7 +21,7 @@ module.exports = { publicPath: '/', outputDir: 'dist', assetsDir: 'static', - lintOnSave: process.env.NODE_ENV === 'development' ? 'error' : false, + lintOnSave: process.env.NODE_ENV === 'development', productionSourceMap: false, devServer: { port: port, From 8f45dbe328fd032b4914f6b4f6d4be63975f96b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Tue, 9 Apr 2019 09:58:08 +0800 Subject: [PATCH 4/7] feature[Icons]: add element-ui icons demo (#1865) --- src/views/svg-icons/element-icon.json | 1 + src/views/svg-icons/index.vue | 64 ++++++++++++++++++--------- src/views/svg-icons/requireIcons.js | 1 - 3 files changed, 43 insertions(+), 23 deletions(-) create mode 100644 src/views/svg-icons/element-icon.json diff --git a/src/views/svg-icons/element-icon.json b/src/views/svg-icons/element-icon.json new file mode 100644 index 00000000..15072a4c --- /dev/null +++ b/src/views/svg-icons/element-icon.json @@ -0,0 +1 @@ +["info","error","success","warning","question","back","arrow-left","arrow-down","arrow-right","arrow-up","caret-left","caret-bottom","caret-top","caret-right","d-arrow-left","d-arrow-right","minus","plus","remove","circle-plus","remove-outline","circle-plus-outline","close","check","circle-close","circle-check","circle-close-outline","circle-check-outline","zoom-out","zoom-in","d-caret","sort","sort-down","sort-up","tickets","document","goods","sold-out","news","message","date","printer","time","bell","mobile-phone","service","view","menu","more","more-outline","star-on","star-off","location","location-outline","phone","phone-outline","picture","picture-outline","delete","search","edit","edit-outline","rank","refresh","share","setting","upload","upload2","download","loading"] diff --git a/src/views/svg-icons/index.vue b/src/views/svg-icons/index.vue index b14d4be6..665b1d03 100644 --- a/src/views/svg-icons/index.vue +++ b/src/views/svg-icons/index.vue @@ -4,37 +4,57 @@ Add and use

-
-
- -
- {{ generateIconCode(item) }} -
-
- - {{ item }} -
-
-
-
+ + +
+ +
+ {{ generateIconCode(item) }} +
+
+ + {{ item }} +
+
+
+
+ +
+ +
+ {{ generateElementIconCode(item) }} +
+
+ + {{ item }} +
+
+
+
+