From 3d502e5fd5dda5ee3a132337d34da6a5e93fe41e Mon Sep 17 00:00:00 2001 From: song Date: Tue, 31 Aug 2021 17:30:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=93=8D=E4=BD=9C=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++-- src/common/portrait.styl | 4 ++++ src/components/List/List.vue | 43 ++++++++++++++++++++++++++++++++++- src/plugins/ant-design-vue.js | 2 ++ 4 files changed, 50 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index bf233bf..66d268e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -42,9 +42,9 @@ body, } #app { - background: transparent; + /* background: transparent; */ } body { - background: #f5f5f5 !important; + /* background: #f5f5f5 !important; */ } diff --git a/src/common/portrait.styl b/src/common/portrait.styl index 0fe142a..3074f39 100644 --- a/src/common/portrait.styl +++ b/src/common/portrait.styl @@ -191,6 +191,10 @@ margin-top: 32px; } +.mb-0{ + margin-bottom: 0px!important; +} + .mb-1{ margin-bottom: 4px; } diff --git a/src/components/List/List.vue b/src/components/List/List.vue index 0dbb841..9b45d6b 100644 --- a/src/components/List/List.vue +++ b/src/components/List/List.vue @@ -51,6 +51,18 @@ + +

修改

+

驳回

+

取消

+
@@ -81,6 +93,8 @@ export default { memberIdList: [], options: null, checkerId: undefined, + visible: false, + placement: 'left', }; }, @@ -138,7 +152,6 @@ export default { this.clockInfos[listIndex].recordList[index].night = selectTime; } const dateTime = this.$moment(time).format('x') - 0; - // TODO: const params = { param: { checkerId: this.checkerId || checkerId, clockType, dateTime, id, memberId } }; this.handleClockPunch(params); }, @@ -169,6 +182,15 @@ export default { showMenu(index) { console.log('展开菜单', index); + this.visible = true; + }, + + afterVisibleChange(val) { + console.log('visible', val); + }, + + onClose() { + this.visible = false; }, }, }; @@ -202,4 +224,23 @@ img { .teble-box >>> .ant-table-row-cell-break-word { padding: 8px 0 !important; } + +.actions-box >>> .ant-drawer-content-wrapper { + height: auto !important; +} + +.actions-box >>> .ant-drawer-wrapper-body { + background: #f5f5f5; +} + +.actions-box >>> .ant-drawer-body { + padding: 0 !important; +} + +.actions-box >>> .ant-drawer-body p { + height: 40px; + line-height: 40px; + background: #fcfcfc; + text-align: center; +} diff --git a/src/plugins/ant-design-vue.js b/src/plugins/ant-design-vue.js index 362b725..2b88e52 100644 --- a/src/plugins/ant-design-vue.js +++ b/src/plugins/ant-design-vue.js @@ -42,6 +42,7 @@ import { Divider, Card, Skeleton, + Drawer, } from 'ant-design-vue'; import { ConfigProvider } from 'ant-design-vue'; Vue.component(ConfigProvider.name, ConfigProvider); @@ -78,6 +79,7 @@ Vue.use(Steps); Vue.use(Divider); Vue.use(Card); Vue.use(Skeleton); +Vue.use(Drawer); Vue.prototype.$message = message; Vue.prototype.$notification = notification;