mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +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
|
||||
},
|
||||
|
||||
taskItemStyle({id, column_id, color}) {
|
||||
taskItemStyle({id, column_id, complete_at, color}) {
|
||||
const style = {}
|
||||
if (color) {
|
||||
style.backgroundColor = color;
|
||||
}
|
||||
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;
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user