|
@@ -103,21 +103,21 @@ export default {
|
|
|
this.show = !show;
|
|
|
},
|
|
|
blur() {
|
|
|
- if(MobileDevice.getModels().join(' or ').indexOf('6') == -1){
|
|
|
- document.activeElement.scrollIntoView({behavior: "smooth"})
|
|
|
- document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
- setTimeout(() => {
|
|
|
- document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
- }, 300);
|
|
|
- }
|
|
|
+ // if(MobileDevice.getModels().join(' or ').indexOf('6') == -1){
|
|
|
+ // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ // setTimeout(() => {
|
|
|
+ document.activeElement.scrollIntoView({behavior: "smooth"})
|
|
|
+ // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ // }, 300);
|
|
|
+ // }
|
|
|
},
|
|
|
changeName() {
|
|
|
- document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
const { patName } = this;
|
|
|
this.patName = patName.replace(/[`~!@#$%^&)(*_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,'')
|
|
|
},
|
|
|
changeVal() {
|
|
|
- document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
const { type, value } = this;
|
|
|
if (type == 102 || type == 103) {
|
|
|
this.value = value.replace(/[^\d]/g, "");
|