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

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

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