|
|
@@ -3,11 +3,12 @@ import { Icon } from 'antd';
|
|
|
import classNames from 'classnames';
|
|
|
import styles from './index.less';
|
|
|
|
|
|
-const Trend = ({ colorful = true, flag, children, className, ...rest }) => {
|
|
|
+const Trend = ({ colorful = true, reverseColor = false, flag, children, className, ...rest }) => {
|
|
|
const classString = classNames(
|
|
|
styles.trendItem,
|
|
|
{
|
|
|
[styles.trendItemGrey]: !colorful,
|
|
|
+ [styles.reverseColor]: reverseColor && colorful,
|
|
|
},
|
|
|
className
|
|
|
);
|