@vtx/map 1.1.6 → 1.1.9
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/AMap/AMap.js +3287 -2990
- package/lib/VtxMap/AMap/AMap.js.map +1 -0
- package/lib/VtxMap/BMap/Map.js +3517 -3146
- package/lib/VtxMap/BMap/Map.js.map +1 -0
- package/lib/VtxMap/GMap/Map.js +4572 -4021
- package/lib/VtxMap/GMap/Map.js.map +1 -0
- package/lib/VtxMap/Map.js +77 -63
- package/lib/VtxMap/Map.js.map +1 -0
- package/lib/VtxMap/MapToolFunction.js +422 -370
- package/lib/VtxMap/MapToolFunction.js.map +1 -0
- package/lib/VtxMap/OMap/Map.css +2 -2
- package/lib/VtxMap/OMap/Map.js +4345 -3782
- package/lib/VtxMap/OMap/Map.js.map +1 -0
- package/lib/VtxMap/OlMap/Map.css +4 -1
- package/lib/VtxMap/OlMap/Map.js +3921 -3181
- package/lib/VtxMap/OlMap/Map.js.map +1 -0
- package/lib/VtxMap/TMap/TMap.css +0 -1
- package/lib/VtxMap/TMap/TMap.js +3475 -3139
- package/lib/VtxMap/TMap/TMap.js.map +1 -0
- package/lib/VtxMap/index.js +37 -24
- package/lib/VtxMap/index.js.map +1 -0
- package/lib/VtxMap/mapPlayer.js +353 -308
- package/lib/VtxMap/mapPlayer.js.map +1 -0
- package/lib/VtxMap/optimizingPointMap.js +245 -205
- package/lib/VtxMap/optimizingPointMap.js.map +1 -0
- package/lib/VtxMap/style/css.js +16 -0
- package/lib/VtxMap/style/css.js.map +1 -0
- package/lib/VtxMap/style/index.js +16 -0
- package/lib/VtxMap/style/index.js.map +1 -0
- package/lib/VtxMap/zoomMap.js +120 -101
- package/lib/VtxMap/zoomMap.js.map +1 -0
- package/lib/VtxModal/VtxModal.css +62 -0
- package/lib/VtxModal/VtxModal.js +223 -213
- package/lib/VtxModal/VtxModal.js.map +1 -0
- package/lib/VtxModal/VtxModal.less +2 -2
- package/lib/VtxModal/VtxModalAntd3.css +62 -0
- package/lib/VtxModal/VtxModalAntd3.less +67 -0
- package/lib/VtxModal/draggableModal.js +138 -119
- package/lib/VtxModal/draggableModal.js.map +1 -0
- package/lib/VtxModal/index.js +21 -14
- package/lib/VtxModal/index.js.map +1 -0
- package/lib/VtxModal/style/css.js +21 -0
- package/lib/VtxModal/style/css.js.map +1 -0
- package/lib/VtxModal/style/index.js +21 -0
- package/lib/VtxModal/style/index.js.map +1 -0
- package/lib/VtxSearchMap/VtxSearchMap.css +171 -0
- package/lib/VtxSearchMap/VtxSearchMap.js +864 -819
- package/lib/VtxSearchMap/VtxSearchMap.js.map +1 -0
- package/lib/VtxSearchMap/VtxSearchMapAntd3.css +0 -0
- package/lib/VtxSearchMap/VtxSearchMapAntd3.less +1 -0
- package/lib/VtxSearchMap/index.js +9 -9
- package/lib/VtxSearchMap/index.js.map +1 -0
- package/lib/VtxSearchMap/mapping.js +15 -12
- package/lib/VtxSearchMap/mapping.js.map +1 -0
- package/lib/VtxSearchMap/style/css.js +47 -0
- package/lib/VtxSearchMap/style/css.js.map +1 -0
- package/lib/VtxSearchMap/style/index.js +47 -0
- package/lib/VtxSearchMap/style/index.js.map +1 -0
- package/lib/default.js +32 -27
- package/lib/default.js.map +1 -0
- package/lib/index.js +9 -10
- package/lib/index.js.map +1 -0
- package/package.json +25 -4
package/lib/VtxMap/zoomMap.js
CHANGED
|
@@ -1,124 +1,143 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
4
|
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
6
|
+
value: true
|
|
5
7
|
});
|
|
8
|
+
exports["default"] = void 0;
|
|
6
9
|
|
|
7
|
-
var
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
11
|
|
|
9
|
-
var
|
|
12
|
+
var _Map = _interopRequireDefault(require("./Map"));
|
|
10
13
|
|
|
11
|
-
var
|
|
14
|
+
var _immutable = _interopRequireDefault(require("immutable"));
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
17
|
|
|
15
|
-
var
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
19
|
|
|
17
|
-
var
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
25
|
|
|
23
|
-
function
|
|
26
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
24
27
|
|
|
25
|
-
function
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
29
|
|
|
27
|
-
function
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
28
31
|
|
|
29
|
-
function
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
33
|
|
|
31
|
-
var
|
|
32
|
-
_inherits(zoomMap, _React$Component);
|
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
_classCallCheck(this, zoomMap);
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
_this.state = {
|
|
41
|
-
filterPoints: []
|
|
42
|
-
};
|
|
43
|
-
return _this;
|
|
44
|
-
}
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
41
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
+
|
|
44
|
+
var zoomMap = /*#__PURE__*/function (_React$Component) {
|
|
45
|
+
_inherits(zoomMap, _React$Component);
|
|
46
|
+
|
|
47
|
+
var _super = _createSuper(zoomMap);
|
|
48
|
+
|
|
49
|
+
function zoomMap(props) {
|
|
50
|
+
var _this;
|
|
51
|
+
|
|
52
|
+
_classCallCheck(this, zoomMap);
|
|
53
|
+
|
|
54
|
+
_this = _super.call(this, props);
|
|
55
|
+
_this.map = null;
|
|
56
|
+
_this.state = {
|
|
57
|
+
filterPoints: []
|
|
58
|
+
};
|
|
59
|
+
return _this;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
_createClass(zoomMap, [{
|
|
63
|
+
key: "resetPoints",
|
|
64
|
+
value: function resetPoints() {
|
|
65
|
+
var mapPoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
66
|
+
var zoomLv = arguments.length > 1 ? arguments[1] : undefined;
|
|
67
|
+
// console.log('当前zoom等级',this.state.zoomLv);
|
|
68
|
+
console.log(this.map.getMapExtent());
|
|
69
|
+
zoomLv = zoomLv || this.map.getZoomLevel();
|
|
70
|
+
|
|
71
|
+
if (zoomLv) {
|
|
72
|
+
this.setState({
|
|
73
|
+
filterPoints: mapPoints.filter(function (item) {
|
|
74
|
+
return typeof item.zoomLevel == 'number' ? item.zoomLevel <= zoomLv : true;
|
|
75
|
+
})
|
|
76
|
+
}, function () {// console.log(`zoom等级(${this.state.zoomLv})过滤后还有${this.state.filterPoints.length}个点`);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
key: "componentDidMount",
|
|
82
|
+
value: function componentDidMount() {
|
|
83
|
+
// console.log(this.map.getMapExtent())
|
|
84
|
+
// 地图加载完成取得当前zoom值,初始化内部点数据
|
|
85
|
+
this.resetPoints(this.props.mapPoints);
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
key: "componentWillReceiveProps",
|
|
89
|
+
value: function componentWillReceiveProps(nextProps) {
|
|
90
|
+
if (!this.deepEqual(this.props.mapPoints, nextProps.mapPoints)) {
|
|
91
|
+
// 外部点数据改变,更新内部点数据
|
|
92
|
+
this.resetPoints(nextProps.mapPoints);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "deepEqual",
|
|
97
|
+
value: function deepEqual(a, b) {
|
|
98
|
+
return _immutable["default"].is(_immutable["default"].fromJS(a), _immutable["default"].fromJS(b));
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
key: "zoomEnd",
|
|
102
|
+
value: function zoomEnd(obj) {
|
|
103
|
+
// console.log(obj)
|
|
104
|
+
//zoom操作后,更新内部点数据
|
|
105
|
+
this.resetPoints(this.props.mapPoints);
|
|
106
|
+
|
|
107
|
+
if (typeof this.props.zoomEnd === "function") {
|
|
108
|
+
this.props.zoomEnd(obj);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
key: "render",
|
|
113
|
+
value: function render() {
|
|
114
|
+
var _this2 = this;
|
|
115
|
+
|
|
116
|
+
var newProps = _objectSpread(_objectSpread({}, this.props), {}, {
|
|
117
|
+
zoomEnd: this.zoomEnd.bind(this),
|
|
118
|
+
mapPoints: this.state.filterPoints,
|
|
119
|
+
ref: function ref(p) {
|
|
120
|
+
if (p) {
|
|
121
|
+
_this2.map = p;
|
|
122
|
+
}
|
|
117
123
|
}
|
|
118
|
-
|
|
124
|
+
}); // 屏蔽地图默认的setFitView的调整zoom功能,只会重新设置center
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
if (newProps.mapVisiblePoints) {
|
|
128
|
+
newProps.mapVisiblePoints = _objectSpread(_objectSpread({}, newProps.mapVisiblePoints), {}, {
|
|
129
|
+
type: 'center'
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return /*#__PURE__*/_react["default"].createElement(_Map["default"], newProps);
|
|
134
|
+
}
|
|
135
|
+
}]);
|
|
119
136
|
|
|
120
|
-
|
|
121
|
-
}(
|
|
137
|
+
return zoomMap;
|
|
138
|
+
}(_react["default"].Component);
|
|
122
139
|
|
|
123
|
-
|
|
124
|
-
|
|
140
|
+
var _default = zoomMap;
|
|
141
|
+
exports["default"] = _default;
|
|
142
|
+
module.exports = exports["default"];
|
|
143
|
+
//# sourceMappingURL=zoomMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zoomMap.js","names":["zoomMap","props","map","state","filterPoints","mapPoints","zoomLv","console","log","getMapExtent","getZoomLevel","setState","filter","item","zoomLevel","resetPoints","nextProps","deepEqual","a","b","Immutable","is","fromJS","obj","zoomEnd","newProps","bind","ref","p","mapVisiblePoints","type","React","Component"],"sources":["VtxMap/zoomMap.js"],"sourcesContent":["import React from 'react';\r\nimport Map from './Map';\r\nimport Immutable from 'immutable';\r\n\r\nclass zoomMap extends React.Component{\r\n constructor(props){\r\n super(props);\r\n this.map = null;\r\n this.state= {\r\n filterPoints:[],\r\n }\r\n }\r\n \r\n resetPoints(mapPoints=[],zoomLv){\r\n // console.log('当前zoom等级',this.state.zoomLv);\r\n console.log(this.map.getMapExtent())\r\n zoomLv = zoomLv || this.map.getZoomLevel();\r\n if(zoomLv){\r\n this.setState({\r\n filterPoints: mapPoints.filter(item=>typeof(item.zoomLevel)=='number'?item.zoomLevel<=zoomLv:true)\r\n },()=>{\r\n // console.log(`zoom等级(${this.state.zoomLv})过滤后还有${this.state.filterPoints.length}个点`);\r\n });\r\n }\r\n }\r\n componentDidMount(){\r\n // console.log(this.map.getMapExtent()) \r\n // 地图加载完成取得当前zoom值,初始化内部点数据\r\n this.resetPoints(this.props.mapPoints);\r\n }\r\n componentWillReceiveProps(nextProps){\r\n if(!this.deepEqual(this.props.mapPoints, nextProps.mapPoints)){\r\n // 外部点数据改变,更新内部点数据\r\n this.resetPoints(nextProps.mapPoints);\r\n }\r\n }\r\n deepEqual(a,b){\r\n return Immutable.is(Immutable.fromJS(a),Immutable.fromJS(b));\r\n }\r\n zoomEnd(obj){\r\n // console.log(obj)\r\n //zoom操作后,更新内部点数据\r\n this.resetPoints(this.props.mapPoints);\r\n \r\n if(typeof(this.props.zoomEnd) ===\"function\"){\r\n this.props.zoomEnd(obj);\r\n }\r\n }\r\n render(){ \r\n const newProps = {\r\n ...this.props,\r\n zoomEnd:this.zoomEnd.bind(this),\r\n mapPoints:this.state.filterPoints,\r\n ref:(p)=>{\r\n if(p){\r\n this.map = p;\r\n }\r\n }\r\n }\r\n // 屏蔽地图默认的setFitView的调整zoom功能,只会重新设置center\r\n if(newProps.mapVisiblePoints){\r\n newProps.mapVisiblePoints = {\r\n ...newProps.mapVisiblePoints,\r\n type:'center'\r\n }\r\n }\r\n\r\n return (<Map {...newProps} />)\r\n }\r\n}\r\n\r\nexport default zoomMap;"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEMA,O;;;;;EACF,iBAAYC,KAAZ,EAAkB;IAAA;;IAAA;;IACd,0BAAMA,KAAN;IACA,MAAKC,GAAL,GAAW,IAAX;IACA,MAAKC,KAAL,GAAY;MACRC,YAAY,EAAC;IADL,CAAZ;IAHc;EAMjB;;;;WAED,uBAAgC;MAAA,IAApBC,SAAoB,uEAAV,EAAU;MAAA,IAAPC,MAAO;MAC5B;MACAC,OAAO,CAACC,GAAR,CAAY,KAAKN,GAAL,CAASO,YAAT,EAAZ;MACAH,MAAM,GAAGA,MAAM,IAAI,KAAKJ,GAAL,CAASQ,YAAT,EAAnB;;MACA,IAAGJ,MAAH,EAAU;QACN,KAAKK,QAAL,CAAc;UACVP,YAAY,EAAEC,SAAS,CAACO,MAAV,CAAiB,UAAAC,IAAI;YAAA,OAAE,OAAOA,IAAI,CAACC,SAAZ,IAAwB,QAAxB,GAAiCD,IAAI,CAACC,SAAL,IAAgBR,MAAjD,GAAwD,IAA1D;UAAA,CAArB;QADJ,CAAd,EAEE,YAAI,CACF;QACH,CAJD;MAKH;IACJ;;;WACD,6BAAmB;MACf;MACA;MACA,KAAKS,WAAL,CAAiB,KAAKd,KAAL,CAAWI,SAA5B;IACH;;;WACD,mCAA0BW,SAA1B,EAAoC;MAChC,IAAG,CAAC,KAAKC,SAAL,CAAe,KAAKhB,KAAL,CAAWI,SAA1B,EAAqCW,SAAS,CAACX,SAA/C,CAAJ,EAA8D;QAC1D;QACA,KAAKU,WAAL,CAAiBC,SAAS,CAACX,SAA3B;MACH;IACJ;;;WACD,mBAAUa,CAAV,EAAYC,CAAZ,EAAc;MACV,OAAOC,qBAAA,CAAUC,EAAV,CAAaD,qBAAA,CAAUE,MAAV,CAAiBJ,CAAjB,CAAb,EAAiCE,qBAAA,CAAUE,MAAV,CAAiBH,CAAjB,CAAjC,CAAP;IACH;;;WACD,iBAAQI,GAAR,EAAY;MACR;MACA;MACA,KAAKR,WAAL,CAAiB,KAAKd,KAAL,CAAWI,SAA5B;;MAEA,IAAG,OAAO,KAAKJ,KAAL,CAAWuB,OAAlB,KAA8B,UAAjC,EAA4C;QACxC,KAAKvB,KAAL,CAAWuB,OAAX,CAAmBD,GAAnB;MACH;IACJ;;;WACD,kBAAQ;MAAA;;MACJ,IAAME,QAAQ,mCACP,KAAKxB,KADE;QAEVuB,OAAO,EAAC,KAAKA,OAAL,CAAaE,IAAb,CAAkB,IAAlB,CAFE;QAGVrB,SAAS,EAAC,KAAKF,KAAL,CAAWC,YAHX;QAIVuB,GAAG,EAAC,aAACC,CAAD,EAAK;UACL,IAAGA,CAAH,EAAK;YACD,MAAI,CAAC1B,GAAL,GAAW0B,CAAX;UACH;QACJ;MARS,EAAd,CADI,CAWJ;;;MACA,IAAGH,QAAQ,CAACI,gBAAZ,EAA6B;QACzBJ,QAAQ,CAACI,gBAAT,mCACOJ,QAAQ,CAACI,gBADhB;UAEIC,IAAI,EAAC;QAFT;MAIH;;MAED,oBAAQ,gCAAC,eAAD,EAASL,QAAT,CAAR;IACH;;;;EAhEiBM,iBAAA,CAAMC,S;;eAmEbhC,O"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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: #f0f2f5;
|
|
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: #1890ff;
|
|
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.85);
|
|
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: rgba(0, 0, 0, 0.45);
|
|
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
|
+
}
|