Commit f3a3fc57 authored by XieZhiXiong's avatar XieZhiXiong

feat: 合并样式

parent be4eb0f5
.container { .customize-column {
display: flex; :global {
flex: row; .ant-descriptions-item-content {
white-space: break-spaces;
.row {
display: flex;
flex-direction: row;
margin-bottom: @margin-md;
}
.col {
flex: 1;
.title {
color: #909399;
font-size: 12;
width: 104px;
display: inline-block;
} }
} }
}
.lastRow { \ No newline at end of file
margin-bottom: 0;
}
}
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-11 10:46:57 * @Date: 2021-05-11 10:46:57
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-11 15:46:24 * @LastEditTime: 2021-05-18 15:55:14
* @Description: 申请单基础信息 * @Description: 申请单基础信息
*/ */
import React, { CSSProperties } from 'react'; import React, { CSSProperties } from 'react';
import { Descriptions } from 'antd'; import { Descriptions } from 'antd';
import classNames from 'classnames';
import MellowCard, { MellowCardProps } from '@/components/MellowCard'; import MellowCard, { MellowCardProps } from '@/components/MellowCard';
import styles from './index.less'; import styles from './index.less';
...@@ -50,13 +51,16 @@ const defaultColumnProps: ColumnProps = { ...@@ -50,13 +51,16 @@ const defaultColumnProps: ColumnProps = {
const CustomizeColumn: React.FC<IProps> = (props: IProps) => { const CustomizeColumn: React.FC<IProps> = (props: IProps) => {
const { data, column, ...rest } = props; const { data, column, ...rest } = props;
const { className } = rest;
const mergeCls = classNames(styles['customize-column'], className);
return ( return (
<MellowCard <MellowCard
bodyStyle={{ bodyStyle={{
paddingBottom: 0, paddingBottom: 0,
}} }}
// className={styles.basicInfo}
{...rest} {...rest}
className={mergeCls}
> >
<Descriptions column={column}> <Descriptions column={column}>
{data.map((item, index) => ( {data.map((item, index) => (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment