From 9c306a6f812f64ce926633f16dccb440ba3ff756 Mon Sep 17 00:00:00 2001 From: BoBoooooo <17746714@qq.com> Date: Sat, 20 Mar 2021 15:28:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Column):=20=E9=87=8D=E6=9E=84ProTable,?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E7=BA=A7=E8=A1=A8=E5=A4=B4,?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=AB=98=E7=BA=A7=E6=9F=A5=E8=AF=A2=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E6=A0=B7=E5=BC=8F=20@0.9.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/component/crud-table/src/CrudTable.vue | 33 ------ src/component/pro-table/src/Column.vue | 82 +++++++++++++ src/component/pro-table/src/ProTable.vue | 57 ++------- src/component/pro-table/src/SearchForm.vue | 87 ++++++-------- .../pro-table/src/SeniorSearchForm.vue | 68 +++++------ .../pro-table/src/SeniorSearchFormCover.vue | 50 +++----- src/demo/component/Dashboard.vue | 7 +- src/demo/component/PersonProTable.vue | 99 +--------------- src/demo/component/data/index.ts | 108 ++++++++++++++++++ src/utils/utils.ts | 20 ++++ 11 files changed, 307 insertions(+), 306 deletions(-) create mode 100644 src/component/pro-table/src/Column.vue diff --git a/package.json b/package.json index 8489d77..2a79ad0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "element-pro-crud", - "version": "0.9.1-13", + "version": "0.9.2", "author": "BoBo", "main": "lib/ProCrud.umd.min.js", "files": [ diff --git a/src/component/crud-table/src/CrudTable.vue b/src/component/crud-table/src/CrudTable.vue index 61884fd..940edea 100644 --- a/src/component/crud-table/src/CrudTable.vue +++ b/src/component/crud-table/src/CrudTable.vue @@ -639,38 +639,5 @@ export default defineComponent({ padding: 10px; position: relative; width: 100%; - h4 { - margin: 2px 30px 0px 0px; - padding-left: 15px; - font-weight: 500; - font-size: 18px; - } - .table-title { - float: left; - margin-left: 5px; - } - .table-title-absolute { - position: absolute; - top: 110px; - left: 10px; - } - .btn-bar { - float: right; - width: auto; - text-align: right; - & > div, - button { - float: right; - margin-left: 10px; - } - } - .dev-module { - display: inline-block; - margin-left: 20px; - line-height: 28px; - button { - padding: 0; - } - } } diff --git a/src/component/pro-table/src/Column.vue b/src/component/pro-table/src/Column.vue new file mode 100644 index 0000000..5cc0ac8 --- /dev/null +++ b/src/component/pro-table/src/Column.vue @@ -0,0 +1,82 @@ + + + + + + + diff --git a/src/component/pro-table/src/ProTable.vue b/src/component/pro-table/src/ProTable.vue index dff414b..20bce3c 100644 --- a/src/component/pro-table/src/ProTable.vue +++ b/src/component/pro-table/src/ProTable.vue @@ -51,52 +51,13 @@ - - -