import * as React from 'react'; import { CountProps } from 'src/types/op-table'; import { CnBalloon, CnIcon } from '@alife/cn-ui'; import classnames from 'classnames'; /** * * * *
订单号: 12312312
*
拣选号: 123092103129 | 蓝号 01
*
* */ export default function Count(props: CountProps) { const { dataSource = [] } = props; return (
{dataSource.map((item) => { const { balloon, onClick } = item; let type = ''; // icon类型 let cls = ''; // icon自定义样式类 if (balloon && balloon.children) { type = 'icon-help-color'; cls = 'icon-green'; } else if (onClick instanceof Function) { type = 'icon-triangle-right-fill'; cls = 'icon-black'; } const icon = ( ); return (
{item.value} {item.label} {balloon && balloon.children ? ( {item?.balloon?.children || item.label} ) : null}
); })}
); }