0
点赞
收藏
分享

微信扫一扫

jira项目笔记9-封装table得一个组件(不用ant之前)

潇湘落木life 2022-10-08 阅读 169
编程语言

const SearchList = ({ lists, users }) =>
{
return (
<table>
<thead>
<tr>
<th>项目</th>
<th>负责人</th>
</tr>
</thead>
<tbody>
{
lists.map(project =>
<tr>
<td>{project.name}</td>
<td>{users.find(user => user.id === project.personId)?.name}</td>
</tr>
)
}
</tbody>
</table>
)
}

export default SearchList

jira项目笔记9-封装table得一个组件(不用ant之前)_其它



举报

相关推荐

0 条评论