Commit 4650de1d authored by 田翔's avatar 田翔

fix: 附件列表情况下下载图标为黑色

parent 6743f9b0
{
"name": "panda-xform",
"version": "2.8.1",
"description": "2.8.1: 地图类坐标仅显示问题",
"version": "2.8.2",
"description": "2.8.2: 附件列表情况下下载图标为黑色,坐标类控件无值情况不允许点开",
"keywords": [
"panda-xform"
],
......
......@@ -146,7 +146,16 @@ const Coordinate = (props) => {
onClick={showMap}
/>
:
<Button icon={<CompassOutlined style={{ color: 'rgba(0, 0, 0, 0.25)' }} />} onClick={showMap}>查看位置</Button>
<Button
icon={<CompassOutlined style={{ color: value ? '#0092fe' : 'rgba(0, 0, 0, 0.25)' }} />}
onClick={() => {
if (value) {
showMap()
}
}}
>
{value ? '查看位置' : '无位置信息'}
</Button>
}
<Drag
width={'80%'}
......
......@@ -133,7 +133,16 @@ const Device = (props) => {
addonAfter={disabled ? null : <CompassOutlined style={{ color: 'rgba(0, 0, 0, 0.25)' }} onClick={iconClick} />}
style={{ width: '100%' }}
/> :
<Button icon={<CompassOutlined style={{ color: 'rgba(0, 0, 0, 0.25)' }} />} onClick={iconClick}>查看设备</Button>
<Button
icon={<CompassOutlined style={{ color: value ? '#0092fe' : 'rgba(0, 0, 0, 0.25)' }} />}
onClick={() => {
if (value) {
iconClick()
}
}}
>
{value ? '查看设备' : '无设备信息'}
</Button>
}
<Drag
visible={visible}
......
......@@ -68,7 +68,7 @@ const FileUpload = (props) => {
showUploadList: download ?
{
showDownloadIcon: '下载',
downloadIcon: <ArrowDownOutlined style={{ color: 'white' }} />,
downloadIcon: <ArrowDownOutlined style={{ color: fileType === '图片' ? 'white' : '' }} />,
} : {},
beforeUpload(file, fileList) {
/** @Tips: 解决提交文件中存在特殊字符的问题 */
......@@ -165,7 +165,7 @@ const FileUpload = (props) => {
setShowList(JSON.stringify(fileList))
}
}, [value])
return (
<div className={styles.uploadBox}>
<Upload
......
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