From e5a77d6a551d13e4cf74624b31b0fa3e328b304d Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期四, 23 一月 2025 17:23:39 +0800
Subject: [PATCH] -

---
 src/components/tem/tem-upload-file.vue |   31 +++++++++++++++++++++----------
 1 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/src/components/tem/tem-upload-file.vue b/src/components/tem/tem-upload-file.vue
index 09379ea..314046d 100644
--- a/src/components/tem/tem-upload-file.vue
+++ b/src/components/tem/tem-upload-file.vue
@@ -27,14 +27,24 @@
 				<fui-icon name="close" color="#fff" :size="32"></fui-icon>
 			</view>
 		</view>
+
 		<view class="fui-upload__item"
+			:class="[borderColor && borderColor!==true?'fui-upload__border':'fui-upload__noborder']"
+			:style="{width:width+'rpx',borderRadius:radius+'rpx',borderColor:borderColor,borderStyle:borderSytle}"
+			v-if="showAdd" @tap.stop="chooseImage">
+			<slot>
+				<u-button type="primary" text="涓婁紶" size="small"></u-button>
+				<!-- <fui-icon name="plus" :size="addSize" :color="addColor"></fui-icon> -->
+			</slot>
+		</view>
+		<!-- <view class="fui-upload__item"
 			:class="[borderColor && borderColor!==true?'fui-upload__border':'fui-upload__noborder']"
 			:style="{width:width+'rpx',height:height+'rpx',background:background,borderRadius:radius+'rpx',borderColor:borderColor,borderStyle:borderSytle}"
 			v-if="showAdd" @tap.stop="chooseImage">
 			<slot>
 				<fui-icon name="plus" :size="addSize" :color="addColor"></fui-icon>
 			</slot>
-		</view>
+		</view> -->
 	</view>
 </template>
 
@@ -164,13 +174,13 @@
 				type: [Number, String],
 				default: 0
 			},
-			fileType:{
-				type:String,
-				default:'file'
+			fileType: {
+				type: String,
+				default: 'file'
 			},
-			fileExtension:{
-				type:Array,
-				default:[]
+			fileExtension: {
+				type: Array,
+				default: []
 			}
 		},
 		data() {
@@ -178,7 +188,7 @@
 				urls: [],
 				tempFiles: [],
 				//preupload銆乽ploading銆乻uccess銆乪rror
-				status: []
+				status: [],
 			};
 		},
 		created() {
@@ -632,8 +642,9 @@
 		/* #endif */
 		align-items: center;
 		justify-content: center;
-		margin-right: 20rpx;
-		margin-bottom: 20rpx;
+		/* margin-right: 20rpx;
+		margin-bottom: 20rpx; */
+		margin: 10rpx 10rpx 10rpx 0;
 		/* #ifdef H5 */
 		cursor: pointer;
 		/* #endif */

--
Gitblit v1.9.1