From d998cd11a5f068e1dfba9e9cbf72dedf5e59b730 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sun, 14 Apr 2019 18:11:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/global.less | 14 +- src/views/attachment/AttachmentList.vue | 11 +- src/views/interface/ThemeList.vue | 266 ++++++++++-------------- 3 files changed, 122 insertions(+), 169 deletions(-) diff --git a/src/components/global.less b/src/components/global.less index ce42340f..d2f2bb06 100644 --- a/src/components/global.less +++ b/src/components/global.less @@ -1,9 +1,7 @@ @import './index.less'; body { - // 打开滚动条固定显示 - overflow-y: scroll; - + overflow-y: none; &.colorWeak { filter: invert(80%); } @@ -497,11 +495,17 @@ body { .ant-card{ .ant-card-head{ - padding: 0 16px; + padding: 0 16px!important; .ant-card-head-wrapper{ .ant-card-head-title{ - padding: 12px 0; + padding: 12px 0!important; } } } +} + +.ant-card-wider-padding{ + .ant-card-body{ + padding: 24px!important; + } } \ No newline at end of file diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 42e2737f..49b393e8 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -178,13 +178,10 @@ export default { }, handleChange(info) { const status = info.file.status - if (status !== 'uploading') { - console.log(info.file, info.fileList) - } if (status === 'done') { - this.$message.success(`${info.file.name} file uploaded successfully.`) + this.$message.success(`${info.file.name} 文件上传成功`) } else if (status === 'error') { - this.$message.error(`${info.file.name} file upload failed.`) + this.$message.error(`${info.file.name} 文件上传失败`) } }, deleteAttachment(id) { @@ -201,7 +198,7 @@ export default { this.$copyText(text) .then(message => { console.log('copy', message) - this.$message.success('复制完毕') + this.$message.success('复制成功') }) .catch(err => { console.log('copy.err', err) @@ -215,7 +212,7 @@ export default { this.$copyText(text) .then(message => { console.log('copy', message) - this.$message.success('复制完毕') + this.$message.success('复制成功') }) .catch(err => { console.log('copy.err', err) diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index 48fe6458..300bdb10 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -1,10 +1,6 @@