|
@@ -13,6 +13,7 @@
|
|
|
:placeholder="item.placeholder"
|
|
|
@input="changeVal($event,idx,content.type)"
|
|
|
@blur="blur"
|
|
|
+ @focus="focus"
|
|
|
:maxlength="content.type=='number'?10:''"
|
|
|
@click="handleClick">
|
|
|
<input v-show="content.iptLis.length==1" class="contentVal"
|
|
@@ -21,6 +22,7 @@
|
|
|
v-model="item.value"
|
|
|
@input="changeVal($event,idx,content.type)"
|
|
|
@blur="blur"
|
|
|
+ @focus="focus"
|
|
|
:maxlength="content.type=='number'?10:''"
|
|
|
@click="handleClick">
|
|
|
<span v-if="idx == 0&&content.iptLis.length>1">/</span>
|
|
@@ -31,7 +33,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { getModelExpStr } from '@utils/tools';
|
|
|
+import { getModelExpStr,isIos } from '@utils/tools';
|
|
|
+import $ from 'jquery';
|
|
|
|
|
|
export default {
|
|
|
props:{
|
|
@@ -86,11 +89,17 @@ export default {
|
|
|
},
|
|
|
blur(){
|
|
|
// 如果该项未选中,则不存值
|
|
|
+ $(".foot").css({'display':'block'})
|
|
|
document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
setTimeout(()=>{
|
|
|
document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
},300)
|
|
|
},
|
|
|
+ focus(){
|
|
|
+ if(isIos()){
|
|
|
+ $(".foot").css({'display':'none'})
|
|
|
+ }
|
|
|
+ },
|
|
|
handleClick(e){
|
|
|
// 点击输入框时不选中该项
|
|
|
// document.activeElement.scrollIntoViewIfNeeded(true);
|