@styzy/vue-amap 1.0.0 → 1.1.0

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.
@@ -1,108 +1,71 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = "fb15");
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
1
+ /******/ (function() { // webpackBootstrap
2
+ /******/ var __webpack_modules__ = ({
3
+
4
+ /***/ 835:
5
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6
+
7
+ "use strict";
8
+ __webpack_require__.r(__webpack_exports__);
9
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
10
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
11
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
12
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
13
+ // Imports
14
+
15
+
16
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
17
+ // Module
18
+ ___CSS_LOADER_EXPORT___.push([module.id, ".v-amap-ctn[data-v-0a8871e0],.v-amap-ctn .v-amap[data-v-0a8871e0]{height:100%}", ""]);
19
+ // Exports
20
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
89
21
 
90
- /***/ "18f4":
91
- /***/ (function(module, exports, __webpack_require__) {
92
22
 
23
+ /***/ }),
24
+
25
+ /***/ 263:
26
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
27
+
28
+ "use strict";
29
+ __webpack_require__.r(__webpack_exports__);
30
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
31
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
32
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
33
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
93
34
  // Imports
94
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
95
- exports = ___CSS_LOADER_API_IMPORT___(false);
35
+
36
+
37
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
96
38
  // Module
97
- exports.push([module.i, ".amap-sug-result{display:none}", ""]);
39
+ ___CSS_LOADER_EXPORT___.push([module.id, ".v-amap-place-search-input input[data-v-57fd4556]{display:inline-block;box-sizing:border-box;padding:0 15px;width:100%;height:40px;outline:0;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;background-image:none;color:#606266;font-size:inherit;line-height:40px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);-webkit-appearance:none}", ""]);
98
40
  // Exports
99
- module.exports = exports;
41
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
100
42
 
101
43
 
102
44
  /***/ }),
103
45
 
104
- /***/ "24fb":
105
- /***/ (function(module, exports, __webpack_require__) {
46
+ /***/ 82:
47
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
48
+
49
+ "use strict";
50
+ __webpack_require__.r(__webpack_exports__);
51
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
52
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
53
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
54
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
55
+ // Imports
56
+
57
+
58
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
59
+ // Module
60
+ ___CSS_LOADER_EXPORT___.push([module.id, ".amap-sug-result{display:none}", ""]);
61
+ // Exports
62
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
63
+
64
+
65
+ /***/ }),
66
+
67
+ /***/ 645:
68
+ /***/ (function(module) {
106
69
 
107
70
  "use strict";
108
71
 
@@ -111,140 +74,159 @@ module.exports = exports;
111
74
  MIT License http://www.opensource.org/licenses/mit-license.php
112
75
  Author Tobias Koppers @sokra
113
76
  */
114
- // css base code, injected by the css-loader
115
- // eslint-disable-next-line func-names
116
- module.exports = function (useSourceMap) {
117
- var list = []; // return the list of modules as css string
77
+ module.exports = function (cssWithMappingToString) {
78
+ var list = [];
118
79
 
80
+ // return the list of modules as css string
119
81
  list.toString = function toString() {
120
82
  return this.map(function (item) {
121
- var content = cssWithMappingToString(item, useSourceMap);
122
-
83
+ var content = "";
84
+ var needLayer = typeof item[5] !== "undefined";
85
+ if (item[4]) {
86
+ content += "@supports (".concat(item[4], ") {");
87
+ }
123
88
  if (item[2]) {
124
- return "@media ".concat(item[2], " {").concat(content, "}");
89
+ content += "@media ".concat(item[2], " {");
90
+ }
91
+ if (needLayer) {
92
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
93
+ }
94
+ content += cssWithMappingToString(item);
95
+ if (needLayer) {
96
+ content += "}";
97
+ }
98
+ if (item[2]) {
99
+ content += "}";
100
+ }
101
+ if (item[4]) {
102
+ content += "}";
125
103
  }
126
-
127
104
  return content;
128
- }).join('');
129
- }; // import a list of modules into the list
130
- // eslint-disable-next-line func-names
131
-
105
+ }).join("");
106
+ };
132
107
 
133
- list.i = function (modules, mediaQuery, dedupe) {
134
- if (typeof modules === 'string') {
135
- // eslint-disable-next-line no-param-reassign
136
- modules = [[null, modules, '']];
108
+ // import a list of modules into the list
109
+ list.i = function i(modules, media, dedupe, supports, layer) {
110
+ if (typeof modules === "string") {
111
+ modules = [[null, modules, undefined]];
137
112
  }
138
-
139
113
  var alreadyImportedModules = {};
140
-
141
114
  if (dedupe) {
142
- for (var i = 0; i < this.length; i++) {
143
- // eslint-disable-next-line prefer-destructuring
144
- var id = this[i][0];
145
-
115
+ for (var k = 0; k < this.length; k++) {
116
+ var id = this[k][0];
146
117
  if (id != null) {
147
118
  alreadyImportedModules[id] = true;
148
119
  }
149
120
  }
150
121
  }
151
-
152
- for (var _i = 0; _i < modules.length; _i++) {
153
- var item = [].concat(modules[_i]);
154
-
122
+ for (var _k = 0; _k < modules.length; _k++) {
123
+ var item = [].concat(modules[_k]);
155
124
  if (dedupe && alreadyImportedModules[item[0]]) {
156
- // eslint-disable-next-line no-continue
157
125
  continue;
158
126
  }
159
-
160
- if (mediaQuery) {
127
+ if (typeof layer !== "undefined") {
128
+ if (typeof item[5] === "undefined") {
129
+ item[5] = layer;
130
+ } else {
131
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
132
+ item[5] = layer;
133
+ }
134
+ }
135
+ if (media) {
161
136
  if (!item[2]) {
162
- item[2] = mediaQuery;
137
+ item[2] = media;
163
138
  } else {
164
- item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
139
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
140
+ item[2] = media;
141
+ }
142
+ }
143
+ if (supports) {
144
+ if (!item[4]) {
145
+ item[4] = "".concat(supports);
146
+ } else {
147
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
148
+ item[4] = supports;
165
149
  }
166
150
  }
167
-
168
151
  list.push(item);
169
152
  }
170
153
  };
171
-
172
154
  return list;
173
155
  };
174
156
 
175
- function cssWithMappingToString(item, useSourceMap) {
176
- var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
157
+ /***/ }),
177
158
 
178
- var cssMapping = item[3];
159
+ /***/ 81:
160
+ /***/ (function(module) {
179
161
 
180
- if (!cssMapping) {
181
- return content;
182
- }
162
+ "use strict";
183
163
 
184
- if (useSourceMap && typeof btoa === 'function') {
185
- var sourceMapping = toComment(cssMapping);
186
- var sourceURLs = cssMapping.sources.map(function (source) {
187
- return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
188
- });
189
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
190
- }
191
164
 
192
- return [content].join('\n');
193
- } // Adapted from convert-source-map (MIT)
165
+ module.exports = function (i) {
166
+ return i[1];
167
+ };
168
+
169
+ /***/ }),
194
170
 
171
+ /***/ 414:
172
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
195
173
 
196
- function toComment(sourceMap) {
197
- // eslint-disable-next-line no-undef
198
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
199
- var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
200
- return "/*# ".concat(data, " */");
201
- }
174
+ // style-loader: Adds some css to the DOM by adding a <style> tag
175
+
176
+ // load the styles
177
+ var content = __webpack_require__(835);
178
+ if(content.__esModule) content = content.default;
179
+ if(typeof content === 'string') content = [[module.id, content, '']];
180
+ if(content.locals) module.exports = content.locals;
181
+ // add the styles to the DOM
182
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
183
+ var update = add("7ebf2e0a", content, true, {"sourceMap":false,"shadowMode":false});
202
184
 
203
185
  /***/ }),
204
186
 
205
- /***/ "2cc0":
206
- /***/ (function(module, exports, __webpack_require__) {
187
+ /***/ 445:
188
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
207
189
 
208
190
  // style-loader: Adds some css to the DOM by adding a <style> tag
209
191
 
210
192
  // load the styles
211
- var content = __webpack_require__("18f4");
193
+ var content = __webpack_require__(263);
212
194
  if(content.__esModule) content = content.default;
213
- if(typeof content === 'string') content = [[module.i, content, '']];
195
+ if(typeof content === 'string') content = [[module.id, content, '']];
214
196
  if(content.locals) module.exports = content.locals;
215
197
  // add the styles to the DOM
216
- var add = __webpack_require__("499e").default
217
- var update = add("37432b0a", content, true, {"sourceMap":false,"shadowMode":false});
198
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
199
+ var update = add("22170536", content, true, {"sourceMap":false,"shadowMode":false});
218
200
 
219
201
  /***/ }),
220
202
 
221
- /***/ "3a4c":
222
- /***/ (function(module, exports, __webpack_require__) {
203
+ /***/ 160:
204
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
223
205
 
224
206
  // style-loader: Adds some css to the DOM by adding a <style> tag
225
207
 
226
208
  // load the styles
227
- var content = __webpack_require__("50bd");
209
+ var content = __webpack_require__(82);
228
210
  if(content.__esModule) content = content.default;
229
- if(typeof content === 'string') content = [[module.i, content, '']];
211
+ if(typeof content === 'string') content = [[module.id, content, '']];
230
212
  if(content.locals) module.exports = content.locals;
231
213
  // add the styles to the DOM
232
- var add = __webpack_require__("499e").default
233
- var update = add("329bbec2", content, true, {"sourceMap":false,"shadowMode":false});
214
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
215
+ var update = add("68fe21ac", content, true, {"sourceMap":false,"shadowMode":false});
234
216
 
235
217
  /***/ }),
236
218
 
237
- /***/ "499e":
238
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
219
+ /***/ 402:
220
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
239
221
 
240
222
  "use strict";
241
- // ESM COMPAT FLAG
242
- __webpack_require__.r(__webpack_exports__);
243
223
 
244
224
  // EXPORTS
245
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ addStylesClient; });
225
+ __webpack_require__.d(__webpack_exports__, {
226
+ Z: function() { return /* binding */ addStylesClient; }
227
+ });
246
228
 
247
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
229
+ ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
248
230
  /**
249
231
  * Translates the list format produced by css-loader into something
250
232
  * easier to manipulate.
@@ -273,7 +255,7 @@ function listToStyles (parentId, list) {
273
255
  return styles
274
256
  }
275
257
 
276
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
258
+ ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
277
259
  /*
278
260
  MIT License http://www.opensource.org/licenses/mit-license.php
279
261
  Author Tobias Koppers @sokra
@@ -498,85 +480,95 @@ function applyToTag (styleElement, obj) {
498
480
  }
499
481
 
500
482
 
501
- /***/ }),
502
-
503
- /***/ "50bd":
504
- /***/ (function(module, exports, __webpack_require__) {
505
-
506
- // Imports
507
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
508
- exports = ___CSS_LOADER_API_IMPORT___(false);
509
- // Module
510
- exports.push([module.i, ".v-amap-ctn[data-v-37c06024],.v-amap-ctn .v-amap[data-v-37c06024]{height:100%}", ""]);
511
- // Exports
512
- module.exports = exports;
513
-
514
-
515
- /***/ }),
516
-
517
- /***/ "61d4":
518
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
519
-
520
- "use strict";
521
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMapPlaceSearchInput_vue_vue_type_style_index_0_id_57fd4556_prod_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c5a6");
522
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMapPlaceSearchInput_vue_vue_type_style_index_0_id_57fd4556_prod_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMapPlaceSearchInput_vue_vue_type_style_index_0_id_57fd4556_prod_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
523
- /* unused harmony reexport * */
524
-
525
-
526
- /***/ }),
527
-
528
- /***/ "b661":
529
- /***/ (function(module, exports, __webpack_require__) {
530
-
531
- // Imports
532
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
533
- exports = ___CSS_LOADER_API_IMPORT___(false);
534
- // Module
535
- exports.push([module.i, ".v-amap-place-search-input input[data-v-57fd4556]{display:inline-block;box-sizing:border-box;padding:0 15px;width:100%;height:40px;outline:0;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;background-image:none;color:#606266;font-size:inherit;line-height:40px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);-webkit-appearance:none}", ""]);
536
- // Exports
537
- module.exports = exports;
538
-
539
-
540
- /***/ }),
541
-
542
- /***/ "c5a3":
543
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
544
-
545
- "use strict";
546
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMap_vue_vue_type_style_index_0_id_37c06024_prod_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3a4c");
547
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMap_vue_vue_type_style_index_0_id_37c06024_prod_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMap_vue_vue_type_style_index_0_id_37c06024_prod_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
548
- /* unused harmony reexport * */
549
-
550
-
551
- /***/ }),
552
-
553
- /***/ "c5a6":
554
- /***/ (function(module, exports, __webpack_require__) {
555
-
556
- // style-loader: Adds some css to the DOM by adding a <style> tag
557
-
558
- // load the styles
559
- var content = __webpack_require__("b661");
560
- if(content.__esModule) content = content.default;
561
- if(typeof content === 'string') content = [[module.i, content, '']];
562
- if(content.locals) module.exports = content.locals;
563
- // add the styles to the DOM
564
- var add = __webpack_require__("499e").default
565
- var update = add("1e99f6c0", content, true, {"sourceMap":false,"shadowMode":false});
566
-
567
- /***/ }),
568
-
569
- /***/ "fb15":
570
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
483
+ /***/ })
571
484
 
485
+ /******/ });
486
+ /************************************************************************/
487
+ /******/ // The module cache
488
+ /******/ var __webpack_module_cache__ = {};
489
+ /******/
490
+ /******/ // The require function
491
+ /******/ function __webpack_require__(moduleId) {
492
+ /******/ // Check if module is in cache
493
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
494
+ /******/ if (cachedModule !== undefined) {
495
+ /******/ return cachedModule.exports;
496
+ /******/ }
497
+ /******/ // Create a new module (and put it into the cache)
498
+ /******/ var module = __webpack_module_cache__[moduleId] = {
499
+ /******/ id: moduleId,
500
+ /******/ // no module.loaded needed
501
+ /******/ exports: {}
502
+ /******/ };
503
+ /******/
504
+ /******/ // Execute the module function
505
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
506
+ /******/
507
+ /******/ // Return the exports of the module
508
+ /******/ return module.exports;
509
+ /******/ }
510
+ /******/
511
+ /************************************************************************/
512
+ /******/ /* webpack/runtime/compat get default export */
513
+ /******/ !function() {
514
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
515
+ /******/ __webpack_require__.n = function(module) {
516
+ /******/ var getter = module && module.__esModule ?
517
+ /******/ function() { return module['default']; } :
518
+ /******/ function() { return module; };
519
+ /******/ __webpack_require__.d(getter, { a: getter });
520
+ /******/ return getter;
521
+ /******/ };
522
+ /******/ }();
523
+ /******/
524
+ /******/ /* webpack/runtime/define property getters */
525
+ /******/ !function() {
526
+ /******/ // define getter functions for harmony exports
527
+ /******/ __webpack_require__.d = function(exports, definition) {
528
+ /******/ for(var key in definition) {
529
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
530
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
531
+ /******/ }
532
+ /******/ }
533
+ /******/ };
534
+ /******/ }();
535
+ /******/
536
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
537
+ /******/ !function() {
538
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
539
+ /******/ }();
540
+ /******/
541
+ /******/ /* webpack/runtime/make namespace object */
542
+ /******/ !function() {
543
+ /******/ // define __esModule on exports
544
+ /******/ __webpack_require__.r = function(exports) {
545
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
546
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
547
+ /******/ }
548
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
549
+ /******/ };
550
+ /******/ }();
551
+ /******/
552
+ /******/ /* webpack/runtime/publicPath */
553
+ /******/ !function() {
554
+ /******/ __webpack_require__.p = "";
555
+ /******/ }();
556
+ /******/
557
+ /************************************************************************/
558
+ var __webpack_exports__ = {};
559
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
560
+ !function() {
572
561
  "use strict";
573
- // ESM COMPAT FLAG
574
- __webpack_require__.r(__webpack_exports__);
575
562
 
576
563
  // EXPORTS
577
- __webpack_require__.d(__webpack_exports__, "AMapLoader", function() { return /* reexport */ loader; });
564
+ __webpack_require__.d(__webpack_exports__, {
565
+ "default": function() { return /* binding */ entry_lib; }
566
+ });
567
+
568
+ // UNUSED EXPORTS: AMapLoader
578
569
 
579
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
570
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
571
+ /* eslint-disable no-var */
580
572
  // This file is imported into lib/wc client bundles.
581
573
 
582
574
  if (typeof window !== 'undefined') {
@@ -592,7 +584,7 @@ if (typeof window !== 'undefined') {
592
584
  // Indicate to webpack that this file can be concatenated
593
585
  /* harmony default export */ var setPublicPath = (null);
594
586
 
595
- // CONCATENATED MODULE: ./src/CONSTANTS/index.js
587
+ ;// CONCATENATED MODULE: ./src/CONSTANTS/index.js
596
588
  const CONSTANTS = {
597
589
  SDK_URL: 'https://webapi.amap.com/maps',
598
590
  CALLBACK_NAME: 'aMapInitCallback'
@@ -600,10 +592,10 @@ const CONSTANTS = {
600
592
 
601
593
  /* harmony default export */ var src_CONSTANTS = (CONSTANTS);
602
594
 
603
- // CONCATENATED MODULE: ./src/loader/index.js
595
+ ;// CONCATENATED MODULE: ./src/loader/index.js
604
596
 
605
597
 
606
- class loader_Loader {
598
+ class Loader {
607
599
  get key() {
608
600
  return this._key
609
601
  }
@@ -709,17 +701,15 @@ class loader_Loader {
709
701
  }
710
702
  }
711
703
 
712
- /* harmony default export */ var loader = (new loader_Loader());
704
+ /* harmony default export */ var loader = (new Loader());
713
705
 
714
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"62109407-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Components/VAMap.vue?vue&type=template&id=37c06024&scoped=true&lang=pug&
706
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/pug-plain-loader/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMap.vue?vue&type=template&id=0a8871e0&scoped=true&lang=pug
715
707
  var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"v-amap-ctn"},[_c('div',{ref:"aMap",staticClass:"v-amap"}),(_vm.AMap && _vm.aMap)?[_vm._t("default",null,{"AMap":_vm.AMap,"aMap":_vm.aMap})]:_vm._e()],2)
716
708
  }
717
709
  var staticRenderFns = []
718
710
 
719
711
 
720
- // CONCATENATED MODULE: ./src/Components/VAMap.vue?vue&type=template&id=37c06024&scoped=true&lang=pug&
721
-
722
- // CONCATENATED MODULE: ./src/utils/listenerProxy.js
712
+ ;// CONCATENATED MODULE: ./src/utils/listenerProxy.js
723
713
  const listenerProxy = (aMapObject, vm) => {
724
714
  const listeners = vm.$listeners
725
715
 
@@ -736,14 +726,14 @@ const listenerProxy = (aMapObject, vm) => {
736
726
 
737
727
  /* harmony default export */ var utils_listenerProxy = (listenerProxy);
738
728
 
739
- // CONCATENATED MODULE: ./src/utils/typeOf.js
729
+ ;// CONCATENATED MODULE: ./src/utils/typeOf.js
740
730
  const typeOf = function (param) {
741
731
  return Object.prototype.toString.call(param).match(/\s+(\w+)/)[1]
742
732
  }
743
733
 
744
734
  /* harmony default export */ var utils_typeOf = (typeOf);
745
735
 
746
- // CONCATENATED MODULE: ./src/utils/watchProps.js
736
+ ;// CONCATENATED MODULE: ./src/utils/watchProps.js
747
737
 
748
738
 
749
739
  const watchProps = (aMapObject, vm, props) => {
@@ -778,13 +768,7 @@ const watchProps = (aMapObject, vm, props) => {
778
768
 
779
769
  /* harmony default export */ var utils_watchProps = (watchProps);
780
770
 
781
- // CONCATENATED MODULE: ./src/utils/index.js
782
-
783
-
784
-
785
-
786
-
787
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Components/VAMap.vue?vue&type=script&lang=js&
771
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMap.vue?vue&type=script&lang=js
788
772
 
789
773
 
790
774
 
@@ -806,8 +790,13 @@ const watchedProps = [
806
790
  'pitch'
807
791
  ]
808
792
 
809
- /* harmony default export */ var VAMapvue_type_script_lang_js_ = ({
793
+ /* harmony default export */ var VAMapvue_type_script_lang_js = ({
810
794
  name: 'VAMap',
795
+ provide() {
796
+ return {
797
+ getMap: this.getMap
798
+ }
799
+ },
811
800
  data() {
812
801
  return {
813
802
  AMap: null,
@@ -840,21 +829,25 @@ const watchedProps = [
840
829
  _destroyMap() {
841
830
  this.aMap && this.aMap.destroy()
842
831
  },
843
- addMarker(marker) {
844
- this.aMap && this.aMap.add(marker)
845
- },
846
- removeMarker(marker) {
847
- this.aMap && this.aMap.remove(marker)
832
+ getMap() {
833
+ return this.aMap
848
834
  }
835
+ // addMarker(marker) {
836
+ // this.aMap && this.aMap.add(marker)
837
+ // },
838
+ // removeMarker(marker) {
839
+ // this.aMap && this.aMap.remove(marker)
840
+ // }
849
841
  }
850
842
  });
851
843
 
852
- // CONCATENATED MODULE: ./src/Components/VAMap.vue?vue&type=script&lang=js&
853
- /* harmony default export */ var Components_VAMapvue_type_script_lang_js_ = (VAMapvue_type_script_lang_js_);
854
- // EXTERNAL MODULE: ./src/Components/VAMap.vue?vue&type=style&index=0&id=37c06024&prod&lang=stylus&scoped=true&
855
- var VAMapvue_type_style_index_0_id_37c06024_prod_lang_stylus_scoped_true_ = __webpack_require__("c5a3");
844
+ ;// CONCATENATED MODULE: ./src/Components/VAMap.vue?vue&type=script&lang=js
845
+ /* harmony default export */ var Components_VAMapvue_type_script_lang_js = (VAMapvue_type_script_lang_js);
846
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-34.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-34.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-34.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-34.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-34.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true
847
+ var VAMapvue_type_style_index_0_id_0a8871e0_prod_lang_stylus_scoped_true = __webpack_require__(414);
848
+ ;// CONCATENATED MODULE: ./src/Components/VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true
856
849
 
857
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
850
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
858
851
  /* globals __VUE_SSR_CONTEXT__ */
859
852
 
860
853
  // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
@@ -952,36 +945,34 @@ function normalizeComponent(
952
945
  }
953
946
  }
954
947
 
955
- // CONCATENATED MODULE: ./src/Components/VAMap.vue
956
-
948
+ ;// CONCATENATED MODULE: ./src/Components/VAMap.vue
957
949
 
958
950
 
959
951
 
952
+ ;
960
953
 
961
954
 
962
955
  /* normalize component */
963
956
 
964
957
  var component = normalizeComponent(
965
- Components_VAMapvue_type_script_lang_js_,
958
+ Components_VAMapvue_type_script_lang_js,
966
959
  render,
967
960
  staticRenderFns,
968
961
  false,
969
962
  null,
970
- "37c06024",
963
+ "0a8871e0",
971
964
  null
972
965
 
973
966
  )
974
967
 
975
968
  /* harmony default export */ var VAMap = (component.exports);
976
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"62109407-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Components/VAMapMarker.vue?vue&type=template&id=18484f00&scoped=true&lang=pug&
977
- var VAMapMarkervue_type_template_id_18484f00_scoped_true_lang_pug_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"v-amap-marker"},[_vm._t("default")],2)
969
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/pug-plain-loader/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapMarker.vue?vue&type=template&id=6931c341&scoped=true&lang=pug
970
+ var VAMapMarkervue_type_template_id_6931c341_scoped_true_lang_pug_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"v-amap-marker"},[_c('div',{ref:"content",staticClass:"v-amap-marker-content"},[_vm._t("default")],2)])
978
971
  }
979
- var VAMapMarkervue_type_template_id_18484f00_scoped_true_lang_pug_staticRenderFns = []
980
-
972
+ var VAMapMarkervue_type_template_id_6931c341_scoped_true_lang_pug_staticRenderFns = []
981
973
 
982
- // CONCATENATED MODULE: ./src/Components/VAMapMarker.vue?vue&type=template&id=18484f00&scoped=true&lang=pug&
983
974
 
984
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Components/VAMapMarker.vue?vue&type=script&lang=js&
975
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapMarker.vue?vue&type=script&lang=js
985
976
 
986
977
 
987
978
 
@@ -1016,16 +1007,23 @@ const VAMapMarkervue_type_script_lang_js_watchedProps = [
1016
1007
  'label'
1017
1008
  ]
1018
1009
 
1019
- /* harmony default export */ var VAMapMarkervue_type_script_lang_js_ = ({
1010
+ /* harmony default export */ var VAMapMarkervue_type_script_lang_js = ({
1020
1011
  name: 'VAMapMarker',
1012
+ inject: ['getMap'],
1021
1013
  data() {
1022
1014
  return {
1023
1015
  marker: null,
1024
1016
  isFixedMarkerSize: false
1025
1017
  }
1026
1018
  },
1027
- mounted() {
1028
- this._createMarker()
1019
+ computed: {
1020
+ hasSlot() {
1021
+ return !!this.$scopedSlots.default
1022
+ }
1023
+ },
1024
+ async mounted() {
1025
+ await this._createMarker()
1026
+ this._addMarker()
1029
1027
  },
1030
1028
  async updated() {
1031
1029
  if (!this.marker) return
@@ -1037,6 +1035,9 @@ const VAMapMarkervue_type_script_lang_js_watchedProps = [
1037
1035
 
1038
1036
  this._updateMarkerContent()
1039
1037
  },
1038
+ beforeDestroy() {
1039
+ this._resetMarkerContent()
1040
+ },
1040
1041
  destroyed() {
1041
1042
  this._removeMarker()
1042
1043
  },
@@ -1044,58 +1045,63 @@ const VAMapMarkervue_type_script_lang_js_watchedProps = [
1044
1045
  async _createMarker() {
1045
1046
  const AMap = await loader.load(),
1046
1047
  options = Object.assign({}, this.$attrs, {
1047
- content: this.$scopedSlots.default ? this.$el : null
1048
+ content: this._getMarkerContent()
1048
1049
  })
1049
1050
 
1050
1051
  this.marker = new AMap.Marker(options)
1051
1052
 
1052
1053
  utils_listenerProxy(this.marker, this)
1053
1054
  utils_watchProps(this.marker, this, VAMapMarkervue_type_script_lang_js_watchedProps)
1054
-
1055
- this._addMarker()
1055
+ },
1056
+ _getMarkerContent() {
1057
+ return this.hasSlot ? this.$refs.content : null
1056
1058
  },
1057
1059
  _updateMarkerContent() {
1058
- this.marker.setContent(this.$el)
1060
+ if (!this.hasSlot) return
1061
+
1062
+ this.marker.setContent(this._getMarkerContent())
1059
1063
  },
1060
- _addMarker() {
1061
- if (!this.$parent.addMarker) return
1064
+ _resetMarkerContent() {
1065
+ if (!this.hasSlot) return
1062
1066
 
1063
- this.$parent.addMarker(this.marker)
1067
+ this.$el.appendChild(this.$refs.content)
1068
+ },
1069
+ _addMarker() {
1070
+ this.getMap()?.add(this.marker)
1064
1071
 
1065
1072
  this.$emit('init', this.marker)
1066
1073
  },
1067
1074
  _removeMarker() {
1068
1075
  if (!this.marker) return
1069
- if (!this.$parent.removeMarker) return
1070
1076
 
1071
- this.$parent.removeMarker(this.marker)
1077
+ this.getMap()?.remove(this.marker)
1072
1078
  }
1073
1079
  }
1074
1080
  });
1075
1081
 
1076
- // CONCATENATED MODULE: ./src/Components/VAMapMarker.vue?vue&type=script&lang=js&
1077
- /* harmony default export */ var Components_VAMapMarkervue_type_script_lang_js_ = (VAMapMarkervue_type_script_lang_js_);
1078
- // CONCATENATED MODULE: ./src/Components/VAMapMarker.vue
1082
+ ;// CONCATENATED MODULE: ./src/Components/VAMapMarker.vue?vue&type=script&lang=js
1083
+ /* harmony default export */ var Components_VAMapMarkervue_type_script_lang_js = (VAMapMarkervue_type_script_lang_js);
1084
+ ;// CONCATENATED MODULE: ./src/Components/VAMapMarker.vue
1079
1085
 
1080
1086
 
1081
1087
 
1082
1088
 
1083
1089
 
1084
1090
  /* normalize component */
1085
-
1091
+ ;
1086
1092
  var VAMapMarker_component = normalizeComponent(
1087
- Components_VAMapMarkervue_type_script_lang_js_,
1088
- VAMapMarkervue_type_template_id_18484f00_scoped_true_lang_pug_render,
1089
- VAMapMarkervue_type_template_id_18484f00_scoped_true_lang_pug_staticRenderFns,
1093
+ Components_VAMapMarkervue_type_script_lang_js,
1094
+ VAMapMarkervue_type_template_id_6931c341_scoped_true_lang_pug_render,
1095
+ VAMapMarkervue_type_template_id_6931c341_scoped_true_lang_pug_staticRenderFns,
1090
1096
  false,
1091
1097
  null,
1092
- "18484f00",
1098
+ "6931c341",
1093
1099
  null
1094
1100
 
1095
1101
  )
1096
1102
 
1097
1103
  /* harmony default export */ var VAMapMarker = (VAMapMarker_component.exports);
1098
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Components/VAMapMassMarks.vue?vue&type=script&lang=js&
1104
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapMassMarks.vue?vue&type=script&lang=js
1099
1105
 
1100
1106
 
1101
1107
 
@@ -1122,15 +1128,17 @@ const VAMapMassMarksvue_type_script_lang_js_watchedProps = [
1122
1128
  ]
1123
1129
  ]
1124
1130
 
1125
- /* harmony default export */ var VAMapMassMarksvue_type_script_lang_js_ = ({
1131
+ /* harmony default export */ var VAMapMassMarksvue_type_script_lang_js = ({
1126
1132
  name: 'VAMapMassMarks',
1133
+ inject: ['getMap'],
1127
1134
  data() {
1128
1135
  return {
1129
1136
  marker: null
1130
1137
  }
1131
1138
  },
1132
- created() {
1133
- this._createMarker()
1139
+ async created() {
1140
+ await this._createMarker()
1141
+ this._addMarker()
1134
1142
  },
1135
1143
  destroyed() {
1136
1144
  this._removeMarker()
@@ -1146,13 +1154,9 @@ const VAMapMassMarksvue_type_script_lang_js_watchedProps = [
1146
1154
 
1147
1155
  utils_listenerProxy(this.marker, this)
1148
1156
  utils_watchProps(this.marker, this, VAMapMassMarksvue_type_script_lang_js_watchedProps)
1149
-
1150
- this._addMarker()
1151
1157
  },
1152
1158
  _addMarker() {
1153
- if (!this.$parent.aMap) return
1154
-
1155
- this.marker.setMap(this.$parent.aMap)
1159
+ this.marker.setMap(this.getMap())
1156
1160
 
1157
1161
  this.$emit('init', this.marker)
1158
1162
  },
@@ -1168,18 +1172,18 @@ const VAMapMassMarksvue_type_script_lang_js_watchedProps = [
1168
1172
  }
1169
1173
  });
1170
1174
 
1171
- // CONCATENATED MODULE: ./src/Components/VAMapMassMarks.vue?vue&type=script&lang=js&
1172
- /* harmony default export */ var Components_VAMapMassMarksvue_type_script_lang_js_ = (VAMapMassMarksvue_type_script_lang_js_);
1173
- // CONCATENATED MODULE: ./src/Components/VAMapMassMarks.vue
1175
+ ;// CONCATENATED MODULE: ./src/Components/VAMapMassMarks.vue?vue&type=script&lang=js
1176
+ /* harmony default export */ var Components_VAMapMassMarksvue_type_script_lang_js = (VAMapMassMarksvue_type_script_lang_js);
1177
+ ;// CONCATENATED MODULE: ./src/Components/VAMapMassMarks.vue
1174
1178
  var VAMapMassMarks_render, VAMapMassMarks_staticRenderFns
1175
-
1179
+ ;
1176
1180
 
1177
1181
 
1178
1182
 
1179
1183
  /* normalize component */
1180
-
1184
+ ;
1181
1185
  var VAMapMassMarks_component = normalizeComponent(
1182
- Components_VAMapMassMarksvue_type_script_lang_js_,
1186
+ Components_VAMapMassMarksvue_type_script_lang_js,
1183
1187
  VAMapMassMarks_render,
1184
1188
  VAMapMassMarks_staticRenderFns,
1185
1189
  false,
@@ -1190,7 +1194,7 @@ var VAMapMassMarks_component = normalizeComponent(
1190
1194
  )
1191
1195
 
1192
1196
  /* harmony default export */ var VAMapMassMarks = (VAMapMassMarks_component.exports);
1193
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Components/VAMapPolygon.vue?vue&type=script&lang=js&
1197
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPolygon.vue?vue&type=script&lang=js
1194
1198
 
1195
1199
 
1196
1200
 
@@ -1272,15 +1276,17 @@ const VAMapPolygonvue_type_script_lang_js_watchedProps = [
1272
1276
  ]
1273
1277
  ]
1274
1278
 
1275
- /* harmony default export */ var VAMapPolygonvue_type_script_lang_js_ = ({
1279
+ /* harmony default export */ var VAMapPolygonvue_type_script_lang_js = ({
1276
1280
  name: 'VAMapPolygon',
1281
+ inject: ['getMap'],
1277
1282
  data() {
1278
1283
  return {
1279
1284
  marker: null
1280
1285
  }
1281
1286
  },
1282
- created() {
1283
- this._createMarker()
1287
+ async created() {
1288
+ await this._createMarker()
1289
+ this._addMarker()
1284
1290
  },
1285
1291
  destroyed() {
1286
1292
  this._removeMarker()
@@ -1296,21 +1302,16 @@ const VAMapPolygonvue_type_script_lang_js_watchedProps = [
1296
1302
 
1297
1303
  utils_listenerProxy(this.marker, this)
1298
1304
  utils_watchProps(this.marker, this, VAMapPolygonvue_type_script_lang_js_watchedProps)
1299
-
1300
- this._addMarker()
1301
1305
  },
1302
1306
  _addMarker() {
1303
- if (!this.$parent.addMarker) return
1304
-
1305
- this.$parent.addMarker(this.marker)
1307
+ this.getMap()?.add(this.marker)
1306
1308
 
1307
1309
  this.$emit('init', this.marker)
1308
1310
  },
1309
1311
  _removeMarker() {
1310
1312
  if (!this.marker) return
1311
- if (!this.$parent.removeMarker) return
1312
1313
 
1313
- this.$parent.removeMarker(this.marker)
1314
+ this.getMap()?.remove(this.marker)
1314
1315
  }
1315
1316
  },
1316
1317
  render() {
@@ -1318,18 +1319,18 @@ const VAMapPolygonvue_type_script_lang_js_watchedProps = [
1318
1319
  }
1319
1320
  });
1320
1321
 
1321
- // CONCATENATED MODULE: ./src/Components/VAMapPolygon.vue?vue&type=script&lang=js&
1322
- /* harmony default export */ var Components_VAMapPolygonvue_type_script_lang_js_ = (VAMapPolygonvue_type_script_lang_js_);
1323
- // CONCATENATED MODULE: ./src/Components/VAMapPolygon.vue
1322
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPolygon.vue?vue&type=script&lang=js
1323
+ /* harmony default export */ var Components_VAMapPolygonvue_type_script_lang_js = (VAMapPolygonvue_type_script_lang_js);
1324
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPolygon.vue
1324
1325
  var VAMapPolygon_render, VAMapPolygon_staticRenderFns
1325
-
1326
+ ;
1326
1327
 
1327
1328
 
1328
1329
 
1329
1330
  /* normalize component */
1330
-
1331
+ ;
1331
1332
  var VAMapPolygon_component = normalizeComponent(
1332
- Components_VAMapPolygonvue_type_script_lang_js_,
1333
+ Components_VAMapPolygonvue_type_script_lang_js,
1333
1334
  VAMapPolygon_render,
1334
1335
  VAMapPolygon_staticRenderFns,
1335
1336
  false,
@@ -1340,19 +1341,17 @@ var VAMapPolygon_component = normalizeComponent(
1340
1341
  )
1341
1342
 
1342
1343
  /* harmony default export */ var VAMapPolygon = (VAMapPolygon_component.exports);
1343
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"62109407-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=template&id=57fd4556&scoped=true&lang=pug&
1344
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/pug-plain-loader/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=template&id=57fd4556&scoped=true&lang=pug
1344
1345
  var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"v-amap-place-search-input"},[_c('input',{ref:"input",attrs:{"placeholder":_vm.placeholder}})])
1345
1346
  }
1346
1347
  var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_staticRenderFns = []
1347
1348
 
1348
1349
 
1349
- // CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=template&id=57fd4556&scoped=true&lang=pug&
1350
-
1351
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js&
1350
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js
1352
1351
 
1353
1352
 
1354
1353
 
1355
- /* harmony default export */ var VAMapPlaceSearchInputvue_type_script_lang_js_ = ({
1354
+ /* harmony default export */ var VAMapPlaceSearchInputvue_type_script_lang_js = ({
1356
1355
  name: 'VAMapPlaceSearchInput',
1357
1356
  props: {
1358
1357
  placeholder: {
@@ -1424,26 +1423,28 @@ var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_stat
1424
1423
  }
1425
1424
  });
1426
1425
 
1427
- // CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js&
1428
- /* harmony default export */ var Components_VAMapPlaceSearchInputvue_type_script_lang_js_ = (VAMapPlaceSearchInputvue_type_script_lang_js_);
1429
- // EXTERNAL MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true&
1430
- var VAMapPlaceSearchInputvue_type_style_index_0_id_57fd4556_prod_lang_stylus_scoped_true_ = __webpack_require__("61d4");
1431
-
1432
- // EXTERNAL MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus&
1433
- var VAMapPlaceSearchInputvue_type_style_index_1_id_57fd4556_prod_lang_stylus_ = __webpack_require__("fcc8");
1426
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js
1427
+ /* harmony default export */ var Components_VAMapPlaceSearchInputvue_type_script_lang_js = (VAMapPlaceSearchInputvue_type_script_lang_js);
1428
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-34.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-34.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-34.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-34.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-34.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true
1429
+ var VAMapPlaceSearchInputvue_type_style_index_0_id_57fd4556_prod_lang_stylus_scoped_true = __webpack_require__(445);
1430
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true
1434
1431
 
1435
- // CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue
1432
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-34.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-34.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-34.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-34.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-34.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus
1433
+ var VAMapPlaceSearchInputvue_type_style_index_1_id_57fd4556_prod_lang_stylus = __webpack_require__(160);
1434
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus
1436
1435
 
1436
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue
1437
1437
 
1438
1438
 
1439
1439
 
1440
+ ;
1440
1441
 
1441
1442
 
1442
1443
 
1443
1444
  /* normalize component */
1444
1445
 
1445
1446
  var VAMapPlaceSearchInput_component = normalizeComponent(
1446
- Components_VAMapPlaceSearchInputvue_type_script_lang_js_,
1447
+ Components_VAMapPlaceSearchInputvue_type_script_lang_js,
1447
1448
  VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_render,
1448
1449
  VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_staticRenderFns,
1449
1450
  false,
@@ -1454,7 +1455,7 @@ var VAMapPlaceSearchInput_component = normalizeComponent(
1454
1455
  )
1455
1456
 
1456
1457
  /* harmony default export */ var VAMapPlaceSearchInput = (VAMapPlaceSearchInput_component.exports);
1457
- // CONCATENATED MODULE: ./src/Components/index.js
1458
+ ;// CONCATENATED MODULE: ./src/Components/index.js
1458
1459
 
1459
1460
 
1460
1461
 
@@ -1469,13 +1470,24 @@ var VAMapPlaceSearchInput_component = normalizeComponent(
1469
1470
  VAMapPlaceSearchInput
1470
1471
  ]);
1471
1472
 
1472
- // CONCATENATED MODULE: ./src/index.js
1473
+ ;// CONCATENATED MODULE: ./src/config/index.js
1474
+ const version = '1.1.0'
1475
+
1476
+ /* harmony default export */ var config = ({
1477
+ version
1478
+ });
1479
+
1480
+ ;// CONCATENATED MODULE: ./src/index.js
1481
+
1473
1482
 
1474
1483
 
1475
1484
 
1476
1485
  let globalMapOptions = {}
1477
1486
 
1478
- class src_AMapManager {
1487
+ class AMapManager {
1488
+ static get version() {
1489
+ return version
1490
+ }
1479
1491
  static get AMapLoader() {
1480
1492
  return loader
1481
1493
  }
@@ -1499,27 +1511,16 @@ class src_AMapManager {
1499
1511
 
1500
1512
 
1501
1513
 
1502
- /* harmony default export */ var src_0 = (src_AMapManager);
1503
-
1504
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
1505
-
1506
-
1507
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_0);
1508
-
1514
+ /* harmony default export */ var src_0 = (AMapManager);
1509
1515
 
1516
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
1510
1517
 
1511
- /***/ }),
1512
-
1513
- /***/ "fcc8":
1514
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1515
-
1516
- "use strict";
1517
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMapPlaceSearchInput_vue_vue_type_style_index_1_id_57fd4556_prod_lang_stylus___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2cc0");
1518
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMapPlaceSearchInput_vue_vue_type_style_index_1_id_57fd4556_prod_lang_stylus___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_stylus_loader_index_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VAMapPlaceSearchInput_vue_vue_type_style_index_1_id_57fd4556_prod_lang_stylus___WEBPACK_IMPORTED_MODULE_0__);
1519
- /* unused harmony reexport * */
1520
1518
 
1519
+ /* harmony default export */ var entry_lib = (src_0);
1521
1520
 
1522
- /***/ })
1523
1521
 
1524
- /******/ })["default"];
1522
+ }();
1523
+ module.exports = __webpack_exports__["default"];
1524
+ /******/ })()
1525
+ ;
1525
1526
  //# sourceMappingURL=vue-amap.common.js.map