dengrui il y a 2 mois
Parent
commit
affd57adbd
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9 1
      src/views/pro-steps/index.vue

+ 9 - 1
src/views/pro-steps/index.vue

@@ -43,7 +43,14 @@
             <template v-if="taskIndex != null">
               <div
                 class="productitleText"
-                style="font-size: 500; font-size: 24px"
+                style="
+                  font-size: 500;
+                  font-size: 24px;
+                  -webkit-line-clamp: 1;
+                  white-space: nowrap;
+                  overflow: hidden;
+                  text-overflow: ellipsis;
+                "
               >
                 {{ taskArray[taskIndex].materialName }}
               </div>
@@ -54,6 +61,7 @@
                   white-space: nowrap;
                   overflow: hidden;
                   text-overflow: ellipsis;
+                  -webkit-line-clamp: 2; /* 限制显示的行数 */
                 "
               >
                 {{ taskArray[taskIndex].materialModel }}