提交 46df21a5 编写于 作者: Q qiang

chore: build h5

上级 56687ff9
......@@ -2279,18 +2279,21 @@ const props$n = {
const emit$1 = ["keyboardheightchange"];
function useKeyboard$1(props2, elRef, trigger) {
function initKeyboard(el) {
const isApple = vue.computed(() => String(navigator.vendor).indexOf("Apple") === 0);
el.addEventListener("focus", () => {
clearTimeout(resetTimer);
document.addEventListener("click", iosHideKeyboard, false);
});
const onKeyboardHide = () => {
document.removeEventListener("click", iosHideKeyboard, false);
if (String(navigator.vendor).indexOf("Apple") === 0) {
if (isApple.value) {
document.documentElement.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop);
}
};
el.addEventListener("blur", () => {
el.blur();
if (isApple.value) {
el.blur();
}
onKeyboardHide();
});
}
......
......@@ -7156,18 +7156,21 @@ const props$u = {
const emit$1 = ["keyboardheightchange"];
function useKeyboard$1(props2, elRef, trigger) {
function initKeyboard(el) {
const isApple = computed(() => String(navigator.vendor).indexOf("Apple") === 0);
el.addEventListener("focus", () => {
clearTimeout(resetTimer);
document.addEventListener("click", iosHideKeyboard, false);
});
const onKeyboardHide = () => {
document.removeEventListener("click", iosHideKeyboard, false);
if (String(navigator.vendor).indexOf("Apple") === 0) {
if (isApple.value) {
document.documentElement.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop);
}
};
el.addEventListener("blur", () => {
el.blur();
if (isApple.value) {
el.blur();
}
onKeyboardHide();
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册