Commit 8b815e2b authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复 disabled 下还能够删除的问题

parent 4919a8a3
......@@ -133,7 +133,7 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
</div>}
</Upload>
{
imgUrl && <div className={styles.delete_wrap}><Button onClick={clearImage} className={styles.delete_btn} type="text" icon={<DeleteOutlined />} /></div>
imgUrl && !uploadProps.disabled && <div className={styles.delete_wrap}><Button onClick={clearImage} className={styles.delete_btn} type="text" icon={<DeleteOutlined />} /></div>
}
</div>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment