@vtx/map 1.1.5 → 1.1.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/lib/VtxMap/OlMap/Map.js +14 -11
- package/lib/VtxModal/VtxModal.css +0 -62
- package/lib/VtxModal/VtxModal.js +7 -9
- package/lib/VtxModal/VtxModal.less +6 -4
- package/lib/VtxModal/draggableModal.js +1 -1
- package/lib/VtxSearchMap/VtxSearchMap.css +0 -170
- package/lib/VtxSearchMap/VtxSearchMap.js +5 -5
- package/lib/VtxSearchMap/VtxSearchMap.less +14 -12
- package/lib/default.js +1 -1
- package/package.json +1 -1
package/lib/VtxMap/OlMap/Map.js
CHANGED
|
@@ -633,7 +633,7 @@ var OlMap = function (_React$Component) {
|
|
|
633
633
|
if ('editGraphicChange' in t.props && typeof t.props.editGraphicChange == 'function') {
|
|
634
634
|
t.props.editGraphicChange(param);
|
|
635
635
|
}
|
|
636
|
-
t.GM.setGraphic(id, feature).setGraphicParam(id, _extends({}, param));
|
|
636
|
+
t.GM.setGraphic(id, feature).setGraphicParam(id, _extends({}, param, { source: gp.source }));
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
639
|
t.editId = id;
|
|
@@ -1493,6 +1493,7 @@ var OlMap = function (_React$Component) {
|
|
|
1493
1493
|
return false;
|
|
1494
1494
|
}
|
|
1495
1495
|
var gc = t.GM.getGraphic(item.id);
|
|
1496
|
+
var gp = t.GM.getGraphicParam(item.id);
|
|
1496
1497
|
var cg = {
|
|
1497
1498
|
width: 30,
|
|
1498
1499
|
height: 30,
|
|
@@ -1569,7 +1570,7 @@ var OlMap = function (_React$Component) {
|
|
|
1569
1570
|
x: item.longitude,
|
|
1570
1571
|
y: item.latitude
|
|
1571
1572
|
},
|
|
1572
|
-
source:
|
|
1573
|
+
source: gp.source
|
|
1573
1574
|
});
|
|
1574
1575
|
} else {
|
|
1575
1576
|
console.warn('\u66F4\u65B0\u7684\u70B9\u4F4Did\u4E0D\u5B58\u5728!');
|
|
@@ -1820,6 +1821,7 @@ var OlMap = function (_React$Component) {
|
|
|
1820
1821
|
}
|
|
1821
1822
|
//获取原有的图元
|
|
1822
1823
|
var gc = _this7.GM.getGraphic(item.id);
|
|
1824
|
+
var gp = t.GM.getGraphicParam(item.id);
|
|
1823
1825
|
//获取原有的面属性,转换key值
|
|
1824
1826
|
var cg = {
|
|
1825
1827
|
lineType: 'solid',
|
|
@@ -1857,7 +1859,7 @@ var OlMap = function (_React$Component) {
|
|
|
1857
1859
|
type: 'polygon',
|
|
1858
1860
|
rings: pts
|
|
1859
1861
|
},
|
|
1860
|
-
source:
|
|
1862
|
+
source: gp.source
|
|
1861
1863
|
});
|
|
1862
1864
|
} else {
|
|
1863
1865
|
console.warn('\u66F4\u65B0\u7684\u591A\u8FB9\u5F62id\u4E0D\u5B58\u5728!');
|
|
@@ -1968,6 +1970,7 @@ var OlMap = function (_React$Component) {
|
|
|
1968
1970
|
}
|
|
1969
1971
|
//获取原有的图元
|
|
1970
1972
|
var gc = t.GM.getGraphic(item.id);
|
|
1973
|
+
var gp = t.GM.getGraphicParam(item.id);
|
|
1971
1974
|
//获取原有的面属性,转换key值
|
|
1972
1975
|
var cg = {
|
|
1973
1976
|
lineType: 'solid',
|
|
@@ -2003,7 +2006,7 @@ var OlMap = function (_React$Component) {
|
|
|
2003
2006
|
y: parseFloat(item.latitude),
|
|
2004
2007
|
radius: parseFloat(item.radius)
|
|
2005
2008
|
},
|
|
2006
|
-
source:
|
|
2009
|
+
source: gp.source
|
|
2007
2010
|
});
|
|
2008
2011
|
});
|
|
2009
2012
|
//刷新图元
|
|
@@ -3038,8 +3041,8 @@ var OlMap = function (_React$Component) {
|
|
|
3038
3041
|
e: e,
|
|
3039
3042
|
id: id,
|
|
3040
3043
|
param: t.getGraphic(id),
|
|
3041
|
-
top: e.
|
|
3042
|
-
left: e.
|
|
3044
|
+
top: e.pixel ? e.pixel[0] : undefined, //当前点所在的位置(屏幕)
|
|
3045
|
+
left: e.pixel ? e.pixel[1] : undefined
|
|
3043
3046
|
};
|
|
3044
3047
|
t.props.mouseOverGraphic(obj);
|
|
3045
3048
|
}
|
|
@@ -3057,8 +3060,8 @@ var OlMap = function (_React$Component) {
|
|
|
3057
3060
|
e: e,
|
|
3058
3061
|
id: id,
|
|
3059
3062
|
param: t.getGraphic(id),
|
|
3060
|
-
top: e.
|
|
3061
|
-
left: e.
|
|
3063
|
+
top: e.pixel ? e.pixel[0] : undefined, //当前点所在的位置(屏幕)
|
|
3064
|
+
left: e.pixel ? e.pixel[1] : undefined
|
|
3062
3065
|
};
|
|
3063
3066
|
t.props.mouseOutGraphic(obj);
|
|
3064
3067
|
}
|
|
@@ -3201,9 +3204,9 @@ var OlMap = function (_React$Component) {
|
|
|
3201
3204
|
//编辑中的图元关闭其他事件返回
|
|
3202
3205
|
if (t.editId == id) return false;
|
|
3203
3206
|
if (typeof t.props.clickGraphic === 'function') {
|
|
3204
|
-
var _e$
|
|
3205
|
-
clientX = _e$
|
|
3206
|
-
clientY = _e$
|
|
3207
|
+
var _e$pixel = _slicedToArray(e.pixel, 2),
|
|
3208
|
+
clientX = _e$pixel[0],
|
|
3209
|
+
clientY = _e$pixel[1];
|
|
3207
3210
|
|
|
3208
3211
|
var param = t.getGraphic(id, clientX, clientY);
|
|
3209
3212
|
var obj = {
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
.vtx-ui-modal-normal .ant-modal .ant-modal-content {
|
|
2
|
-
height: 100%;
|
|
3
|
-
}
|
|
4
|
-
.vtx-ui-modal-normal .ant-modal .ant-modal-content .ant-modal-body {
|
|
5
|
-
max-height: calc(100% - 108px);
|
|
6
|
-
overflow: auto;
|
|
7
|
-
background-color: #fbfbfb;
|
|
8
|
-
}
|
|
9
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title {
|
|
10
|
-
position: relative;
|
|
11
|
-
width: 100%;
|
|
12
|
-
}
|
|
13
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title .vtx-ui-modal-title_name {
|
|
14
|
-
width: 100%;
|
|
15
|
-
color: #108EE2;
|
|
16
|
-
}
|
|
17
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title .vtx-ui-modal-close,
|
|
18
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title .vtx-ui-modal-maximizeIcon {
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: -13px;
|
|
21
|
-
right: -16px;
|
|
22
|
-
}
|
|
23
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title .vtx-ui-modal-close p,
|
|
24
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title .vtx-ui-modal-maximizeIcon p {
|
|
25
|
-
width: 36px;
|
|
26
|
-
height: 48px;
|
|
27
|
-
text-align: center;
|
|
28
|
-
line-height: 48px;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
border: 0;
|
|
31
|
-
background: transparent;
|
|
32
|
-
position: absolute;
|
|
33
|
-
right: 0;
|
|
34
|
-
top: 0;
|
|
35
|
-
z-index: 10;
|
|
36
|
-
font-weight: 700;
|
|
37
|
-
text-decoration: none;
|
|
38
|
-
-webkit-transition: color 0.3s ease;
|
|
39
|
-
transition: color 0.3s ease;
|
|
40
|
-
color: rgba(0, 0, 0, 0.43);
|
|
41
|
-
outline: 0;
|
|
42
|
-
display: inline-block;
|
|
43
|
-
}
|
|
44
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title .vtx-ui-modal-close p:hover,
|
|
45
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title .vtx-ui-modal-maximizeIcon p:hover {
|
|
46
|
-
color: #444;
|
|
47
|
-
text-decoration: none;
|
|
48
|
-
}
|
|
49
|
-
.vtx-ui-modal-normal .vtx-ui-modal-title .vtx-ui-modal-maximizeIcon {
|
|
50
|
-
right: 20px;
|
|
51
|
-
}
|
|
52
|
-
.vtx-ui-modal-maxClass .ant-modal {
|
|
53
|
-
top: 0 !important;
|
|
54
|
-
left: 0 !important;
|
|
55
|
-
width: 100% !important;
|
|
56
|
-
height: 100% !important;
|
|
57
|
-
padding-bottom: 0 !important;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
}
|
|
60
|
-
.vtx-ui-modal-maxClass .ant-modal-body {
|
|
61
|
-
height: calc(100% - 108px) !important;
|
|
62
|
-
}
|
package/lib/VtxModal/VtxModal.js
CHANGED
|
@@ -12,19 +12,17 @@ var _react = require('react');
|
|
|
12
12
|
|
|
13
13
|
var _react2 = _interopRequireDefault(_react);
|
|
14
14
|
|
|
15
|
-
require('./VtxModal.
|
|
15
|
+
require('./VtxModal.less');
|
|
16
16
|
|
|
17
17
|
var _modal = require('antd/lib/modal');
|
|
18
18
|
|
|
19
19
|
var _modal2 = _interopRequireDefault(_modal);
|
|
20
20
|
|
|
21
|
-
require('antd/lib/modal/style
|
|
21
|
+
require('antd/lib/modal/style');
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
require('antd/lib/icon/style');
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
require('antd/lib/icon/style/css');
|
|
25
|
+
var _default = require('../default');
|
|
28
26
|
|
|
29
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
28
|
|
|
@@ -197,7 +195,7 @@ var VtxModal = function (_React$Component) {
|
|
|
197
195
|
});
|
|
198
196
|
}
|
|
199
197
|
},
|
|
200
|
-
maximizable ? _react2.default.createElement(
|
|
198
|
+
maximizable ? _react2.default.createElement(_default.VtxMapIcon, { type: 'icon-shrink' }) : _react2.default.createElement(_default.VtxMapIcon, { type: 'icon-arrawsalt' })
|
|
201
199
|
)
|
|
202
200
|
) : null,
|
|
203
201
|
closable ? _react2.default.createElement(
|
|
@@ -206,9 +204,9 @@ var VtxModal = function (_React$Component) {
|
|
|
206
204
|
_react2.default.createElement(
|
|
207
205
|
'p',
|
|
208
206
|
{ onClick: t.props.onCancel },
|
|
209
|
-
_react2.default.createElement(
|
|
207
|
+
_react2.default.createElement(_default.VtxMapIcon, { type: 'icon-close' })
|
|
210
208
|
)
|
|
211
|
-
) :
|
|
209
|
+
) : null
|
|
212
210
|
);
|
|
213
211
|
}();
|
|
214
212
|
var bodyStyle = _extends({}, this.props.bodyStyle);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
+
|
|
1
3
|
.vtx-ui-modal-normal{
|
|
2
4
|
.ant-modal{
|
|
3
5
|
.ant-modal-content{
|
|
@@ -5,7 +7,7 @@
|
|
|
5
7
|
.ant-modal-body{
|
|
6
8
|
max-height: e('calc(100% - 108px)');
|
|
7
9
|
overflow: auto;
|
|
8
|
-
background-color:
|
|
10
|
+
background-color: @table-expanded-row-bg;
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
width: 100%;
|
|
15
17
|
.vtx-ui-modal-title_name{
|
|
16
18
|
width: 100%;
|
|
17
|
-
color:
|
|
19
|
+
color: @primary-color;
|
|
18
20
|
}
|
|
19
21
|
.vtx-ui-modal-close,.vtx-ui-modal-maximizeIcon{
|
|
20
22
|
position: absolute;
|
|
@@ -36,11 +38,11 @@
|
|
|
36
38
|
text-decoration: none;
|
|
37
39
|
-webkit-transition: color .3s ease;
|
|
38
40
|
transition: color .3s ease;
|
|
39
|
-
color:
|
|
41
|
+
color: @text-color;
|
|
40
42
|
outline: 0;
|
|
41
43
|
display: inline-block;
|
|
42
44
|
&:hover{
|
|
43
|
-
color:
|
|
45
|
+
color: @text-color-secondary;
|
|
44
46
|
text-decoration: none;
|
|
45
47
|
}
|
|
46
48
|
}
|
|
@@ -20,7 +20,7 @@ var _modal = require('antd/lib/modal');
|
|
|
20
20
|
|
|
21
21
|
var _modal2 = _interopRequireDefault(_modal);
|
|
22
22
|
|
|
23
|
-
require('antd/lib/modal/style
|
|
23
|
+
require('antd/lib/modal/style');
|
|
24
24
|
|
|
25
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
26
|
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
.vtx-ui-searchmap-searchmodal {
|
|
2
|
-
z-index: 1001;
|
|
3
|
-
}
|
|
4
|
-
.vtx-ui-searchmap-searchmodal .ant-modal {
|
|
5
|
-
width: calc(100% - 200px) !important;
|
|
6
|
-
min-width: 800px;
|
|
7
|
-
height: 70vh;
|
|
8
|
-
}
|
|
9
|
-
.vtx-ui-searchmap-searchmodal .ant-modal .ant-modal-title {
|
|
10
|
-
color: #108EE9;
|
|
11
|
-
}
|
|
12
|
-
.vtx-ui-searchmap-searchmodal .ant-modal .ant-modal-content {
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 100%;
|
|
15
|
-
}
|
|
16
|
-
.vtx-ui-searchmap-searchmodal .ant-modal .ant-modal-content .ant-modal-body {
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: calc(100% - 108px) !important;
|
|
19
|
-
padding: 0px;
|
|
20
|
-
background-color: white;
|
|
21
|
-
}
|
|
22
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap {
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
padding-top: 48px;
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
position: relative;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
}
|
|
30
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-top,
|
|
31
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-bottom {
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 48px;
|
|
34
|
-
position: absolute;
|
|
35
|
-
left: 0px;
|
|
36
|
-
padding: 10px 15px;
|
|
37
|
-
}
|
|
38
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-top button,
|
|
39
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-bottom button {
|
|
40
|
-
margin-left: 10px;
|
|
41
|
-
}
|
|
42
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-top {
|
|
43
|
-
top: 0px;
|
|
44
|
-
border-bottom: 1px solid #e1e1e1;
|
|
45
|
-
}
|
|
46
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-top .vtx-ui-searchmap-othermodal {
|
|
47
|
-
position: absolute;
|
|
48
|
-
right: 25px;
|
|
49
|
-
line-height: 28px;
|
|
50
|
-
display: inline-block;
|
|
51
|
-
}
|
|
52
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-bottom {
|
|
53
|
-
bottom: 0px;
|
|
54
|
-
border-top: 1px solid #e1e1e1;
|
|
55
|
-
text-align: right;
|
|
56
|
-
}
|
|
57
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content {
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 100%;
|
|
60
|
-
position: relative;
|
|
61
|
-
padding-left: 25px;
|
|
62
|
-
}
|
|
63
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-show {
|
|
64
|
-
display: inline-block;
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: 100%;
|
|
67
|
-
}
|
|
68
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-hidden {
|
|
69
|
-
display: none;
|
|
70
|
-
}
|
|
71
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-w_l {
|
|
72
|
-
width: 300px !important;
|
|
73
|
-
}
|
|
74
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_left {
|
|
75
|
-
width: 25px;
|
|
76
|
-
height: 100%;
|
|
77
|
-
display: inline-block;
|
|
78
|
-
-webkit-transition-duration: 0.3s;
|
|
79
|
-
-o-transition-duration: 0.3s;
|
|
80
|
-
transition-duration: 0.3s;
|
|
81
|
-
transition-property: width;
|
|
82
|
-
vertical-align: top;
|
|
83
|
-
border-right: 1px solid #e1e1e1;
|
|
84
|
-
position: absolute;
|
|
85
|
-
top: 0px;
|
|
86
|
-
left: 0px;
|
|
87
|
-
z-index: 10;
|
|
88
|
-
background-color: #FFF;
|
|
89
|
-
}
|
|
90
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_left .vtx-ui-searchmap-listtitle {
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 30px;
|
|
93
|
-
line-height: 30px;
|
|
94
|
-
border-bottom: 1px solid #e1e1e1;
|
|
95
|
-
}
|
|
96
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_left .vtx-ui-searchmap-listtitle .vtx-ui-searchmap-title {
|
|
97
|
-
width: calc(100% - 30px);
|
|
98
|
-
display: inline-block;
|
|
99
|
-
padding-left: 15px;
|
|
100
|
-
font-size: 15px;
|
|
101
|
-
}
|
|
102
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_left .vtx-ui-searchmap-listtitle .vtx-ui-searchmap-btn {
|
|
103
|
-
display: inline-block;
|
|
104
|
-
width: 30px;
|
|
105
|
-
text-align: center;
|
|
106
|
-
color: #0c88e8;
|
|
107
|
-
height: 30px;
|
|
108
|
-
line-height: 30px;
|
|
109
|
-
cursor: pointer;
|
|
110
|
-
}
|
|
111
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_left .vtx-ui-searchmap-lists {
|
|
112
|
-
width: 100%;
|
|
113
|
-
line-height: 35px;
|
|
114
|
-
border-bottom: 1px solid #e1e1e1;
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
overflow: hidden;
|
|
117
|
-
text-overflow: ellipsis;
|
|
118
|
-
white-space: nowrap;
|
|
119
|
-
padding: 0px 15px;
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
color: #999;
|
|
122
|
-
}
|
|
123
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_left .vtx-ui-searchmap-lists:hover {
|
|
124
|
-
background-color: #ECF6FD;
|
|
125
|
-
color: #108EE9;
|
|
126
|
-
}
|
|
127
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_left .vtx-ui-searchmap-lists.vtx-ui-searchmap-select {
|
|
128
|
-
background-color: #ECF6FD;
|
|
129
|
-
color: #108EE9;
|
|
130
|
-
}
|
|
131
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_left .vtx-ui-searchmap-scrollauto {
|
|
132
|
-
height: calc(100% - 30px);
|
|
133
|
-
overflow-y: auto;
|
|
134
|
-
}
|
|
135
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-content_right {
|
|
136
|
-
width: 100%;
|
|
137
|
-
height: 100%;
|
|
138
|
-
display: inline-block;
|
|
139
|
-
-webkit-transition-duration: 0.3s;
|
|
140
|
-
-o-transition-duration: 0.3s;
|
|
141
|
-
transition-duration: 0.3s;
|
|
142
|
-
transition-property: width;
|
|
143
|
-
}
|
|
144
|
-
.vtx-ui-searchmap-searchmodal .vtx-ui-searchmap-searchmap .vtx-ui-searchmap-content .vtx-ui-searchmap-btn {
|
|
145
|
-
text-align: center;
|
|
146
|
-
color: #0c88e8;
|
|
147
|
-
height: 30px;
|
|
148
|
-
line-height: 30px;
|
|
149
|
-
cursor: pointer;
|
|
150
|
-
}
|
|
151
|
-
.vtx-ui-searchmap-showlabel {
|
|
152
|
-
margin-left: 0;
|
|
153
|
-
width: 100px;
|
|
154
|
-
line-height: 25px;
|
|
155
|
-
text-align: center;
|
|
156
|
-
position: relative;
|
|
157
|
-
left: -38px;
|
|
158
|
-
background-color: #222020;
|
|
159
|
-
opacity: 0.6;
|
|
160
|
-
border-radius: 5px;
|
|
161
|
-
color: #FFF;
|
|
162
|
-
padding: 2px 8px;
|
|
163
|
-
text-overflow: ellipsis;
|
|
164
|
-
white-space: nowrap;
|
|
165
|
-
word-break: normal;
|
|
166
|
-
overflow: hidden;
|
|
167
|
-
}
|
|
168
|
-
.vtx-ui-searchmap-hiddenlabel {
|
|
169
|
-
display: none;
|
|
170
|
-
}
|
|
@@ -12,31 +12,31 @@ var _react = require('react');
|
|
|
12
12
|
|
|
13
13
|
var _react2 = _interopRequireDefault(_react);
|
|
14
14
|
|
|
15
|
-
require('./VtxSearchMap.
|
|
15
|
+
require('./VtxSearchMap.less');
|
|
16
16
|
|
|
17
17
|
var _button = require('antd/lib/button');
|
|
18
18
|
|
|
19
19
|
var _button2 = _interopRequireDefault(_button);
|
|
20
20
|
|
|
21
|
-
require('antd/lib/button/style
|
|
21
|
+
require('antd/lib/button/style');
|
|
22
22
|
|
|
23
23
|
var _input = require('antd/lib/input');
|
|
24
24
|
|
|
25
25
|
var _input2 = _interopRequireDefault(_input);
|
|
26
26
|
|
|
27
|
-
require('antd/lib/input/style
|
|
27
|
+
require('antd/lib/input/style');
|
|
28
28
|
|
|
29
29
|
var _message = require('antd/lib/message');
|
|
30
30
|
|
|
31
31
|
var _message2 = _interopRequireDefault(_message);
|
|
32
32
|
|
|
33
|
-
require('antd/lib/message/style
|
|
33
|
+
require('antd/lib/message/style');
|
|
34
34
|
|
|
35
35
|
var _checkbox = require('antd/lib/checkbox');
|
|
36
36
|
|
|
37
37
|
var _checkbox2 = _interopRequireDefault(_checkbox);
|
|
38
38
|
|
|
39
|
-
require('antd/lib/checkbox/style
|
|
39
|
+
require('antd/lib/checkbox/style');
|
|
40
40
|
|
|
41
41
|
var _VtxModal = require('../VtxModal');
|
|
42
42
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
+
|
|
1
3
|
.vtx-ui-searchmap-searchmodal{
|
|
2
4
|
z-index: 1001;
|
|
3
5
|
.ant-modal{
|
|
@@ -5,7 +7,7 @@
|
|
|
5
7
|
min-width: 800px;
|
|
6
8
|
height: 70vh;
|
|
7
9
|
.ant-modal-title{
|
|
8
|
-
color:
|
|
10
|
+
color: @primary-color;
|
|
9
11
|
}
|
|
10
12
|
.ant-modal-content{
|
|
11
13
|
width: 100%;
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
width: 100%;
|
|
15
17
|
height: e('calc(100% - 108px)') !important;
|
|
16
18
|
padding: 0px;
|
|
17
|
-
background-color:
|
|
19
|
+
background-color: @body-background;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
}
|
|
39
41
|
.vtx-ui-searchmap-top{
|
|
40
42
|
top: 0px;
|
|
41
|
-
border-bottom: 1px solid
|
|
43
|
+
border-bottom: 1px solid @border-color-base;
|
|
42
44
|
.vtx-ui-searchmap-othermodal{
|
|
43
45
|
position: absolute;
|
|
44
46
|
right: 25px;
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
}
|
|
49
51
|
.vtx-ui-searchmap-bottom{
|
|
50
52
|
bottom: 0px;
|
|
51
|
-
border-top: 1px solid
|
|
53
|
+
border-top: 1px solid @border-color-base;
|
|
52
54
|
text-align: right;
|
|
53
55
|
}
|
|
54
56
|
.vtx-ui-searchmap-content{
|
|
@@ -76,17 +78,17 @@
|
|
|
76
78
|
transition-duration: 0.3s;
|
|
77
79
|
transition-property: width;
|
|
78
80
|
vertical-align: top;
|
|
79
|
-
border-right: 1px solid
|
|
81
|
+
border-right: 1px solid @border-color-base;
|
|
80
82
|
position: absolute;
|
|
81
83
|
top: 0px;
|
|
82
84
|
left: 0px;
|
|
83
85
|
z-index: 10;
|
|
84
|
-
background-color:
|
|
86
|
+
background-color: @body-background;
|
|
85
87
|
.vtx-ui-searchmap-listtitle{
|
|
86
88
|
width: 100%;
|
|
87
89
|
height: 30px;
|
|
88
90
|
line-height: 30px;
|
|
89
|
-
border-bottom: 1px solid
|
|
91
|
+
border-bottom: 1px solid @border-color-base;;
|
|
90
92
|
.vtx-ui-searchmap-title{
|
|
91
93
|
width: e('calc(100% - 30px)');
|
|
92
94
|
display: inline-block;
|
|
@@ -97,7 +99,7 @@
|
|
|
97
99
|
display: inline-block;
|
|
98
100
|
width: 30px;
|
|
99
101
|
text-align: center;
|
|
100
|
-
color:
|
|
102
|
+
color: @primary-color;
|
|
101
103
|
height: 30px;
|
|
102
104
|
line-height: 30px;
|
|
103
105
|
cursor: pointer;
|
|
@@ -106,7 +108,7 @@
|
|
|
106
108
|
.vtx-ui-searchmap-lists{
|
|
107
109
|
width: 100%;
|
|
108
110
|
line-height: 35px;
|
|
109
|
-
border-bottom: 1px solid
|
|
111
|
+
border-bottom: 1px solid @border-color-base;;
|
|
110
112
|
font-size: 12px;
|
|
111
113
|
overflow: hidden;
|
|
112
114
|
text-overflow: ellipsis;
|
|
@@ -116,12 +118,12 @@
|
|
|
116
118
|
color: #999;
|
|
117
119
|
&:hover{
|
|
118
120
|
background-color: #ECF6FD;
|
|
119
|
-
color:
|
|
121
|
+
color: @primary-color;
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
.vtx-ui-searchmap-lists.vtx-ui-searchmap-select{
|
|
123
125
|
background-color: #ECF6FD;
|
|
124
|
-
color:
|
|
126
|
+
color: @primary-color;
|
|
125
127
|
}
|
|
126
128
|
.vtx-ui-searchmap-scrollauto{
|
|
127
129
|
height: e('calc(100% - 30px)');
|
|
@@ -139,7 +141,7 @@
|
|
|
139
141
|
}
|
|
140
142
|
.vtx-ui-searchmap-btn{
|
|
141
143
|
text-align: center;
|
|
142
|
-
color:
|
|
144
|
+
color: @primary-color;
|
|
143
145
|
height: 30px;
|
|
144
146
|
line-height: 30px;
|
|
145
147
|
cursor: pointer;
|
package/lib/default.js
CHANGED
|
@@ -19,7 +19,7 @@ if (antdMajorVersion === '3') {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
var VtxMapIcon = exports.VtxMapIcon = createFromIconfontCN({
|
|
22
|
-
scriptUrl: '//at.alicdn.com/t/
|
|
22
|
+
scriptUrl: '//at.alicdn.com/t/font_2865072_vy1sa1whz3l.js'
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
var globalCfg = window.VtxPublicServiceAddress || {};
|