mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 21:32:49 +00:00
no message
This commit is contained in:
parent
9e4f733c28
commit
df02a6b50f
@ -248,9 +248,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onTouchstart() {
|
onTouchstart() {
|
||||||
if (this.keyboardShow) {
|
$A.eeuiAppKeyboardHide();
|
||||||
$A.eeuiAppKeyboardHide();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onTag(type, e) {
|
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;
|
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对象
|
* 排序JSON对象
|
||||||
* @param obj
|
* @param obj
|
||||||
|
|||||||
@ -1025,9 +1025,7 @@ export default {
|
|||||||
if (id > 0) {
|
if (id > 0) {
|
||||||
this.ready = true;
|
this.ready = true;
|
||||||
} else {
|
} else {
|
||||||
if (this.windowPortrait) {
|
$A.eeuiAppKeyboardHide()
|
||||||
$A.onBlur();
|
|
||||||
}
|
|
||||||
this.timeOpen = false;
|
this.timeOpen = false;
|
||||||
this.timeForce = false;
|
this.timeForce = false;
|
||||||
this.loopForce = false;
|
this.loopForce = false;
|
||||||
@ -1682,7 +1680,6 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.windowPortrait) {
|
if (this.windowPortrait) {
|
||||||
$A.onBlur();
|
|
||||||
const openSuccess = () => {
|
const openSuccess = () => {
|
||||||
const transferData = {
|
const transferData = {
|
||||||
time: $A.dayjs().unix() + 10,
|
time: $A.dayjs().unix() + 10,
|
||||||
@ -1696,13 +1693,12 @@ export default {
|
|||||||
this.msgText = "";
|
this.msgText = "";
|
||||||
this.$store.state.dialogMsgTransfer = transferData
|
this.$store.state.dialogMsgTransfer = transferData
|
||||||
}
|
}
|
||||||
this.$nextTick(_ => {
|
this.$store.dispatch('openDialog', dialogId).then(_ => {
|
||||||
this.$store.dispatch('openDialog', dialogId).then(_ => {
|
!onlyOpen && openSuccess()
|
||||||
!onlyOpen && openSuccess()
|
}).catch(({msg}) => {
|
||||||
}).catch(({msg}) => {
|
$A.modalError(msg);
|
||||||
$A.modalError(msg);
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
$A.eeuiAppKeyboardHide();
|
||||||
} else {
|
} else {
|
||||||
this.sendDialogMsg(msgText);
|
this.sendDialogMsg(msgText);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -917,9 +917,7 @@ export default {
|
|||||||
fileShow(val) {
|
fileShow(val) {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
this.browseFile(0)
|
this.browseFile(0)
|
||||||
if (this.windowPortrait) {
|
$A.eeuiAppKeyboardHide()
|
||||||
$A.onBlur(true)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user