update: 更新readme开源协议

未选中组件时不出现删除按钮
This commit is contained in:
overQ 2020-12-06 20:01:24 +08:00
parent 158aedf317
commit 4f6a958f7c
2 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
</a>
<a href="#" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
<img alt="license:GPL3.0" src="https://img.shields.io/badge/license-GPL3.0-yellow.svg" />
</a>
</p>

View File

@ -494,9 +494,13 @@ const Container = (props: {
padding: rightColla ? 0 : '10px',
}}
>
<Button block type="primary" onClick={() => handleDel(curPoint.id)}>
</Button>
{curPoint?.id ? (
<Button block type="primary" onClick={() => handleDel(curPoint.id)}>
</Button>
) : (
''
)}
</div>
<div
style={{