From 8a40a5c0ff235b7c51a91a79eb491fe29bc91028 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 3 Apr 2020 15:36:52 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=8A=A8=E4=BD=9C=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../el-data-table/el-data-table.vue | 3 +- src/components/DataTable/index.vue | 8 +-- .../formatters/ActionsFormatter.vue | 64 ++++++++++++++++--- .../formatters/ChoicesFormatter.vue | 0 .../formatters/DetailFormatter.vue | 0 .../formatters/DisplayFormatter.vue | 0 .../formatters/base.vue | 6 +- .../formatters/index.js | 0 src/components/ListTable/index.vue | 20 +----- src/components/Select2/index.vue | 1 - src/i18n/langs/cn.js | 7 +- src/views/users/UserGroupList.vue | 52 ++------------- src/views/users/UserList.vue | 2 +- 13 files changed, 77 insertions(+), 86 deletions(-) rename src/components/{DataTable => ListTable}/formatters/ActionsFormatter.vue (50%) rename src/components/{DataTable => ListTable}/formatters/ChoicesFormatter.vue (100%) rename src/components/{DataTable => ListTable}/formatters/DetailFormatter.vue (100%) rename src/components/{DataTable => ListTable}/formatters/DisplayFormatter.vue (100%) rename src/components/{DataTable => ListTable}/formatters/base.vue (80%) rename src/components/{DataTable => ListTable}/formatters/index.js (100%) diff --git a/src/components/DataTable/compenents/el-data-table/el-data-table.vue b/src/components/DataTable/compenents/el-data-table/el-data-table.vue index 4d60b6d45..2d7c7a49f 100644 --- a/src/components/DataTable/compenents/el-data-table/el-data-table.vue +++ b/src/components/DataTable/compenents/el-data-table/el-data-table.vue @@ -102,8 +102,9 @@
diff --git a/src/components/DataTable/index.vue b/src/components/DataTable/index.vue index 01bdf9873..531224ea7 100644 --- a/src/components/DataTable/index.vue +++ b/src/components/DataTable/index.vue @@ -36,16 +36,12 @@ export default { hasDelete: userTableActions.hasDelete !== false, hasNew: false, // editText: this.$t('action.update'), // 编辑按钮文案 - operationAttrs: { - align: 'center', - width: '150px' - }, - operationButtonType: 'button', buttonSize: 'mini', tableAttrs: { stripe: true, // 斑马纹表格 border: true, // 表格边框 - fit: true // 宽度自适应 + fit: true, // 宽度自适应, + tooltipEffect: 'dark' }, extraButtons: userTableActions.extraButtons, onEdit: (row) => { diff --git a/src/components/DataTable/formatters/ActionsFormatter.vue b/src/components/ListTable/formatters/ActionsFormatter.vue similarity index 50% rename from src/components/DataTable/formatters/ActionsFormatter.vue rename to src/components/ListTable/formatters/ActionsFormatter.vue index a7bd8df6b..74c750d87 100644 --- a/src/components/DataTable/formatters/ActionsFormatter.vue +++ b/src/components/ListTable/formatters/ActionsFormatter.vue @@ -3,32 +3,70 @@