react-base-client 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ const XAMap: React.FC<XAMapProps> = (props) => {
|
|
|
57
57
|
|
|
58
58
|
return (
|
|
59
59
|
<>
|
|
60
|
-
<div
|
|
60
|
+
<div
|
|
61
61
|
onClick={handleMapClick}
|
|
62
62
|
style={{
|
|
63
63
|
padding: '12px',
|
|
@@ -67,11 +67,20 @@ const XAMap: React.FC<XAMapProps> = (props) => {
|
|
|
67
67
|
cursor: 'pointer',
|
|
68
68
|
minHeight: '40px',
|
|
69
69
|
display: 'flex',
|
|
70
|
-
|
|
70
|
+
flexDirection: 'column',
|
|
71
|
+
alignItems: 'flex-start',
|
|
71
72
|
color: value ? '#000' : '#999'
|
|
72
73
|
}}
|
|
73
74
|
>
|
|
74
|
-
{value
|
|
75
|
+
{value && value['设备类型'] ? (
|
|
76
|
+
<>
|
|
77
|
+
<div>设备类型:{value['设备类型'] || '-'}</div>
|
|
78
|
+
<div>地址:{value['地址'] || '-'}</div>
|
|
79
|
+
<div>设备编号:{value['设备编号'] || '-'}</div>
|
|
80
|
+
</>
|
|
81
|
+
) : (
|
|
82
|
+
<span>{placeholder}</span>
|
|
83
|
+
)}
|
|
75
84
|
</div>
|
|
76
85
|
|
|
77
86
|
<Popup
|