mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-15 19:28:11 +00:00
no message
This commit is contained in:
parent
fec3dcc65f
commit
d72e9f678f
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/build/1.js
vendored
2
public/js/build/1.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/build/12.js
vendored
Normal file
2
public/js/build/12.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
c6abb28f7e68842b
|
||||
19058e674bdc9ef2
|
||||
|
||||
13
resources/assets/js/functions/common.js
vendored
13
resources/assets/js/functions/common.js
vendored
@ -1127,15 +1127,20 @@
|
||||
/**
|
||||
* 主动失去焦点(关闭键盘)
|
||||
* @param el
|
||||
* @param inputMode
|
||||
*/
|
||||
onBlur(el = null) {
|
||||
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 (document.activeElement.tagName === "BODY") {
|
||||
if (inputMode === true && document.activeElement.tagName === "BODY") {
|
||||
let inputElement = document.getElementById("toLoseFocusInput")
|
||||
if (!inputElement) {
|
||||
inputElement = document.createElement("input");
|
||||
@ -1151,7 +1156,9 @@
|
||||
});
|
||||
document.body.appendChild(inputElement);
|
||||
}
|
||||
inputElement.focus()
|
||||
setTimeout(_ => {
|
||||
inputElement.focus()
|
||||
}, 1)
|
||||
} else {
|
||||
document.activeElement.blur();
|
||||
}
|
||||
|
||||
@ -641,7 +641,9 @@ export default {
|
||||
fileShow(val) {
|
||||
if (!val) {
|
||||
this.browseFile(0)
|
||||
$A.onBlur()
|
||||
if (this.windowSmall) {
|
||||
$A.onBlur(true)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user