|
@@ -10,9 +10,9 @@ import consts from '@/consts'
|
|
|
|
|
|
|
|
const Popcontent = props => {
|
|
const Popcontent = props => {
|
|
|
const { visible, onClose,collapsed, id = '' } = props
|
|
const { visible, onClose,collapsed, id = '' } = props
|
|
|
- const needSubtractHeight = 48 + 48 + 48 + 64 + 24 // 需要被裁掉的高度
|
|
|
|
|
|
|
+ const needSubtractHeight = 55 // 需要被裁掉的高度
|
|
|
// const needSubtractWidth = (collapsed ? 208 : 48) + 48 + 48 + 48 // 需要被裁掉的高度
|
|
// const needSubtractWidth = (collapsed ? 208 : 48) + 48 + 48 + 48 // 需要被裁掉的高度
|
|
|
- const [y] = useAutoTable(collapsed, needSubtractHeight)
|
|
|
|
|
|
|
+ const [x,y] = useAutoTable(collapsed, needSubtractHeight)
|
|
|
console.log(y)
|
|
console.log(y)
|
|
|
|
|
|
|
|
|
|
|
|
@@ -49,6 +49,10 @@ const Popcontent = props => {
|
|
|
<Drawer
|
|
<Drawer
|
|
|
title="联系人"
|
|
title="联系人"
|
|
|
placement="right"
|
|
placement="right"
|
|
|
|
|
+ bodyStyle={{
|
|
|
|
|
+ height:y,
|
|
|
|
|
+ overflowY:'hidden'
|
|
|
|
|
+ }}
|
|
|
width={clientWidth}
|
|
width={clientWidth}
|
|
|
closable
|
|
closable
|
|
|
onClose={onClose}
|
|
onClose={onClose}
|
|
@@ -56,7 +60,7 @@ const Popcontent = props => {
|
|
|
// mask={false}
|
|
// mask={false}
|
|
|
>
|
|
>
|
|
|
<Row>
|
|
<Row>
|
|
|
- <Col span={12} className="sheet-box-left">
|
|
|
|
|
|
|
+ <Col span={12} className="sheet-box-left" style={{ height:y-25,overflowY:'auto' }}>
|
|
|
<div className="sheet-left-panel zh-pd-right-15">
|
|
<div className="sheet-left-panel zh-pd-right-15">
|
|
|
<ContanctForm client={state.client} />
|
|
<ContanctForm client={state.client} />
|
|
|
</div>
|
|
</div>
|