فهرست منبع

优化点击范围

xiaohaizhao 11 ماه پیش
والد
کامیت
d0a53ae982
1فایلهای تغییر یافته به همراه11 افزوده شده و 7 حذف شده
  1. 11 7
      packageA/dailyYttendance/makePoster.vue

+ 11 - 7
packageA/dailyYttendance/makePoster.vue

@@ -105,13 +105,9 @@
             type="text"
             v-model="painterText"
           />
-          <icon
-            v-if="painterText"
-            class="icon"
-            type="clear"
-            size="3.733vw"
-            @click="painterText = ''"
-          />
+          <view class="icon-box" @click="painterText = ''">
+            <icon v-if="painterText" class="icon" type="clear" size="3.733vw" />
+          </view>
         </view>
       </view>
       <view
@@ -432,6 +428,14 @@ export default {
         flex: 1;
       }
     }
+
+    .icon-box {
+      display: flex;
+      width: 30px;
+      height: 30px;
+      justify-content: center;
+      align-items: center;
+    }
   }
 
   .but {