export const combineClassName = (...classNames: (string | undefined)[]) =>
compact(classNames).join(' ');
合并class名字:
<div className={combineClassName(styles.text14, styles.marginTop30)}> <span className={styles.label}>{item.label}</span> <span>{item.value}</span> </div>