|
- import BasicInfo, { type BasicInfoData } from '@/components/BasicInfo';
- import InfoGroup from '@/components/InfoGroup';
- import classNames from 'classnames';
- import styles from './index.less';
- export * from '@/components/BasicInfo/format';
- export type { BasicInfoData };
-
- type ConfigInfoProps = {
- title: string;
- data: BasicInfoData[];
- labelWidth: number;
- className?: string;
- style?: React.CSSProperties;
- };
-
- function ConfigInfo({ title, data, labelWidth, className, style }: ConfigInfoProps) {
- return (
- <InfoGroup title={title} className={classNames(styles['config-info'], className)} style={style}>
- <div className={styles['config-info__content']}>
- <BasicInfo datas={data} labelWidth={labelWidth} />
- </div>
- </InfoGroup>
- );
- }
-
- export default ConfigInfo;
|