From cc68c8e5f5b6dc17ce03b74ffb8933efe632c54d Mon Sep 17 00:00:00 2001
From: mg <maokecheng@163.com>
Date: 星期四, 03 十一月 2022 11:05:22 +0800
Subject: [PATCH] 页面导航和点位管理
---
src/components/myUpload/index.vue | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/components/myUpload/index.vue b/src/components/myUpload/index.vue
index 4b7be53..c5930f0 100644
--- a/src/components/myUpload/index.vue
+++ b/src/components/myUpload/index.vue
@@ -33,9 +33,9 @@
// 闄愬埗
limit: 4,
// 鎸夐挳楂樺害
- btnHeight: '120px',
+ btnHeight: '100px',
// 鎸夐挳瀹藉害
- btnWidth: '120px',
+ btnWidth: '100px',
// 鏂囦欢鍒楄〃绫诲瀷
listType: 'picture-card'
};
@@ -46,8 +46,8 @@
if (rawFile.type !== 'image/png' && rawFile.type !== 'image/svg+xml' && rawFile.type !== 'image/jpg' && rawFile.type !== 'image/jpeg') {
this.$message.error('鍥剧墖蹇呴』鏄� jpg/svg/jpeg/png 鏍煎紡!')
return false
- } else if (rawFile.size / 105 / 105 > 2) {
- this.$message.error('涓婁紶鍥剧墖涓嶈兘瓒呰繃 2MB!')
+ } else if (rawFile.size / 1024 / 1024 > 5) {
+ this.$message.error('涓婁紶鍥剧墖涓嶈兘瓒呰繃 5MB!')
return false
}
return true
@@ -112,12 +112,12 @@
}
:deep(.el-upload--picture-card) {
- width: 120px;
- height: 120px;
+ width: 100px;
+ height: 100px;
}
:deep(.el-upload-list__item){
- width: 120px;
- height: 120px;
+ width: 100px;
+ height: 100px;
}
.upload-btn {
// background-color: rgba(249, 249, 249, 1);
--
Gitblit v1.8.0