mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-06 13:15:35 +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 el
|
||||||
|
* @param inputMode
|
||||||
*/
|
*/
|
||||||
onBlur(el = null) {
|
onBlur(el = null, inputMode = false) {
|
||||||
setTimeout(_ => {
|
setTimeout(_ => {
|
||||||
$A.eeuiAppKeyboardHide();
|
$A.eeuiAppKeyboardHide();
|
||||||
|
if (typeof el === "boolean") {
|
||||||
|
inputMode = el;
|
||||||
|
el = null;
|
||||||
|
}
|
||||||
if (el) {
|
if (el) {
|
||||||
el.blur();
|
el.blur();
|
||||||
} else {
|
} else {
|
||||||
if (document.activeElement) {
|
if (document.activeElement) {
|
||||||
if (document.activeElement.tagName === "BODY") {
|
if (inputMode === true && document.activeElement.tagName === "BODY") {
|
||||||
let inputElement = document.getElementById("toLoseFocusInput")
|
let inputElement = document.getElementById("toLoseFocusInput")
|
||||||
if (!inputElement) {
|
if (!inputElement) {
|
||||||
inputElement = document.createElement("input");
|
inputElement = document.createElement("input");
|
||||||
@ -1151,7 +1156,9 @@
|
|||||||
});
|
});
|
||||||
document.body.appendChild(inputElement);
|
document.body.appendChild(inputElement);
|
||||||
}
|
}
|
||||||
inputElement.focus()
|
setTimeout(_ => {
|
||||||
|
inputElement.focus()
|
||||||
|
}, 1)
|
||||||
} else {
|
} else {
|
||||||
document.activeElement.blur();
|
document.activeElement.blur();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -641,7 +641,9 @@ export default {
|
|||||||
fileShow(val) {
|
fileShow(val) {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
this.browseFile(0)
|
this.browseFile(0)
|
||||||
$A.onBlur()
|
if (this.windowSmall) {
|
||||||
|
$A.onBlur(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user