mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-03-10 09:55:53 +00:00
update: 更新readme开源协议
未选中组件时不出现删除按钮
This commit is contained in:
parent
158aedf317
commit
4f6a958f7c
@ -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>
|
||||
|
||||
|
||||
@ -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={{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user