Ver Fonte

fix(components/attachmentList):附件名过长导致按钮被顶出页面,显示不全

HMY há 1 ano atrás
pai
commit
264fd5c39a

+ 1 - 1
components/ygoa/attachmentList.vue

@@ -5,7 +5,7 @@
 		<uni-row :gutter="0">
 			<uni-col v-for="(attachment, index) in attachments" :key="index" :xs="{span: 24}" :sm="6">
 				<view class="attachment">
-					<text @click="seeAttachment(attachment.path)">{{ attachment.fileName || '附件名为空' }}</text>
+					<text @click="seeAttachment(attachment.path)">{{ attachment.fileName.length > 10 ? attachment.fileName.substring(0, 10) + '...' : attachment.fileName || '附件名为空' }}</text>
 					<view class="icon-container">
 						<uni-icons @click="shareAttachment(attachment.path)" :size="14" color="#2196f3" type="redo-filled"
 							style="margin-left:10px;">分享</uni-icons>

+ 1 - 1
pages/mine/setting/pwdEdit/pwdEdit.vue

@@ -26,7 +26,7 @@
 	</view>
 </template>
 
-<script setup>
+<script setup lang="ts">
 	import {
 		ref
 	} from 'vue';