فهرست منبع

改一些样式

zhangsijie 2 سال پیش
والد
کامیت
1232904757
1فایلهای تغییر یافته به همراه12 افزوده شده و 1 حذف شده
  1. 12 1
      pages/equipList/index.vue

+ 12 - 1
pages/equipList/index.vue

@@ -61,7 +61,7 @@
                   "
                   mode=""
                 ></image>
-                {{ item.device_name == "" ? "--" : item.device_name }}
+                <view>{{ item.device_name == "" ? "--" : item.device_name }}</view>
               </p>
               <p
                 v-if="![11, 19, 20].includes(type_id)"
@@ -589,9 +589,14 @@ page {
       justify-content: space-between;
 
       .p1 {
+		  width: 87%;
+		  display: flex;
+		  justify-content: space-between;
+		  align-items: center;
         height: 60rpx;
         line-height: 60rpx;
         font-size: 28rpx;
+		overflow: hidden;
 
         image {
           width: 40rpx;
@@ -599,6 +604,12 @@ page {
           vertical-align: text-top;
           margin-right: 20rpx;
         }
+		view{
+			width: calc(100% - 40rpx);
+			overflow: hidden;
+			text-overflow: ellipsis;
+			white-space: nowrap;
+		}
       }
 
       .p2 {