no message

This commit is contained in:
kuaifan 2025-04-12 11:55:43 +08:00
parent 9e4f733c28
commit df02a6b50f
4 changed files with 8 additions and 59 deletions

View File

@ -248,9 +248,7 @@ export default {
},
onTouchstart() {
if (this.keyboardShow) {
$A.eeuiAppKeyboardHide();
}
$A.eeuiAppKeyboardHide();
},
onTag(type, e) {

View File

@ -1233,49 +1233,6 @@ const timezone = require("dayjs/plugin/timezone");
return el ? el.getAttribute(attrName) : def;
},
/**
* 主动失去焦点关闭键盘
* @param el
* @param inputMode
*/
onBlur(el = null, inputMode = false) {
setTimeout(_ => {
$A.eeuiAppKeyboardHide();
if (typeof el === "boolean") {
inputMode = el;
el = null;
}
if (el) {
el.blur();
} else {
if (document.activeElement) {
if (inputMode === true && document.activeElement.tagName === "BODY") {
let inputElement = document.getElementById("toLoseFocusInput")
if (!inputElement) {
inputElement = document.createElement("input");
inputElement.id = "toLoseFocusInput";
inputElement.type = "text";
inputElement.style.position = "fixed";
inputElement.style.top = "0px";
inputElement.style.left = "0px";
inputElement.style.zIndex = "-1";
inputElement.style.opacity = "0";
inputElement.addEventListener("focus", e => {
document.activeElement.blur();
});
document.body.appendChild(inputElement);
}
setTimeout(_ => {
inputElement.focus()
}, 1)
} else {
document.activeElement.blur();
}
}
}
}, 1);
},
/**
* 排序JSON对象
* @param obj

View File

@ -1025,9 +1025,7 @@ export default {
if (id > 0) {
this.ready = true;
} else {
if (this.windowPortrait) {
$A.onBlur();
}
$A.eeuiAppKeyboardHide()
this.timeOpen = false;
this.timeForce = false;
this.loopForce = false;
@ -1682,7 +1680,6 @@ export default {
}
this.$nextTick(() => {
if (this.windowPortrait) {
$A.onBlur();
const openSuccess = () => {
const transferData = {
time: $A.dayjs().unix() + 10,
@ -1696,13 +1693,12 @@ export default {
this.msgText = "";
this.$store.state.dialogMsgTransfer = transferData
}
this.$nextTick(_ => {
this.$store.dispatch('openDialog', dialogId).then(_ => {
!onlyOpen && openSuccess()
}).catch(({msg}) => {
$A.modalError(msg);
})
this.$store.dispatch('openDialog', dialogId).then(_ => {
!onlyOpen && openSuccess()
}).catch(({msg}) => {
$A.modalError(msg);
})
$A.eeuiAppKeyboardHide();
} else {
this.sendDialogMsg(msgText);
}

View File

@ -917,9 +917,7 @@ export default {
fileShow(val) {
if (!val) {
this.browseFile(0)
if (this.windowPortrait) {
$A.onBlur(true)
}
$A.eeuiAppKeyboardHide()
}
},