{item}
15 | ); 16 | }); 17 | }; 18 | const getAmount = (data= {}) => { 19 | const total = {sum: 0, numeric: 0, text: 0, time: 0}; 20 | Object.keys(data).forEach(item => { 21 | if (['numeric', 'text', 'time'].includes(item)) { 22 | if (Array.isArray(data[item])) { 23 | total.sum += data[item].length; 24 | total[item] = data[item].length; 25 | } 26 | } 27 | }); 28 | return total; 29 | }; 30 | 31 | class CollapseFooter extends React.Component特征衍生策略
86 | {data && ( 87 |{mess}
52 |