From 20f1fe0da5c219da759fe0096d5ce2f601cad8d6 Mon Sep 17 00:00:00 2001 From: PeterAlbus Date: Mon, 21 Mar 2022 22:26:13 +0800 Subject: [PATCH] upgrade module of upload blog --- src/App.vue | 24 +++ src/components/Footer.vue | 2 +- src/components/TopNavBar.vue | 4 +- src/views/AddFriendLink.vue | 2 +- src/views/EditBlog.vue | 286 +++++++++++++++++------------------ 5 files changed, 165 insertions(+), 153 deletions(-) diff --git a/src/App.vue b/src/App.vue index 91c1d88..364f5ff 100644 --- a/src/App.vue +++ b/src/App.vue @@ -117,4 +117,28 @@ a { .info span{ font-size: smaller; } + + .avatar-uploader .el-upload { + border: 1px dashed #d9d9d9; + border-radius: 6px; + cursor: pointer; + position: relative; + overflow: hidden; + transition: var(--el-transition-duration-fast); + } +.avatar-uploader .el-upload:hover { + border-color: var(--el-color-primary); +} +.el-icon.avatar-uploader-icon { + font-size: 28px; + color: #8c939d; + width: 178px; + height: 178px; + text-align: center; +} +.avatar { + width: 178px; + height: 178px; + display: block; +} diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 1d59ce5..04824b0 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -8,7 +8,7 @@ -
+
diff --git a/src/components/TopNavBar.vue b/src/components/TopNavBar.vue index 8e013a9..7ad92b3 100644 --- a/src/components/TopNavBar.vue +++ b/src/components/TopNavBar.vue @@ -1,5 +1,5 @@ -