Commit 4e7027e5 authored by Y.H's avatar Y.H

Modify the task panel default folding, there is a task to start again

修改任务面板默认折叠,有任务再展开
parent f00d2706
......@@ -18,6 +18,8 @@ class Tasks {
constructor(cell, manager) {
cell.setText(`<i class="fa fa-tasks"></i> ${LANG['title']}`);
cell.setHeight(250);
// 默认折叠panel
cell.collapse();
// 创建表格
let grid = cell.attachGrid();
......@@ -44,6 +46,8 @@ class Tasks {
// task.update('20%');
// task.end('100%');
new(name, desc, progress) {
// 展开panel
this.cell.expand();
// 创建一个随机ID
const hash = String(+new Date() + Math.random()).replace('.', '_');
this.grid.addRow(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment