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",
|
"stylus-loader": "^7.1.0",
|
||||||
"tinymce": "^5.10.3",
|
"tinymce": "^5.10.3",
|
||||||
"tui-calendar-hi": "^2.1.3-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": "^2.9.15",
|
||||||
"vite-plugin-file-copy": "^1.0.0",
|
"vite-plugin-file-copy": "^1.0.0",
|
||||||
"vite-plugin-require": "^1.1.10",
|
"vite-plugin-require": "^1.1.10",
|
||||||
|
|||||||
@ -111,7 +111,7 @@ export default {
|
|||||||
if (!this.mobileTabbar) {
|
if (!this.mobileTabbar) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (this.$Modal.visibles().length > 0) {
|
if (this.$Modal.visibleList().length > 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (this.fileFolderId > 0) {
|
if (this.fileFolderId > 0) {
|
||||||
|
|||||||
@ -136,7 +136,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
showModal(v) {
|
showModal(v) {
|
||||||
$A.eeuiAppSetScrollEnabled(!v)
|
$A.eeuiAppSetScrollDisabled(v)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -334,7 +334,7 @@ export default {
|
|||||||
this.searchKey = ""
|
this.searchKey = ""
|
||||||
}
|
}
|
||||||
this.$emit("on-show-change", v)
|
this.$emit("on-show-change", v)
|
||||||
$A.eeuiAppSetScrollEnabled(!v)
|
$A.eeuiAppSetScrollDisabled(v)
|
||||||
},
|
},
|
||||||
|
|
||||||
searchKey() {
|
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)
|
this.eeuiModule()?.copyText(text)
|
||||||
},
|
},
|
||||||
|
|
||||||
// 设置是否允许滚动
|
// 设置是否禁止滚动
|
||||||
eeuiAppSetScrollEnabled(enabled) {
|
eeuiAppSetScrollDisabled(disabled) {
|
||||||
this.eeuiModule("webview")?.setScrollEnabled(enabled);
|
if (disabled) {
|
||||||
|
this.__setScrollDisabledNum++
|
||||||
|
} else {
|
||||||
|
this.__setScrollDisabledNum--
|
||||||
|
}
|
||||||
|
this.eeuiModule("webview")?.setScrollEnabled(this.__setScrollDisabledNum <= 0);
|
||||||
},
|
},
|
||||||
|
__setScrollDisabledNum: 0,
|
||||||
|
|
||||||
// 设置应用程序级别的摇动撤销(仅支持iOS、android无效)
|
// 设置应用程序级别的摇动撤销(仅支持iOS、android无效)
|
||||||
eeuiAppShakeToEditEnabled(enabled) {
|
eeuiAppShakeToEditEnabled(enabled) {
|
||||||
|
|||||||
@ -38,11 +38,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
emitter.on('dialogModalMoveTop', this.handleMoveTop);
|
emitter.on('handleMoveTop', this.handleMoveTop);
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
emitter.off('dialogModalMoveTop', this.handleMoveTop);
|
emitter.off('handleMoveTop', this.handleMoveTop);
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
@ -89,7 +89,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
show(v) {
|
show(v) {
|
||||||
$A.eeuiAppSetScrollEnabled(!v)
|
$A.eeuiAppSetScrollDisabled(v)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -105,8 +105,8 @@ export default {
|
|||||||
this.closIng--
|
this.closIng--
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleMoveTop() {
|
handleMoveTop(type) {
|
||||||
this.$refs.modal?.handleMoveTop();
|
type === 'dialogModal' && this.$refs.modal?.handleMoveTop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1419,13 +1419,16 @@ export default {
|
|||||||
if (this.location !== 'modal' || !this.$isEEUiApp) {
|
if (this.location !== 'modal' || !this.$isEEUiApp) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.tempRepeat && this.tempRepeat()
|
if (this.viewportTimer) {
|
||||||
this.tempRepeat = $A.repeatWithCount(() => {
|
this.viewportTimer()
|
||||||
|
this.viewportTimer = null
|
||||||
|
}
|
||||||
|
this.viewportTimer = $A.repeatWithCount(() => {
|
||||||
this.$refs.footer?.scrollIntoView({
|
this.$refs.footer?.scrollIntoView({
|
||||||
block: 'end',
|
block: 'end',
|
||||||
behavior: 'smooth'
|
behavior: 'smooth'
|
||||||
})
|
})
|
||||||
}, 500, 500, 3)
|
}, 500, 500, 2)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -50,11 +50,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
emitter.on('taskModalMoveTop', this.handleMoveTop);
|
emitter.on('handleMoveTop', this.handleMoveTop);
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
emitter.off('taskModalMoveTop', this.handleMoveTop);
|
emitter.off('handleMoveTop', this.handleMoveTop);
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@ -69,8 +69,8 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleMoveTop() {
|
handleMoveTop(type) {
|
||||||
this.$refs.modal?.handleMoveTop();
|
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', () => {
|
window.visualViewport?.addEventListener('resize', () => {
|
||||||
state.viewportHeight = window.visualViewport?.height || 0;
|
state.viewportHeight = window.visualViewport.height || 0;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -2312,7 +2312,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (state.taskId > 0) {
|
if (state.taskId > 0) {
|
||||||
emitter.emit('taskModalMoveTop'); // 已打开任务时将任务窗口置顶
|
emitter.emit('handleMoveTop', 'taskModal'); // 已打开任务时将任务窗口置顶
|
||||||
}
|
}
|
||||||
state.taskArchiveView = task_id;
|
state.taskArchiveView = task_id;
|
||||||
state.taskId = task_id;
|
state.taskId = task_id;
|
||||||
@ -3084,7 +3084,7 @@ export default {
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
if (state.dialogId) {
|
if (state.dialogId) {
|
||||||
emitter.emit('dialogModalMoveTop'); // 已打开对话时将对话窗口置顶
|
emitter.emit('handleMoveTop', 'dialogModal'); // 已打开对话时将对话窗口置顶
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
requestAnimationFrame(_ => {
|
requestAnimationFrame(_ => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user