mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
no message
This commit is contained in:
parent
1175b330f5
commit
9e4f733c28
@ -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",
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -136,7 +136,7 @@ export default {
|
||||
},
|
||||
|
||||
showModal(v) {
|
||||
$A.eeuiAppSetScrollEnabled(!v)
|
||||
$A.eeuiAppSetScrollDisabled(v)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -334,7 +334,7 @@ export default {
|
||||
this.searchKey = ""
|
||||
}
|
||||
this.$emit("on-show-change", v)
|
||||
$A.eeuiAppSetScrollEnabled(!v)
|
||||
$A.eeuiAppSetScrollDisabled(v)
|
||||
},
|
||||
|
||||
searchKey() {
|
||||
|
||||
12
resources/assets/js/functions/eeui.js
vendored
12
resources/assets/js/functions/eeui.js
vendored
@ -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) {
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
resources/assets/js/store/actions.js
vendored
6
resources/assets/js/store/actions.js
vendored
@ -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(_ => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user