Explorar o código

项目管理金额输入框问题,搜索框里输入文字时,界面放大的问题

bzkf30 %!s(int64=2) %!d(string=hai) anos
pai
achega
bac9c6037c

+ 1 - 1
src/pages/projectManager/projectManageControl/detail/index.vue

@@ -331,7 +331,7 @@ function handleRemove(index) {
     <van-dialog v-model:show="dialogVisible" :title="dialogTitle" show-cancel-button :before-close="beforeCloseDialog">
       <div v-if="dialogType!=1" class="flex items-center flex-v-mid px-2 py-3">
         <div class="whitespace-nowrap"><span class="" style="color: red;" v-if="currentData.lc_bt==1">*</span>{{currentData.lc_bt_name}}:</div>
-        <input class="flex-1 border px-1 py-5px rounded-6px" type="number" v-model="currentData.xmlc_bt_value" oninput="if(value.length>10)value=value.slice(0,10)" />
+        <input class="border px-1 py-5px rounded-6px" style="width: 200px;" type="number" v-model="currentData.xmlc_bt_value" oninput="if(value.length>10)value=value.slice(0,10)" />
       </div>
       <div v-if="dialogType==1" class="px-2 py-3">
         <van-uploader accept="*" :after-read="handleAfterRead">

+ 5 - 0
src/styles/main.scss

@@ -21,3 +21,8 @@ html.dark {
   border-bottom: 2px solid #666;
   border-top: 2px solid #666;
 }
+
+// 解决苹果手机点击input框放大的问题
+input {
+  font-size: 16px !important;
+}