|
@@ -50,29 +50,23 @@
|
|
|
if(this.item.controlType==7){//数字键盘
|
|
|
this.val = e.target.value=e.target.value.replace(/^\.$/,'').slice(0,10)
|
|
|
}
|
|
|
- // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
this.borColor = false;
|
|
|
const newData = Object.assign({},this.item,{value:this.val,valueP:this.val});
|
|
|
this.$emit("updata",newData);
|
|
|
},
|
|
|
blur(){
|
|
|
- // $(".btscroll").css({'position':'fixed'})
|
|
|
- $(".foot").css({'display':'block'})
|
|
|
- if(MobileDevice.getModels().join(' or ').indexOf('6') == -1){
|
|
|
- document.activeElement.scrollIntoView({behavior: "smooth",block:'end'})
|
|
|
- }
|
|
|
- // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
- // setTimeout(()=>{
|
|
|
- // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
- // },300)
|
|
|
+ setTimeout(()=>{
|
|
|
+ $(".foot").css({'display':'block'})
|
|
|
+ },150)
|
|
|
// this.borColor = false;
|
|
|
// const newData = Object.assign({},this.item,{value:this.val,valueP:this.val});
|
|
|
// this.$emit("updata",newData);
|
|
|
},
|
|
|
focus(e){
|
|
|
if(isIos()){
|
|
|
- // $(".btscroll").css({'position':'absolute'})
|
|
|
- $(".foot").css({'display':'none'})
|
|
|
+ setTimeout(() => {
|
|
|
+ $(".foot").css({'display':'none'})
|
|
|
+ }, 150);
|
|
|
}
|
|
|
}
|
|
|
},
|