From cafdbf41f2da6d49ec86ba418f7d0888693f4a13 Mon Sep 17 00:00:00 2001 From: MaYuanhai <414199639@qq.com> Date: Thu, 6 Jun 2019 17:46:00 +0800 Subject: [PATCH 01/24] perf[PanThumb]: Replace the image tag with background-image to prevent the stretching (#2202) --- src/components/PanThumb/index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/PanThumb/index.vue b/src/components/PanThumb/index.vue index de6940ad..1bcf4170 100644 --- a/src/components/PanThumb/index.vue +++ b/src/components/PanThumb/index.vue @@ -5,7 +5,8 @@ - + +
@@ -52,7 +53,8 @@ export default { .pan-thumb { width: 100%; height: 100%; - background-size: 100%; + background-position: center center; + background-size: cover; border-radius: 50%; overflow: hidden; position: absolute; @@ -60,7 +62,7 @@ export default { transition: all 0.3s ease-in-out; } -.pan-thumb:after { +/* .pan-thumb:after { content: ''; width: 8px; height: 8px; @@ -71,7 +73,7 @@ export default { margin: -4px 0 0 -4px; background: radial-gradient(ellipse at center, rgba(14, 14, 14, 1) 0%, rgba(125, 126, 125, 1) 100%); box-shadow: 0 0 1px rgba(255, 255, 255, 0.9); -} +} */ .pan-info { position: absolute; From e216e116187274752df4fe107afd623199586cf9 Mon Sep 17 00:00:00 2001 From: TinaryTree Date: Thu, 27 Jun 2019 23:15:48 +0800 Subject: [PATCH 02/24] docs: fix typo README.zh-CN.md (#2283) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改错别字 --- README.zh-CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.zh-CN.md b/README.zh-CN.md index 96a57757..6ade28a4 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -164,7 +164,7 @@ cd vue-element-admin # 安装依赖 npm install -# 建议不要直接使用 cnpm 安装以来,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 +# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 npm install --registry=https://registry.npm.taobao.org # 启动服务 From acbbc5f52d0670908eb20e3e9421903bbe5a3631 Mon Sep 17 00:00:00 2001 From: MaYuanhai <414199639@qq.com> Date: Sun, 30 Jun 2019 11:09:19 +0800 Subject: [PATCH 03/24] perf[clipboard.js]: remove redundant code (#2307) --- src/utils/clipboard.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/utils/clipboard.js b/src/utils/clipboard.js index e916a44d..cf5b07a1 100644 --- a/src/utils/clipboard.js +++ b/src/utils/clipboard.js @@ -22,14 +22,10 @@ export default function handleClipboard(text, event) { }) clipboard.on('success', () => { clipboardSuccess() - clipboard.off('error') - clipboard.off('success') clipboard.destroy() }) clipboard.on('error', () => { clipboardError() - clipboard.off('error') - clipboard.off('success') clipboard.destroy() }) clipboard.onClick(event) From 5d12cbd75c811c8a4962521cf42b887e855a34e9 Mon Sep 17 00:00:00 2001 From: Pan Date: Sun, 30 Jun 2019 16:07:54 +0800 Subject: [PATCH 04/24] bump: update axios for security vulnerability --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 119abd6c..a67b3fe7 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "url": "https://github.com/PanJiaChen/vue-element-admin/issues" }, "dependencies": { - "axios": "0.18.0", + "axios": "0.18.1", "clipboard": "2.0.4", "codemirror": "5.45.0", "driver.js": "0.9.5", From 6a89136805515ec150b96a4613121528ce385767 Mon Sep 17 00:00:00 2001 From: itsccn Date: Thu, 4 Jul 2019 14:38:31 +0800 Subject: [PATCH 05/24] bump: update @vue/cli-plugin-eslint version (#2327) FIx cannot find module '.../node_modules/eslint/lib/api.js/package.json' bug,see https://github.com/vuejs/vue-cli/issues/4231. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a67b3fe7..02b8aa58 100644 --- a/package.json +++ b/package.json @@ -75,7 +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-eslint": "^3.9.1", "@vue/cli-plugin-unit-jest": "3.5.3", "@vue/cli-service": "3.5.3", "@vue/test-utils": "1.0.0-beta.29", From 9ff40abd74b21c3534c67a5ffdff8d20d6b443cf Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 4 Jul 2019 16:41:44 +0800 Subject: [PATCH 06/24] chore: allow dynamic set port --- vue.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 4a5cd438..7b8f3a5d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,10 +7,13 @@ function resolve(dir) { } const name = defaultSettings.title || 'vue Element Admin' // page title + // If your port is set to 80, // use administrator privileges to execute the command line. // For example, Mac: sudo npm run -const port = 9527 // dev port +// You can change the port by the following method: +// port = 9527 npm run dev OR npm run dev --port = 9527 +const port = process.env.port || process.env.npm_config_port || 9527 // dev port // All configuration item explanations can be find in https://cli.vuejs.org/config/ module.exports = { From 7be0bd57510a56ab6b35ceca227e92f6fa5af7eb Mon Sep 17 00:00:00 2001 From: why Date: Tue, 16 Jul 2019 17:12:26 +0800 Subject: [PATCH 07/24] fix[complex-table]: form header sort icon is out of sync (#2382) --- src/views/table/complex-table.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/table/complex-table.vue b/src/views/table/complex-table.vue index 43b00e80..51ea42a1 100644 --- a/src/views/table/complex-table.vue +++ b/src/views/table/complex-table.vue @@ -35,7 +35,7 @@ style="width: 100%;" @sort-change="sortChange" > - + @@ -375,6 +375,14 @@ export default { return v[j] } })) + }, + getSortClass: function(key) { + const sort = this.listQuery.sort + return sort === `+${key}` + ? 'ascending' + : sort === `-${key}` + ? 'descending' + : '' } } } From c4b9090b0b32bf1feaefb6f565203e0bcc76e504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Tue, 27 Aug 2019 20:57:51 +0800 Subject: [PATCH 08/24] fix: fixed missing icons --- src/views/clipboard/index.vue | 4 ++-- src/views/components-demo/avatar-upload.vue | 2 +- src/views/components-demo/mixin.vue | 2 +- src/views/error-page/401.vue | 2 +- src/views/excel/export-excel.vue | 2 +- src/views/excel/merge-header.vue | 2 +- src/views/excel/select-excel.vue | 2 +- src/views/tab/index.vue | 2 +- src/views/zip/index.vue | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/clipboard/index.vue b/src/views/clipboard/index.vue index e78c6359..4a6bdd1e 100644 --- a/src/views/clipboard/index.vue +++ b/src/views/clipboard/index.vue @@ -3,13 +3,13 @@ - + copy - + copy diff --git a/src/views/components-demo/avatar-upload.vue b/src/views/components-demo/avatar-upload.vue index fae36ad8..5fb6471e 100644 --- a/src/views/components-demo/avatar-upload.vue +++ b/src/views/components-demo/avatar-upload.vue @@ -7,7 +7,7 @@ - + Change Avatar diff --git a/src/views/components-demo/mixin.vue b/src/views/components-demo/mixin.vue index c64a073a..425cf4fb 100644 --- a/src/views/components-demo/mixin.vue +++ b/src/views/components-demo/mixin.vue @@ -49,7 +49,7 @@
- + 标题 diff --git a/src/views/error-page/401.vue b/src/views/error-page/401.vue index 032e808f..a52ed23b 100644 --- a/src/views/error-page/401.vue +++ b/src/views/error-page/401.vue @@ -1,6 +1,6 @@ @@ -80,6 +71,9 @@ export default { isActive(route) { return route.path === this.$route.path }, + isAffix(tag) { + return tag.meta && tag.meta.affix + }, filterAffixTags(routes, basePath = '/') { let tags = [] routes.forEach(route => { From ae92d6f95e05d9c2a38b3ee0c92d222c55e8227a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Sat, 12 Oct 2019 17:51:26 +0800 Subject: [PATCH 24/24] docs: add job ad --- src/views/documentation/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/documentation/index.vue b/src/views/documentation/index.vue index 32f924c3..d68d19d9 100644 --- a/src/views/documentation/index.vue +++ b/src/views/documentation/index.vue @@ -4,6 +4,11 @@ {{ $t('documentation.github') }} 国内文档 + 内推招聘