mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
perf: 优化项目面板任务加载
This commit is contained in:
parent
16d0d1687f
commit
e6c7007be5
@ -1686,13 +1686,13 @@ export default {
|
|||||||
return this.columnVisibilitys[column_id] && this.taskVisibilitys[id]?.visible
|
return this.columnVisibilitys[column_id] && this.taskVisibilitys[id]?.visible
|
||||||
},
|
},
|
||||||
|
|
||||||
taskItemStyle({id, column_id, color}) {
|
taskItemStyle({id, column_id, complete_at, color}) {
|
||||||
const style = {}
|
const style = {}
|
||||||
if (color) {
|
if (color) {
|
||||||
style.backgroundColor = color;
|
style.backgroundColor = color;
|
||||||
}
|
}
|
||||||
if (!this.taskItemVisible({id, column_id})) {
|
if (!this.taskItemVisible({id, column_id})) {
|
||||||
style.height = (this.taskVisibilitys[id]?.height || 146) + 'px';
|
style.height = (this.taskVisibilitys[id]?.height || (complete_at ? 46 :146)) + 'px';
|
||||||
}
|
}
|
||||||
return style;
|
return style;
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user