import React, { memo } from 'react';
import { Row, Col, Table, Tooltip, Card, Icon } from 'antd';
import { FormattedMessage } from 'umi-plugin-react/locale';
import { Trend, NumberInfo, Charts } from 'ant-design-pro';
import numeral from 'numeral';
import styles from '../style.less';
const { MiniArea } = Charts;
const columns = [
{
title: ,
dataIndex: 'index',
key: 'index',
},
{
title: (
),
dataIndex: 'keyword',
key: 'keyword',
render: text => {text},
},
{
title: ,
dataIndex: 'count',
key: 'count',
sorter: (a, b) => a.count - b.count,
className: styles.alignRight,
},
{
title: ,
dataIndex: 'range',
key: 'range',
sorter: (a, b) => a.range - b.range,
render: (text, record) => (
{text}%
),
align: 'right',
},
];
const TopSearch = memo(({ loading, visitData2, searchData, dropdownGroup }) => (
}
extra={dropdownGroup}
style={{ marginTop: 24 }}
>
}
>
}
gap={8}
total={numeral(12321).format('0,0')}
status="up"
subTotal={17.1}
/>
}
>
}
total={2.7}
status="down"
subTotal={26.2}
gap={8}
/>
record.index}
size="small"
columns={columns}
dataSource={searchData}
pagination={{
style: { marginBottom: 0 },
pageSize: 5,
}}
/>
));
export default TopSearch;