@cqsjjb/jjb-react-admin-component 3.3.0-beta.4 → 3.3.0-beta.6
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/AMap/index.js +2 -1
- package/AMap/index.less +0 -19
- package/package.json +1 -1
package/AMap/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState, useCallback } from 'react';
|
|
2
2
|
import { Button, Col, message, Modal, Result, Row } from 'antd';
|
|
3
|
+
import './index.less';
|
|
3
4
|
const _A_MAP_SEARCH_ = '_A_MAP_SEARCH_';
|
|
4
5
|
const _A_MAP_DEFAULT_POINT_ = {
|
|
5
6
|
lng: 116.397437,
|
|
@@ -94,7 +95,7 @@ export default function AMap({
|
|
|
94
95
|
geolocation.getCurrentPosition((status, result) => {
|
|
95
96
|
if (status !== 'complete') {
|
|
96
97
|
// 不做致命处理,但提示
|
|
97
|
-
message.error('
|
|
98
|
+
message.error('未开启定位,定位失败!');
|
|
98
99
|
} else {
|
|
99
100
|
// 如果需要可以从 result.position 取值
|
|
100
101
|
try {
|
package/AMap/index.less
CHANGED
|
@@ -14,22 +14,3 @@
|
|
|
14
14
|
outline: none;
|
|
15
15
|
border-radius: 3px;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
.tangram-suggestion-main {
|
|
19
|
-
z-index: 1000;
|
|
20
|
-
margin-top: 6px;
|
|
21
|
-
|
|
22
|
-
.tangram-suggestion {
|
|
23
|
-
border: none;
|
|
24
|
-
box-shadow: 1px 2px 1px rgb(0 0 0 / 15%);
|
|
25
|
-
border-radius: 3px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
#selCityWd {
|
|
30
|
-
box-sizing: content-box;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.city_content_top {
|
|
34
|
-
box-sizing: content-box;
|
|
35
|
-
}
|