Merge pull request #79 from overQ-N/feature/overq

update: 更新readme开源协议  未选中组件时不出现删除按钮
This commit is contained in:
MrXujiang 2020-12-08 12:56:45 +08:00 committed by GitHub
commit 0332f27970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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={{