|
|
@@ -1,15 +1,11 @@
|
|
|
-import {
|
|
|
- Drawer,
|
|
|
- Row,
|
|
|
- Col
|
|
|
-} from 'antd'
|
|
|
+import { Drawer, Row, Col } from 'antd'
|
|
|
import React, { useState, useEffect } from 'react'
|
|
|
-import "../index.scss"
|
|
|
-import ContanctForm from '@/components/PopContent/Contacts/ContanctForm'
|
|
|
+import '../index.scss'
|
|
|
+import ContanctForm from './ContanctForm'
|
|
|
|
|
|
-const Popcontent = props => {
|
|
|
+const Popcontent = props => {
|
|
|
// 浏览器实际宽度
|
|
|
- const [ clientWidth, setClientWidth ] = useState(document.body.clientWidth * 0.75)
|
|
|
+ const [clientWidth, setClientWidth] = useState(document.body.clientWidth * 0.75)
|
|
|
useEffect(() => {
|
|
|
window.addEventListener('resize', () => {
|
|
|
setClientWidth(document.body.clientWidth * 0.7)
|
|
|
@@ -18,10 +14,7 @@ const Popcontent = props => {
|
|
|
window.removeEventListener('resize', () => {})
|
|
|
}
|
|
|
}, [])
|
|
|
- const {
|
|
|
- visible,
|
|
|
- onClose
|
|
|
- } = props
|
|
|
+ const { visible, onClose } = props
|
|
|
return (
|
|
|
<div>
|
|
|
<div className="sheet-box">
|
|
|
@@ -33,14 +26,15 @@ const Popcontent = props => {
|
|
|
onClose={onClose}
|
|
|
visible={visible}
|
|
|
// mask={false}
|
|
|
- />
|
|
|
- <Row>
|
|
|
- <Col span={12} className="sheet-box-left">
|
|
|
- <div className="sheet-left-panel zh-pd-right-15">
|
|
|
- <ContanctForm/>
|
|
|
- </div>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
+ >
|
|
|
+ <Row>
|
|
|
+ <Col span={12} className="sheet-box-left">
|
|
|
+ <div className="sheet-left-panel zh-pd-right-15">
|
|
|
+ <ContanctForm />
|
|
|
+ </div>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ </Drawer>
|
|
|
</div>
|
|
|
</div>
|
|
|
)
|