Rainbell129 / Obsidian-Homepage

A dashboard for your obsidian vault.
MIT License
1.41k stars 124 forks source link

进度条无法在dataviewjs中正确显示 #5

Closed Steven-AA closed 2 years ago

Steven-AA commented 2 years ago

我添加了progress 相关的css, 直接写的进度条可以显示了

sp20220406_130427_583

,但dataviewjs里面无法正确显示,是我遗漏了什么吗?

sp20220406_130336_394

Rainbell129 commented 2 years ago

你用的是新代码吗?

Sent with a Sparkhttps://sparkmailapp.com/source?from=signature

Message ID: @.***>

Steven-AA commented 2 years ago

dataviewjs的代码用的是Project Tracking.md里的,最新的

Steven-AA commented 2 years ago

试出来了,我漏掉了groupedCount:: true, 但这个是必要的吗?toTheProgressBar 是不是应该在 if (groupedCount) 外面执行?

Rainbell129 commented 2 years ago

我还真没注意,因为我这个是直接建立在人家的代码上的。我查一下逻辑。

Sent with a Sparkhttps://sparkmailapp.com/source?from=signature

Message ID: @.***>

Steven-AA commented 2 years ago
output.map(row => {
//row[1] = insert1000sep(row[1]);
row[2] = toTheProgressBar(row[2]);
return row;
});

我把上面的代码移到了if (groupedCount)外面,我这是可以正常工作的,不知道会不会影响groupCount相关的内容。

Rainbell129 commented 2 years ago

我觉得不会

Sent with a Sparkhttps://sparkmailapp.com/source?from=signature On Apr 6, 2022, 2:43 PM +0800, 张卿云 @.***>, wrote:

output.map(row => {

//row[1] = insert1000sep(row[1]);

row[2] = toTheProgressBar(row[2]);

return row;

});

我把上面的代码移到了if (groupedCount) 外面,我这是可以正常工作的,不知道会不会影响groupCount相关的内容。

— Reply to this email directly, view it on GitHubhttps://github.com/Rainbell129/Obsidian-Homepage/issues/5#issuecomment-1089881810, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN6HKYGF67JVUJWLC2OTROLVDUXBXANCNFSM5SUZQ4WA. You are receiving this because you commented.Message ID: @.***>