Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Jun 26, 2024
1 parent a45d221 commit 090f4a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,23 @@ const CanyonReportListTable = ({ dataSource, loading, keywords, onSelect, onlyCh
title: t('common.total'),
key: 'total',
dataIndex: ['statements', 'total'],
sorter(a, b) {
return a.statements.total - b.statements.total;
},
},
{
title: t('common.covered'),
key: 'covered',
dataIndex: ['statements', 'covered'],
sorter(a, b) {
return a.statements.covered - b.statements.covered;
},
},
]
.concat(newlinesColumns)
.concat([
{
title: t('projects.config.coverage')+ ' %',
title: t('projects.config.coverage') + ' %',
width: '300px',
key: 'c',
sorter: (a, b) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,23 @@ const CanyonReportTreeTable = ({ dataSource, loading, activatedPath, onSelect, o
title: t('common.total'),
key: 'total',
dataIndex: ['summary', 'statements', 'total'],
sorter(a, b) {
return a.summary.statements.total - b.summary.statements.total;
},
},
{
title: t('common.covered'),
key: 'covered',
dataIndex: ['summary', 'statements', 'covered'],
sorter(a, b) {
return a.summary.statements.covered - b.summary.statements.covered;
},
},
]
.concat(newlinesColumns)
.concat([
{
title: t('projects.config.coverage')+ ' %',
title: t('projects.config.coverage') + ' %',
width: '300px',
key: 'c',
dataIndex: ['summary', 'statements', 'pct'],
Expand Down

0 comments on commit 090f4a9

Please sign in to comment.