Merge pull request #63 from MrXujiang/feature/zjl

🐛 修复删除按钮,不能随着右侧同步隐藏
This commit is contained in:
dragon 2020-10-19 23:50:17 +08:00 committed by GitHub
commit 9338eee6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -558,22 +558,17 @@ const Container = (props: {
{!rightColla ? <DoubleRightOutlined /> : <DoubleLeftOutlined />} {!rightColla ? <DoubleRightOutlined /> : <DoubleLeftOutlined />}
</div> </div>
<div <div
style={ style={{
!rightColla width: rightColla ? 0 : '279px',
? { position: 'absolute',
position: 'absolute', transform: 'translate(0,-10%)',
transform: 'translate(0,-10%)', transition: 'all ease-in-out 0.5s',
transition: 'all ease-in-out 2s', textAlign: 'center',
textAlign: 'center', bottom: -5,
bottom: -5, right: rightColla ? 0 : 16,
right: 16, background: 'hsla(0,0%,88.2%,.7)',
background: 'hsla(0,0%,88.2%,.7)', padding: rightColla ? 0 : '10px',
padding: '10px', }}
width: '279px',
display: 'block',
}
: { display: 'none' }
}
> >
<Button block type="primary" onClick={() => handleDel(curPoint.id)}> <Button block type="primary" onClick={() => handleDel(curPoint.id)}>