OSDN Git Service
(root)
/
bytom
/
bytom-electron.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2e44ba0284300c94164dedebe751d2d3b9d83050
[bytom/bytom-electron.git]
/
src
/
features
/
shared
/
components
/
TableList
/
TableList.jsx
1
import React from 'react'
2
import styles from './TableList.scss'
3
4
class TableList extends React.Component {
5
render() {
6
return (
7
<table className={styles.main}>
8
<thead>
9
<tr>
10
{this.props.titles.map(title => <th key={title}>{title}</th>)}
11
<th></th>
12
</tr>
13
</thead>
14
<tbody>
15
{this.props.children}
16
</tbody>
17
</table>
18
)
19
}
20
}
21
22
export default TableList