no message

This commit is contained in:
kuaifan 2025-03-04 08:44:11 +08:00
parent a6c7c0c7ad
commit 622fe1e5d9
2 changed files with 25 additions and 6 deletions

View File

@ -60,7 +60,7 @@
"stylus-loader": "^7.1.0",
"tinymce": "^5.10.3",
"tui-calendar-hi": "^1.15.1-5",
"view-design-hi": "^4.7.0-67",
"view-design-hi": "^4.7.0-68",
"vite": "^2.9.15",
"vite-plugin-file-copy": "^1.0.0",
"vite-plugin-require": "^1.1.10",

View File

@ -1053,7 +1053,7 @@ export default {
this.handleColumnDebounce();
},
searchText() {
this.handleColumnDebounce();
this.handleColumnDebounce(true);
},
windowWidth() {
this.handleColumnDebounce(100);
@ -1579,7 +1579,13 @@ export default {
flowChange(_, data) {
this.flowInfo = data.pop() || {};
this.handleColumnDebounce();
// ""
if (this.flowInfo.status === 'end' && !this.projectData.cacheParameter.completedTask) {
this.toggleParameter('completedTask')
}
this.handleColumnDebounce(true);
},
inviteCopy() {
@ -1738,7 +1744,11 @@ export default {
return style;
},
handleColumnDebounce(wait = 10) {
handleColumnDebounce(wait = 10, needView = false) {
if (typeof wait === "boolean") {
needView = wait
wait = 10
}
if (this.columnDebounceWait !== wait) {
this.columnDebounceWait = wait;
if (this.columnDebounceInvoke) {
@ -1747,11 +1757,20 @@ export default {
}
}
if (!this.columnDebounceInvoke) {
this.columnDebounceInvoke = debounce(_ => {
this.columnDebounceInvoke = debounce(needView => {
this.$nextTick(_ => {
switch (this.tabTypeActive) {
case 'column':
this.handleColumnScroll()
if (needView === true) {
//
requestAnimationFrame(() => {
const mainContainer = this.$refs.projectColumn;
if (mainContainer && !mainContainer.querySelector('.task-head')) {
$A.scrollIntoViewIfNeeded(mainContainer.querySelector('.task-draggable:not(.hidden)'))
}
})
}
break;
case 'table':
this.handleTaskScroll({target: this.$refs.projectTableScroll?.$el})
@ -1760,7 +1779,7 @@ export default {
})
}, wait);
}
this.columnDebounceInvoke();
this.columnDebounceInvoke(needView);
},
handleColumnScroll() {