mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
no message
This commit is contained in:
parent
9e4f733c28
commit
df02a6b50f
@ -248,9 +248,7 @@ export default {
|
||||
},
|
||||
|
||||
onTouchstart() {
|
||||
if (this.keyboardShow) {
|
||||
$A.eeuiAppKeyboardHide();
|
||||
}
|
||||
$A.eeuiAppKeyboardHide();
|
||||
},
|
||||
|
||||
onTag(type, e) {
|
||||
|
||||
43
resources/assets/js/functions/common.js
vendored
43
resources/assets/js/functions/common.js
vendored
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -917,9 +917,7 @@ export default {
|
||||
fileShow(val) {
|
||||
if (!val) {
|
||||
this.browseFile(0)
|
||||
if (this.windowPortrait) {
|
||||
$A.onBlur(true)
|
||||
}
|
||||
$A.eeuiAppKeyboardHide()
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user