import React, { Component } from 'react'; import { List, Card, Icon, Dropdown, Menu, Avatar, Tooltip } from 'antd'; import numeral from 'numeral'; import { connect } from 'dva'; import stylesApplications from './index.less'; import { ModalState } from '../../model'; export function formatWan(val: number) { const v = val * 1; if (!v || Number.isNaN(v)) return ''; let result: React.ReactNode = val; if (val > 10000) { result = ( {Math.floor(val / 10000)} ); } return result; } @connect(({ BLOCK_NAME_CAMEL_CASE }: { BLOCK_NAME_CAMEL_CASE: ModalState }) => ({ list: BLOCK_NAME_CAMEL_CASE.list, })) class Applications extends Component> { render() { const { list } = this.props; const itemMenu = ( 1st menu item 2nd menu item 3d menu item ); const CardInfo: React.SFC<{ activeUser: React.ReactNode; newUser: React.ReactNode; }> = ({ activeUser, newUser }) => (

活跃用户

{activeUser}

新增用户

{newUser}

); return ( ( , , , , ]} > } title={item.title} />
)} /> ); } } export default Applications;