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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-base-client",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "author": "yyc <000000@163.com>",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -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
- alignItems: 'center',
70
+ flexDirection: 'column',
71
+ alignItems: 'flex-start',
71
72
  color: value ? '#000' : '#999'
72
73
  }}
73
74
  >
74
- {value ? '点击查看地图' : placeholder}
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