|
@@ -5,10 +5,16 @@ import ContanctForm from '@/components/PopContent/Contacts/ContanctForm.jsx'
|
|
|
import ContanctTabList from '@/components/PopContent/Contacts/ContanctTabList.jsx'
|
|
import ContanctTabList from '@/components/PopContent/Contacts/ContanctTabList.jsx'
|
|
|
import ContanctLowerList from '@/components/PopContent/Contacts/ContanctLowerList.jsx'
|
|
import ContanctLowerList from '@/components/PopContent/Contacts/ContanctLowerList.jsx'
|
|
|
import { apiContactDetail } from '@/services/contact'
|
|
import { apiContactDetail } from '@/services/contact'
|
|
|
|
|
+import useAutoTable from '@/hooks/useAutoTable'
|
|
|
import consts from '@/consts'
|
|
import consts from '@/consts'
|
|
|
|
|
|
|
|
const Popcontent = props => {
|
|
const Popcontent = props => {
|
|
|
- const { visible, onClose, id = '' } = props
|
|
|
|
|
|
|
+ const { visible, onClose,collapsed, id = '' } = props
|
|
|
|
|
+ const needSubtractHeight = 48 + 48 + 48 + 64 + 24 // 需要被裁掉的高度
|
|
|
|
|
+ // const needSubtractWidth = (collapsed ? 208 : 48) + 48 + 48 + 48 // 需要被裁掉的高度
|
|
|
|
|
+ const [y] = useAutoTable(collapsed, needSubtractHeight)
|
|
|
|
|
+ console.log(y)
|
|
|
|
|
+
|
|
|
|
|
|
|
|
// 浏览器实际宽度
|
|
// 浏览器实际宽度
|
|
|
const [clientWidth, setClientWidth] = useState(document.body.clientWidth * 0.75)
|
|
const [clientWidth, setClientWidth] = useState(document.body.clientWidth * 0.75)
|
|
@@ -39,7 +45,7 @@ const Popcontent = props => {
|
|
|
}, [visible])
|
|
}, [visible])
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
- <div className="sheet-box">
|
|
|
|
|
|
|
+ <div className='sheet-box'>
|
|
|
<Drawer
|
|
<Drawer
|
|
|
title="联系人"
|
|
title="联系人"
|
|
|
placement="right"
|
|
placement="right"
|