no message

This commit is contained in:
kuaifan 2025-04-12 09:10:20 +08:00
parent 1175b330f5
commit 9e4f733c28
9 changed files with 31 additions and 22 deletions

View File

@ -60,7 +60,7 @@
"stylus-loader": "^7.1.0",
"tinymce": "^5.10.3",
"tui-calendar-hi": "^2.1.3-3",
"view-design-hi": "^4.7.0-75",
"view-design-hi": "^4.7.0-76",
"vite": "^2.9.15",
"vite-plugin-file-copy": "^1.0.0",
"vite-plugin-require": "^1.1.10",

View File

@ -111,7 +111,7 @@ export default {
if (!this.mobileTabbar) {
return true;
}
if (this.$Modal.visibles().length > 0) {
if (this.$Modal.visibleList().length > 0) {
return true;
}
if (this.fileFolderId > 0) {

View File

@ -136,7 +136,7 @@ export default {
},
showModal(v) {
$A.eeuiAppSetScrollEnabled(!v)
$A.eeuiAppSetScrollDisabled(v)
}
},

View File

@ -334,7 +334,7 @@ export default {
this.searchKey = ""
}
this.$emit("on-show-change", v)
$A.eeuiAppSetScrollEnabled(!v)
$A.eeuiAppSetScrollDisabled(v)
},
searchKey() {

View File

@ -191,10 +191,16 @@
this.eeuiModule()?.copyText(text)
},
// 设置是否允许滚动
eeuiAppSetScrollEnabled(enabled) {
this.eeuiModule("webview")?.setScrollEnabled(enabled);
// 设置是否禁止滚动
eeuiAppSetScrollDisabled(disabled) {
if (disabled) {
this.__setScrollDisabledNum++
} else {
this.__setScrollDisabledNum--
}
this.eeuiModule("webview")?.setScrollEnabled(this.__setScrollDisabledNum <= 0);
},
__setScrollDisabledNum: 0,
// 设置应用程序级别的摇动撤销仅支持iOS、android无效
eeuiAppShakeToEditEnabled(enabled) {

View File

@ -38,11 +38,11 @@ export default {
},
mounted() {
emitter.on('dialogModalMoveTop', this.handleMoveTop);
emitter.on('handleMoveTop', this.handleMoveTop);
},
beforeDestroy() {
emitter.off('dialogModalMoveTop', this.handleMoveTop);
emitter.off('handleMoveTop', this.handleMoveTop);
},
computed: {
@ -89,7 +89,7 @@ export default {
},
show(v) {
$A.eeuiAppSetScrollEnabled(!v)
$A.eeuiAppSetScrollDisabled(v)
}
},
@ -105,8 +105,8 @@ export default {
this.closIng--
})
},
handleMoveTop() {
this.$refs.modal?.handleMoveTop();
handleMoveTop(type) {
type === 'dialogModal' && this.$refs.modal?.handleMoveTop();
}
}
}

View File

@ -1419,13 +1419,16 @@ export default {
if (this.location !== 'modal' || !this.$isEEUiApp) {
return
}
this.tempRepeat && this.tempRepeat()
this.tempRepeat = $A.repeatWithCount(() => {
if (this.viewportTimer) {
this.viewportTimer()
this.viewportTimer = null
}
this.viewportTimer = $A.repeatWithCount(() => {
this.$refs.footer?.scrollIntoView({
block: 'end',
behavior: 'smooth'
})
}, 500, 500, 3)
}, 500, 500, 2)
}
},

View File

@ -50,11 +50,11 @@ export default {
},
mounted() {
emitter.on('taskModalMoveTop', this.handleMoveTop);
emitter.on('handleMoveTop', this.handleMoveTop);
},
beforeDestroy() {
emitter.off('taskModalMoveTop', this.handleMoveTop);
emitter.off('handleMoveTop', this.handleMoveTop);
},
methods: {
@ -69,8 +69,8 @@ export default {
return true;
}
},
handleMoveTop() {
this.$refs.modal?.handleMoveTop();
handleMoveTop(type) {
type === 'taskModal' && this.$refs.modal?.handleMoveTop();
}
}
}

View File

@ -61,7 +61,7 @@ export default {
});
window.visualViewport?.addEventListener('resize', () => {
state.viewportHeight = window.visualViewport?.height || 0;
state.viewportHeight = window.visualViewport.height || 0;
});
},
@ -2312,7 +2312,7 @@ export default {
return
}
if (state.taskId > 0) {
emitter.emit('taskModalMoveTop'); // 已打开任务时将任务窗口置顶
emitter.emit('handleMoveTop', 'taskModal'); // 已打开任务时将任务窗口置顶
}
state.taskArchiveView = task_id;
state.taskId = task_id;
@ -3084,7 +3084,7 @@ export default {
}
//
if (state.dialogId) {
emitter.emit('dialogModalMoveTop'); // 已打开对话时将对话窗口置顶
emitter.emit('handleMoveTop', 'dialogModal'); // 已打开对话时将对话窗口置顶
}
//
requestAnimationFrame(_ => {