Преглед на файлове

文本输入框等优化

zhujindu преди 5 месеца
родител
ревизия
1a55e71459
променени са 3 файла, в които са добавени 15 реда и са изтрити 8 реда
  1. 5 4
      src/views/clew/complaintDetail/radioGroup.vue
  2. 2 0
      src/views/week/VisitSummaryAdd.vue
  3. 8 4
      src/views/week/assignAwait/radioGroup.vue

+ 5 - 4
src/views/clew/complaintDetail/radioGroup.vue

@@ -34,7 +34,8 @@
             v-model="val.answerValue"
             :placeholder="val.remark"
             :minTextLength="val.minTextLength"
-            :error-message="val.remark"
+            autosize
+            type="textarea"
             :class="{
               fieldInput: true,
               rulesClass: val.answerValue != null && val.answerValue.length < val.minTextLength,
@@ -250,12 +251,12 @@ export default {
   }
   .van-field {
     padding: 0;
-    width: 100%;
+    width: 97%;
     border-radius: 4px;
     overflow: hidden;
     background-color: unset;
-    height: 30px;
-    line-height: 30px;
+    // height: 30px;
+    // line-height: 30px;
     border: 1px solid #cdc8c8;
   }
   .van-field__control {

+ 2 - 0
src/views/week/VisitSummaryAdd.vue

@@ -78,6 +78,8 @@
             <van-field
               v-model="item.answerValue"
               :formatter="formatter"
+              autosize
+              type="textarea"
               :placeholder="item.customName"></van-field>
             <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
               {{ item.remark }}

+ 8 - 4
src/views/week/assignAwait/radioGroup.vue

@@ -24,7 +24,11 @@
           </template>
           <!-- 回答类型:wb-文本,sz-数字,rq-日期,zp-照片,dx -->
           <template v-if="item.answerType == 'wb'">
-            <van-field v-model="item.answerValue" :placeholder="item.remark" />
+            <van-field
+              v-model="item.answerValue"
+              autosize
+              type="textarea"
+              :placeholder="item.remark" />
           </template>
           <template v-if="item.answerType == 'sz'">
             <van-field
@@ -124,12 +128,12 @@ export default {
   .van-field {
     border: 1px solid #cdc8c8;
     padding: 0;
-    width: 100%;
+    width: 97%;
     border-radius: 4px;
     overflow: hidden;
     background-color: unset;
-    height: 30px;
-    line-height: 30px;
+    // height: 30px;
+    // line-height: 30px;
     margin: 5px 0;
   }
   .van-field__control {