import React from 'react'; import './index.less'; import Module from '../Module'; import Table from '../Table'; import Radio from '../RadioButton'; import Select from '../Select'; function getFilter(filter) { switch (filter.type) { case 'radio': return ; case 'select': return ; default: return ''; } } function ListTable(props) { const { style, position, title, rightAction, filters = [], columns = [], data = [] } = props; return ( {title && ( {position} {title} )} {filters.length > 0 && ( 筛选 {filters.map(filter => { return {getFilter(filter)}; })} {rightAction} )} {data && data.length > 0 && } ); } ListTable.propTypes = {}; export default ListTable;