|
@@ -2,7 +2,7 @@ import React from 'react';
|
2
|
2
|
import { Col, Row } from 'antd';
|
3
|
3
|
|
4
|
4
|
export default React.forwardRef((props, ref) => {
|
5
|
|
- const { data = {} } = props;
|
|
5
|
+ const { data = {}, onClose } = props;
|
6
|
6
|
console.log(data);
|
7
|
7
|
|
8
|
8
|
return (
|
|
@@ -12,11 +12,14 @@ export default React.forwardRef((props, ref) => {
|
12
|
12
|
background: 'rgba(0,0,0,0.8)',
|
13
|
13
|
color: '#fff',
|
14
|
14
|
padding: '1em',
|
|
15
|
+ paddingTop: '0',
|
15
|
16
|
borderRadius: '4px',
|
16
|
17
|
width: '320px',
|
17
|
18
|
}}
|
18
|
19
|
>
|
19
|
|
- <div style={{ textAlign: 'right' }}>X</div>
|
|
20
|
+ <div style={{ textAlign: 'right', fontSize: '24px' }} onClick={onClose}>
|
|
21
|
+ ×
|
|
22
|
+ </div>
|
20
|
23
|
<Row gutter={16}>
|
21
|
24
|
<Col span={8}>农机名称</Col>
|
22
|
25
|
<Col span={16}>{data.machineryName || ''}</Col>
|