import { Row, Col, } from 'antd' import React from 'react' class DataStatistics extends React.Component { constructor(props) { super(props); } getIcon(i, pathname) { switch (i) { case 0: return
; case 1: return
; case 2: return
; case 3: return
; default: return
; } } render() { const { countDatas, pathname } = this.props; return (
{countDatas.map( (data,index) => { const { showname, num } = data; return (
{ this.getIcon(index,pathname) }
{showname}
{num}
) })}
) } } export default DataStatistics