From ea9ef20c961f2b9a8d0eff34df3065c71ad53807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E9=87=91=E6=B3=BD?= <1098696801@qq.com> Date: Fri, 13 May 2022 17:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magic-boot-ui/package.json | 2 +- .../src/components/magic/basic/mb-button.vue | 19 +++++++----- .../magic/basic/mb-editor-table.vue | 5 ++++ .../src/components/magic/data/mb-search.vue | 12 +++----- .../src/components/magic/data/mb-table.vue | 8 ++--- .../components/magic/form/mb-upload-file.vue | 13 +++++++-- .../components/magic/form/mb-upload-image.vue | 29 +++++++++++++------ .../src/components/magic/template/mb-list.vue | 2 +- .../src/views/examples/test-mb-list.vue | 4 +-- .../src/views/examples/upload-file.vue | 13 +++++---- .../src/views/system/dict/dict-list.vue | 2 +- .../src/views/system/menu/menu-list.vue | 2 +- .../src/views/system/office/office-list.vue | 2 +- .../src/views/system/user/user-list.vue | 4 +-- .../src/main/resources/application-demo.yml | 4 +++ 15 files changed, 76 insertions(+), 45 deletions(-) create mode 100644 magic-boot/src/main/resources/application-demo.yml diff --git a/magic-boot-ui/package.json b/magic-boot-ui/package.json index 1efcbd9..0d6be38 100644 --- a/magic-boot-ui/package.json +++ b/magic-boot-ui/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "axios": "^0.24.0", - "element-plus": "^2.1.8", + "element-plus": "^2.1.11", "nprogress": "0.2.0", "path-browserify": "^1.0.1", "vue": "^3.2.25", diff --git a/magic-boot-ui/src/components/magic/basic/mb-button.vue b/magic-boot-ui/src/components/magic/basic/mb-button.vue index 4105244..b8d51a7 100644 --- a/magic-boot-ui/src/components/magic/basic/mb-button.vue +++ b/magic-boot-ui/src/components/magic/basic/mb-button.vue @@ -1,9 +1,10 @@ @@ -14,10 +15,14 @@ import {ElNotification} from "element-plus"; export default { name: 'MbButton', props: { - el: { + props: { type: Object, default: () => {} }, + plain: { + type: Boolean, + default: false + }, btnType: { type: String, default: '' @@ -61,7 +66,7 @@ export default { }, data() { return { - el_: this.el || {}, + props_: this.props || {}, requestMethod_: this.requestMethod, beforeConfirm_: this.beforeConfirm, successTips_: this.successTips, @@ -72,9 +77,9 @@ export default { if (this.btnType) { if (this.btnType === 'delete') { this.requestMethod_ = 'delete' - this.el_.type = 'danger' - this.el_.text = '删除' - this.el_.icon = 'ElIconDelete' + this.props_.type = 'danger' + this.props_.text = '删除' + this.props_.icon = 'ElIconDelete' this.beforeConfirm_ = '此操作将永久删除该数据, 是否继续?' this.successTips_ = '删除成功!' this.failTips_ = '删除失败!' diff --git a/magic-boot-ui/src/components/magic/basic/mb-editor-table.vue b/magic-boot-ui/src/components/magic/basic/mb-editor-table.vue index 8332fed..7e0ef16 100644 --- a/magic-boot-ui/src/components/magic/basic/mb-editor-table.vue +++ b/magic-boot-ui/src/components/magic/basic/mb-editor-table.vue @@ -17,6 +17,11 @@ /> + + + diff --git a/magic-boot-ui/src/components/magic/data/mb-search.vue b/magic-boot-ui/src/components/magic/data/mb-search.vue index adb0747..9c77c4b 100644 --- a/magic-boot-ui/src/components/magic/data/mb-search.vue +++ b/magic-boot-ui/src/components/magic/data/mb-search.vue @@ -4,7 +4,7 @@ - + - + @@ -36,7 +36,7 @@