Commit 3c5a4a18 by zhaochengxiang

资产导入日志显示换行

parent 6926f77b
import React, { useState, useEffect, useContext } from 'react'; import React, { useState, useEffect, useContext } from 'react';
import { Button, Upload, Drawer, Table, Pagination, Divider, Form } from 'antd'; import { Button, Upload, Drawer, Table, Pagination, Divider, Form, Typography } from 'antd';
import { UploadOutlined, DownloadOutlined } from '@ant-design/icons'; import { UploadOutlined, DownloadOutlined } from '@ant-design/icons';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
...@@ -206,7 +206,11 @@ const ImportAssetDrawer = (props) => { ...@@ -206,7 +206,11 @@ const ImportAssetDrawer = (props) => {
pagination={false} pagination={false}
loading={loading} loading={loading}
expandable={{ expandable={{
expandedRowRender: record => <p style={{ margin: 0 }}>{record.message||''}</p> expandedRowRender: record => <React.Fragment>
{record.message?.split('<br/>').map((info, index) => {
return <Typography.Paragraph key={index}>{info}</Typography.Paragraph>
})}
</React.Fragment>
}} }}
sticky sticky
/> />
......
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