From c7e2a881debdad2ea0dbb90f5e5774b42ec50f67 Mon Sep 17 00:00:00 2001 From: ZhengJie <201507802@qq.com> Date: Sat, 23 May 2020 16:55:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E5=AE=8C=E5=96=84](v2.5):?= =?UTF-8?q?=20v2.5=20=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=88=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/elunez/eladmin/issues/366 --- src/assets/styles/eladmin.scss | 10 ++++++++++ src/components/Crud/crud.js | 2 ++ src/views/generator/index.vue | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/assets/styles/eladmin.scss b/src/assets/styles/eladmin.scss index 9bc5d22..e1e0195 100644 --- a/src/assets/styles/eladmin.scss +++ b/src/assets/styles/eladmin.scss @@ -9,6 +9,16 @@ line-height: 30.5px; } } + .el-form-item-label { + margin: 0 3px 9px 0; + display: inline-block; + text-align: right; + vertical-align: middle; + font-size: 14px; + color: #606266; + line-height: 30.5px; + padding: 0 7px 0 7px; + } .el-button+.el-button { margin-left: 0 !important; } diff --git a/src/components/Crud/crud.js b/src/components/Crud/crud.js index 466f0b0..8ad1744 100644 --- a/src/components/Crud/crud.js +++ b/src/components/Crud/crud.js @@ -386,6 +386,8 @@ function CRUD(options) { Object.keys(query).forEach(key => { query[key] = defaultQuery[key] }) + // 重置参数 + this.params = {} if (toQuery) { crud.toQuery() } diff --git a/src/views/generator/index.vue b/src/views/generator/index.vue index 9c7448e..93ec6dc 100644 --- a/src/views/generator/index.vue +++ b/src/views/generator/index.vue @@ -42,7 +42,7 @@ 下载 - 编辑 + 配置 生成