@styzy/vue-amap 1.0.1 → 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.
@@ -8,110 +8,74 @@
8
8
  else
9
9
  root["vue-amap"] = factory();
10
10
  })((typeof self !== 'undefined' ? self : this), function() {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__(moduleId) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if(installedModules[moduleId]) {
20
- /******/ return installedModules[moduleId].exports;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules[moduleId] = {
24
- /******/ i: moduleId,
25
- /******/ l: false,
26
- /******/ exports: {}
27
- /******/ };
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module.l = true;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module.exports;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__.m = modules;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__.c = installedModules;
45
- /******/
46
- /******/ // define getter function for harmony exports
47
- /******/ __webpack_require__.d = function(exports, name, getter) {
48
- /******/ if(!__webpack_require__.o(exports, name)) {
49
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
- /******/ }
51
- /******/ };
52
- /******/
53
- /******/ // define __esModule on exports
54
- /******/ __webpack_require__.r = function(exports) {
55
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
- /******/ }
58
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
- /******/ };
60
- /******/
61
- /******/ // create a fake namespace object
62
- /******/ // mode & 1: value is a module id, require it
63
- /******/ // mode & 2: merge all properties of value into the ns
64
- /******/ // mode & 4: return value when already ns object
65
- /******/ // mode & 8|1: behave like require
66
- /******/ __webpack_require__.t = function(value, mode) {
67
- /******/ if(mode & 1) value = __webpack_require__(value);
68
- /******/ if(mode & 8) return value;
69
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
- /******/ var ns = Object.create(null);
71
- /******/ __webpack_require__.r(ns);
72
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
- /******/ return ns;
75
- /******/ };
76
- /******/
77
- /******/ // getDefaultExport function for compatibility with non-harmony modules
78
- /******/ __webpack_require__.n = function(module) {
79
- /******/ var getter = module && module.__esModule ?
80
- /******/ function getDefault() { return module['default']; } :
81
- /******/ function getModuleExports() { return module; };
82
- /******/ __webpack_require__.d(getter, 'a', getter);
83
- /******/ return getter;
84
- /******/ };
85
- /******/
86
- /******/ // Object.prototype.hasOwnProperty.call
87
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
- /******/
89
- /******/ // __webpack_public_path__
90
- /******/ __webpack_require__.p = "";
91
- /******/
92
- /******/
93
- /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = "fb15");
95
- /******/ })
96
- /************************************************************************/
97
- /******/ ({
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 168:
15
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
+
17
+ "use strict";
18
+ __webpack_require__.r(__webpack_exports__);
19
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
20
+ /* 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__);
21
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
22
+ /* 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__);
23
+ // Imports
24
+
25
+
26
+ 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()));
27
+ // Module
28
+ ___CSS_LOADER_EXPORT___.push([module.id, ".v-amap-ctn[data-v-0a8871e0],.v-amap-ctn .v-amap[data-v-0a8871e0]{height:100%}", ""]);
29
+ // Exports
30
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
98
31
 
99
- /***/ "18f4":
100
- /***/ (function(module, exports, __webpack_require__) {
101
32
 
33
+ /***/ }),
34
+
35
+ /***/ 757:
36
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
37
+
38
+ "use strict";
39
+ __webpack_require__.r(__webpack_exports__);
40
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
41
+ /* 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__);
42
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
43
+ /* 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__);
102
44
  // Imports
103
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
104
- exports = ___CSS_LOADER_API_IMPORT___(false);
45
+
46
+
47
+ 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()));
105
48
  // Module
106
- exports.push([module.i, ".amap-sug-result{display:none}", ""]);
49
+ ___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}", ""]);
107
50
  // Exports
108
- module.exports = exports;
51
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
109
52
 
110
53
 
111
54
  /***/ }),
112
55
 
113
- /***/ "24fb":
114
- /***/ (function(module, exports, __webpack_require__) {
56
+ /***/ 242:
57
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
58
+
59
+ "use strict";
60
+ __webpack_require__.r(__webpack_exports__);
61
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
62
+ /* 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__);
63
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
64
+ /* 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__);
65
+ // Imports
66
+
67
+
68
+ 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()));
69
+ // Module
70
+ ___CSS_LOADER_EXPORT___.push([module.id, ".amap-sug-result{display:none}", ""]);
71
+ // Exports
72
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
73
+
74
+
75
+ /***/ }),
76
+
77
+ /***/ 645:
78
+ /***/ (function(module) {
115
79
 
116
80
  "use strict";
117
81
 
@@ -120,140 +84,159 @@ module.exports = exports;
120
84
  MIT License http://www.opensource.org/licenses/mit-license.php
121
85
  Author Tobias Koppers @sokra
122
86
  */
123
- // css base code, injected by the css-loader
124
- // eslint-disable-next-line func-names
125
- module.exports = function (useSourceMap) {
126
- var list = []; // return the list of modules as css string
87
+ module.exports = function (cssWithMappingToString) {
88
+ var list = [];
127
89
 
90
+ // return the list of modules as css string
128
91
  list.toString = function toString() {
129
92
  return this.map(function (item) {
130
- var content = cssWithMappingToString(item, useSourceMap);
131
-
93
+ var content = "";
94
+ var needLayer = typeof item[5] !== "undefined";
95
+ if (item[4]) {
96
+ content += "@supports (".concat(item[4], ") {");
97
+ }
132
98
  if (item[2]) {
133
- return "@media ".concat(item[2], " {").concat(content, "}");
99
+ content += "@media ".concat(item[2], " {");
100
+ }
101
+ if (needLayer) {
102
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
103
+ }
104
+ content += cssWithMappingToString(item);
105
+ if (needLayer) {
106
+ content += "}";
107
+ }
108
+ if (item[2]) {
109
+ content += "}";
110
+ }
111
+ if (item[4]) {
112
+ content += "}";
134
113
  }
135
-
136
114
  return content;
137
- }).join('');
138
- }; // import a list of modules into the list
139
- // eslint-disable-next-line func-names
140
-
115
+ }).join("");
116
+ };
141
117
 
142
- list.i = function (modules, mediaQuery, dedupe) {
143
- if (typeof modules === 'string') {
144
- // eslint-disable-next-line no-param-reassign
145
- modules = [[null, modules, '']];
118
+ // import a list of modules into the list
119
+ list.i = function i(modules, media, dedupe, supports, layer) {
120
+ if (typeof modules === "string") {
121
+ modules = [[null, modules, undefined]];
146
122
  }
147
-
148
123
  var alreadyImportedModules = {};
149
-
150
124
  if (dedupe) {
151
- for (var i = 0; i < this.length; i++) {
152
- // eslint-disable-next-line prefer-destructuring
153
- var id = this[i][0];
154
-
125
+ for (var k = 0; k < this.length; k++) {
126
+ var id = this[k][0];
155
127
  if (id != null) {
156
128
  alreadyImportedModules[id] = true;
157
129
  }
158
130
  }
159
131
  }
160
-
161
- for (var _i = 0; _i < modules.length; _i++) {
162
- var item = [].concat(modules[_i]);
163
-
132
+ for (var _k = 0; _k < modules.length; _k++) {
133
+ var item = [].concat(modules[_k]);
164
134
  if (dedupe && alreadyImportedModules[item[0]]) {
165
- // eslint-disable-next-line no-continue
166
135
  continue;
167
136
  }
168
-
169
- if (mediaQuery) {
137
+ if (typeof layer !== "undefined") {
138
+ if (typeof item[5] === "undefined") {
139
+ item[5] = layer;
140
+ } else {
141
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
142
+ item[5] = layer;
143
+ }
144
+ }
145
+ if (media) {
170
146
  if (!item[2]) {
171
- item[2] = mediaQuery;
147
+ item[2] = media;
172
148
  } else {
173
- item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
149
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
150
+ item[2] = media;
151
+ }
152
+ }
153
+ if (supports) {
154
+ if (!item[4]) {
155
+ item[4] = "".concat(supports);
156
+ } else {
157
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
158
+ item[4] = supports;
174
159
  }
175
160
  }
176
-
177
161
  list.push(item);
178
162
  }
179
163
  };
180
-
181
164
  return list;
182
165
  };
183
166
 
184
- function cssWithMappingToString(item, useSourceMap) {
185
- var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
167
+ /***/ }),
186
168
 
187
- var cssMapping = item[3];
169
+ /***/ 81:
170
+ /***/ (function(module) {
188
171
 
189
- if (!cssMapping) {
190
- return content;
191
- }
172
+ "use strict";
192
173
 
193
- if (useSourceMap && typeof btoa === 'function') {
194
- var sourceMapping = toComment(cssMapping);
195
- var sourceURLs = cssMapping.sources.map(function (source) {
196
- return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
197
- });
198
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
199
- }
200
174
 
201
- return [content].join('\n');
202
- } // Adapted from convert-source-map (MIT)
175
+ module.exports = function (i) {
176
+ return i[1];
177
+ };
178
+
179
+ /***/ }),
203
180
 
181
+ /***/ 936:
182
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
204
183
 
205
- function toComment(sourceMap) {
206
- // eslint-disable-next-line no-undef
207
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
208
- var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
209
- return "/*# ".concat(data, " */");
210
- }
184
+ // style-loader: Adds some css to the DOM by adding a <style> tag
185
+
186
+ // load the styles
187
+ var content = __webpack_require__(168);
188
+ if(content.__esModule) content = content.default;
189
+ if(typeof content === 'string') content = [[module.id, content, '']];
190
+ if(content.locals) module.exports = content.locals;
191
+ // add the styles to the DOM
192
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
193
+ var update = add("1bf2dbec", content, true, {"sourceMap":false,"shadowMode":false});
211
194
 
212
195
  /***/ }),
213
196
 
214
- /***/ "2cc0":
215
- /***/ (function(module, exports, __webpack_require__) {
197
+ /***/ 510:
198
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
216
199
 
217
200
  // style-loader: Adds some css to the DOM by adding a <style> tag
218
201
 
219
202
  // load the styles
220
- var content = __webpack_require__("18f4");
203
+ var content = __webpack_require__(757);
221
204
  if(content.__esModule) content = content.default;
222
- if(typeof content === 'string') content = [[module.i, content, '']];
205
+ if(typeof content === 'string') content = [[module.id, content, '']];
223
206
  if(content.locals) module.exports = content.locals;
224
207
  // add the styles to the DOM
225
- var add = __webpack_require__("499e").default
226
- var update = add("37432b0a", content, true, {"sourceMap":false,"shadowMode":false});
208
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
209
+ var update = add("02632d94", content, true, {"sourceMap":false,"shadowMode":false});
227
210
 
228
211
  /***/ }),
229
212
 
230
- /***/ "3a4c":
231
- /***/ (function(module, exports, __webpack_require__) {
213
+ /***/ 12:
214
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
232
215
 
233
216
  // style-loader: Adds some css to the DOM by adding a <style> tag
234
217
 
235
218
  // load the styles
236
- var content = __webpack_require__("50bd");
219
+ var content = __webpack_require__(242);
237
220
  if(content.__esModule) content = content.default;
238
- if(typeof content === 'string') content = [[module.i, content, '']];
221
+ if(typeof content === 'string') content = [[module.id, content, '']];
239
222
  if(content.locals) module.exports = content.locals;
240
223
  // add the styles to the DOM
241
- var add = __webpack_require__("499e").default
242
- var update = add("329bbec2", content, true, {"sourceMap":false,"shadowMode":false});
224
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
225
+ var update = add("32ab85ac", content, true, {"sourceMap":false,"shadowMode":false});
243
226
 
244
227
  /***/ }),
245
228
 
246
- /***/ "499e":
247
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
229
+ /***/ 402:
230
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
248
231
 
249
232
  "use strict";
250
- // ESM COMPAT FLAG
251
- __webpack_require__.r(__webpack_exports__);
252
233
 
253
234
  // EXPORTS
254
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ addStylesClient; });
235
+ __webpack_require__.d(__webpack_exports__, {
236
+ Z: function() { return /* binding */ addStylesClient; }
237
+ });
255
238
 
256
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
239
+ ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
257
240
  /**
258
241
  * Translates the list format produced by css-loader into something
259
242
  * easier to manipulate.
@@ -282,7 +265,7 @@ function listToStyles (parentId, list) {
282
265
  return styles
283
266
  }
284
267
 
285
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
268
+ ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
286
269
  /*
287
270
  MIT License http://www.opensource.org/licenses/mit-license.php
288
271
  Author Tobias Koppers @sokra
@@ -507,85 +490,95 @@ function applyToTag (styleElement, obj) {
507
490
  }
508
491
 
509
492
 
510
- /***/ }),
511
-
512
- /***/ "50bd":
513
- /***/ (function(module, exports, __webpack_require__) {
514
-
515
- // Imports
516
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
517
- exports = ___CSS_LOADER_API_IMPORT___(false);
518
- // Module
519
- exports.push([module.i, ".v-amap-ctn[data-v-37c06024],.v-amap-ctn .v-amap[data-v-37c06024]{height:100%}", ""]);
520
- // Exports
521
- module.exports = exports;
522
-
523
-
524
- /***/ }),
525
-
526
- /***/ "61d4":
527
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
528
-
529
- "use strict";
530
- /* 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");
531
- /* 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__);
532
- /* unused harmony reexport * */
533
-
534
-
535
- /***/ }),
536
-
537
- /***/ "b661":
538
- /***/ (function(module, exports, __webpack_require__) {
539
-
540
- // Imports
541
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
542
- exports = ___CSS_LOADER_API_IMPORT___(false);
543
- // Module
544
- 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}", ""]);
545
- // Exports
546
- module.exports = exports;
547
-
548
-
549
- /***/ }),
550
-
551
- /***/ "c5a3":
552
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
553
-
554
- "use strict";
555
- /* 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");
556
- /* 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__);
557
- /* unused harmony reexport * */
558
-
559
-
560
- /***/ }),
561
-
562
- /***/ "c5a6":
563
- /***/ (function(module, exports, __webpack_require__) {
564
-
565
- // style-loader: Adds some css to the DOM by adding a <style> tag
566
-
567
- // load the styles
568
- var content = __webpack_require__("b661");
569
- if(content.__esModule) content = content.default;
570
- if(typeof content === 'string') content = [[module.i, content, '']];
571
- if(content.locals) module.exports = content.locals;
572
- // add the styles to the DOM
573
- var add = __webpack_require__("499e").default
574
- var update = add("1e99f6c0", content, true, {"sourceMap":false,"shadowMode":false});
575
-
576
- /***/ }),
577
-
578
- /***/ "fb15":
579
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
493
+ /***/ })
580
494
 
495
+ /******/ });
496
+ /************************************************************************/
497
+ /******/ // The module cache
498
+ /******/ var __webpack_module_cache__ = {};
499
+ /******/
500
+ /******/ // The require function
501
+ /******/ function __webpack_require__(moduleId) {
502
+ /******/ // Check if module is in cache
503
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
504
+ /******/ if (cachedModule !== undefined) {
505
+ /******/ return cachedModule.exports;
506
+ /******/ }
507
+ /******/ // Create a new module (and put it into the cache)
508
+ /******/ var module = __webpack_module_cache__[moduleId] = {
509
+ /******/ id: moduleId,
510
+ /******/ // no module.loaded needed
511
+ /******/ exports: {}
512
+ /******/ };
513
+ /******/
514
+ /******/ // Execute the module function
515
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
516
+ /******/
517
+ /******/ // Return the exports of the module
518
+ /******/ return module.exports;
519
+ /******/ }
520
+ /******/
521
+ /************************************************************************/
522
+ /******/ /* webpack/runtime/compat get default export */
523
+ /******/ !function() {
524
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
525
+ /******/ __webpack_require__.n = function(module) {
526
+ /******/ var getter = module && module.__esModule ?
527
+ /******/ function() { return module['default']; } :
528
+ /******/ function() { return module; };
529
+ /******/ __webpack_require__.d(getter, { a: getter });
530
+ /******/ return getter;
531
+ /******/ };
532
+ /******/ }();
533
+ /******/
534
+ /******/ /* webpack/runtime/define property getters */
535
+ /******/ !function() {
536
+ /******/ // define getter functions for harmony exports
537
+ /******/ __webpack_require__.d = function(exports, definition) {
538
+ /******/ for(var key in definition) {
539
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
540
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
541
+ /******/ }
542
+ /******/ }
543
+ /******/ };
544
+ /******/ }();
545
+ /******/
546
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
547
+ /******/ !function() {
548
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
549
+ /******/ }();
550
+ /******/
551
+ /******/ /* webpack/runtime/make namespace object */
552
+ /******/ !function() {
553
+ /******/ // define __esModule on exports
554
+ /******/ __webpack_require__.r = function(exports) {
555
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
556
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
557
+ /******/ }
558
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
559
+ /******/ };
560
+ /******/ }();
561
+ /******/
562
+ /******/ /* webpack/runtime/publicPath */
563
+ /******/ !function() {
564
+ /******/ __webpack_require__.p = "";
565
+ /******/ }();
566
+ /******/
567
+ /************************************************************************/
568
+ var __webpack_exports__ = {};
569
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
570
+ !function() {
581
571
  "use strict";
582
- // ESM COMPAT FLAG
583
- __webpack_require__.r(__webpack_exports__);
584
572
 
585
573
  // EXPORTS
586
- __webpack_require__.d(__webpack_exports__, "AMapLoader", function() { return /* reexport */ loader; });
574
+ __webpack_require__.d(__webpack_exports__, {
575
+ "default": function() { return /* binding */ entry_lib; }
576
+ });
577
+
578
+ // UNUSED EXPORTS: AMapLoader
587
579
 
588
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
580
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
581
+ /* eslint-disable no-var */
589
582
  // This file is imported into lib/wc client bundles.
590
583
 
591
584
  if (typeof window !== 'undefined') {
@@ -601,7 +594,7 @@ if (typeof window !== 'undefined') {
601
594
  // Indicate to webpack that this file can be concatenated
602
595
  /* harmony default export */ var setPublicPath = (null);
603
596
 
604
- // CONCATENATED MODULE: ./src/CONSTANTS/index.js
597
+ ;// CONCATENATED MODULE: ./src/CONSTANTS/index.js
605
598
  const CONSTANTS = {
606
599
  SDK_URL: 'https://webapi.amap.com/maps',
607
600
  CALLBACK_NAME: 'aMapInitCallback'
@@ -609,10 +602,10 @@ const CONSTANTS = {
609
602
 
610
603
  /* harmony default export */ var src_CONSTANTS = (CONSTANTS);
611
604
 
612
- // CONCATENATED MODULE: ./src/loader/index.js
605
+ ;// CONCATENATED MODULE: ./src/loader/index.js
613
606
 
614
607
 
615
- class loader_Loader {
608
+ class Loader {
616
609
  get key() {
617
610
  return this._key
618
611
  }
@@ -718,17 +711,15 @@ class loader_Loader {
718
711
  }
719
712
  }
720
713
 
721
- /* harmony default export */ var loader = (new loader_Loader());
714
+ /* harmony default export */ var loader = (new Loader());
722
715
 
723
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3762daea-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&
716
+ ;// 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
724
717
  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)
725
718
  }
726
719
  var staticRenderFns = []
727
720
 
728
721
 
729
- // CONCATENATED MODULE: ./src/Components/VAMap.vue?vue&type=template&id=37c06024&scoped=true&lang=pug&
730
-
731
- // CONCATENATED MODULE: ./src/utils/listenerProxy.js
722
+ ;// CONCATENATED MODULE: ./src/utils/listenerProxy.js
732
723
  const listenerProxy = (aMapObject, vm) => {
733
724
  const listeners = vm.$listeners
734
725
 
@@ -745,14 +736,14 @@ const listenerProxy = (aMapObject, vm) => {
745
736
 
746
737
  /* harmony default export */ var utils_listenerProxy = (listenerProxy);
747
738
 
748
- // CONCATENATED MODULE: ./src/utils/typeOf.js
739
+ ;// CONCATENATED MODULE: ./src/utils/typeOf.js
749
740
  const typeOf = function (param) {
750
741
  return Object.prototype.toString.call(param).match(/\s+(\w+)/)[1]
751
742
  }
752
743
 
753
744
  /* harmony default export */ var utils_typeOf = (typeOf);
754
745
 
755
- // CONCATENATED MODULE: ./src/utils/watchProps.js
746
+ ;// CONCATENATED MODULE: ./src/utils/watchProps.js
756
747
 
757
748
 
758
749
  const watchProps = (aMapObject, vm, props) => {
@@ -787,13 +778,7 @@ const watchProps = (aMapObject, vm, props) => {
787
778
 
788
779
  /* harmony default export */ var utils_watchProps = (watchProps);
789
780
 
790
- // CONCATENATED MODULE: ./src/utils/index.js
791
-
792
-
793
-
794
-
795
-
796
- // 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&
781
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMap.vue?vue&type=script&lang=js
797
782
 
798
783
 
799
784
 
@@ -815,8 +800,13 @@ const watchedProps = [
815
800
  'pitch'
816
801
  ]
817
802
 
818
- /* harmony default export */ var VAMapvue_type_script_lang_js_ = ({
803
+ /* harmony default export */ var VAMapvue_type_script_lang_js = ({
819
804
  name: 'VAMap',
805
+ provide() {
806
+ return {
807
+ getMap: this.getMap
808
+ }
809
+ },
820
810
  data() {
821
811
  return {
822
812
  AMap: null,
@@ -849,21 +839,25 @@ const watchedProps = [
849
839
  _destroyMap() {
850
840
  this.aMap && this.aMap.destroy()
851
841
  },
852
- addMarker(marker) {
853
- this.aMap && this.aMap.add(marker)
854
- },
855
- removeMarker(marker) {
856
- this.aMap && this.aMap.remove(marker)
842
+ getMap() {
843
+ return this.aMap
857
844
  }
845
+ // addMarker(marker) {
846
+ // this.aMap && this.aMap.add(marker)
847
+ // },
848
+ // removeMarker(marker) {
849
+ // this.aMap && this.aMap.remove(marker)
850
+ // }
858
851
  }
859
852
  });
860
853
 
861
- // CONCATENATED MODULE: ./src/Components/VAMap.vue?vue&type=script&lang=js&
862
- /* harmony default export */ var Components_VAMapvue_type_script_lang_js_ = (VAMapvue_type_script_lang_js_);
863
- // EXTERNAL MODULE: ./src/Components/VAMap.vue?vue&type=style&index=0&id=37c06024&prod&lang=stylus&scoped=true&
864
- var VAMapvue_type_style_index_0_id_37c06024_prod_lang_stylus_scoped_true_ = __webpack_require__("c5a3");
854
+ ;// CONCATENATED MODULE: ./src/Components/VAMap.vue?vue&type=script&lang=js
855
+ /* harmony default export */ var Components_VAMapvue_type_script_lang_js = (VAMapvue_type_script_lang_js);
856
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-76.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
857
+ var VAMapvue_type_style_index_0_id_0a8871e0_prod_lang_stylus_scoped_true = __webpack_require__(936);
858
+ ;// CONCATENATED MODULE: ./src/Components/VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true
865
859
 
866
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
860
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
867
861
  /* globals __VUE_SSR_CONTEXT__ */
868
862
 
869
863
  // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
@@ -961,36 +955,34 @@ function normalizeComponent(
961
955
  }
962
956
  }
963
957
 
964
- // CONCATENATED MODULE: ./src/Components/VAMap.vue
965
-
958
+ ;// CONCATENATED MODULE: ./src/Components/VAMap.vue
966
959
 
967
960
 
968
961
 
962
+ ;
969
963
 
970
964
 
971
965
  /* normalize component */
972
966
 
973
967
  var component = normalizeComponent(
974
- Components_VAMapvue_type_script_lang_js_,
968
+ Components_VAMapvue_type_script_lang_js,
975
969
  render,
976
970
  staticRenderFns,
977
971
  false,
978
972
  null,
979
- "37c06024",
973
+ "0a8871e0",
980
974
  null
981
975
 
982
976
  )
983
977
 
984
978
  /* harmony default export */ var VAMap = (component.exports);
985
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3762daea-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=79bc5cde&scoped=true&lang=pug&
986
- var VAMapMarkervue_type_template_id_79bc5cde_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)])
979
+ ;// 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
980
+ 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)])
987
981
  }
988
- var VAMapMarkervue_type_template_id_79bc5cde_scoped_true_lang_pug_staticRenderFns = []
982
+ var VAMapMarkervue_type_template_id_6931c341_scoped_true_lang_pug_staticRenderFns = []
989
983
 
990
984
 
991
- // CONCATENATED MODULE: ./src/Components/VAMapMarker.vue?vue&type=template&id=79bc5cde&scoped=true&lang=pug&
992
-
993
- // 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&
985
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapMarker.vue?vue&type=script&lang=js
994
986
 
995
987
 
996
988
 
@@ -1025,16 +1017,23 @@ const VAMapMarkervue_type_script_lang_js_watchedProps = [
1025
1017
  'label'
1026
1018
  ]
1027
1019
 
1028
- /* harmony default export */ var VAMapMarkervue_type_script_lang_js_ = ({
1020
+ /* harmony default export */ var VAMapMarkervue_type_script_lang_js = ({
1029
1021
  name: 'VAMapMarker',
1022
+ inject: ['getMap'],
1030
1023
  data() {
1031
1024
  return {
1032
1025
  marker: null,
1033
1026
  isFixedMarkerSize: false
1034
1027
  }
1035
1028
  },
1036
- mounted() {
1037
- this._createMarker()
1029
+ computed: {
1030
+ hasSlot() {
1031
+ return !!this.$scopedSlots.default
1032
+ }
1033
+ },
1034
+ async mounted() {
1035
+ await this._createMarker()
1036
+ this._addMarker()
1038
1037
  },
1039
1038
  async updated() {
1040
1039
  if (!this.marker) return
@@ -1056,63 +1055,63 @@ const VAMapMarkervue_type_script_lang_js_watchedProps = [
1056
1055
  async _createMarker() {
1057
1056
  const AMap = await loader.load(),
1058
1057
  options = Object.assign({}, this.$attrs, {
1059
- content: this.$scopedSlots.default
1060
- ? this.$refs.content
1061
- : null
1058
+ content: this._getMarkerContent()
1062
1059
  })
1063
1060
 
1064
1061
  this.marker = new AMap.Marker(options)
1065
1062
 
1066
1063
  utils_listenerProxy(this.marker, this)
1067
1064
  utils_watchProps(this.marker, this, VAMapMarkervue_type_script_lang_js_watchedProps)
1068
-
1069
- this._addMarker()
1065
+ },
1066
+ _getMarkerContent() {
1067
+ return this.hasSlot ? this.$refs.content : null
1070
1068
  },
1071
1069
  _updateMarkerContent() {
1072
- this.marker.setContent(this.$refs.content)
1070
+ if (!this.hasSlot) return
1071
+
1072
+ this.marker.setContent(this._getMarkerContent())
1073
1073
  },
1074
1074
  _resetMarkerContent() {
1075
+ if (!this.hasSlot) return
1076
+
1075
1077
  this.$el.appendChild(this.$refs.content)
1076
1078
  },
1077
1079
  _addMarker() {
1078
- if (!this.$parent.addMarker) return
1079
-
1080
- this.$parent.addMarker(this.marker)
1080
+ this.getMap()?.add(this.marker)
1081
1081
 
1082
1082
  this.$emit('init', this.marker)
1083
1083
  },
1084
1084
  _removeMarker() {
1085
1085
  if (!this.marker) return
1086
- if (!this.$parent.removeMarker) return
1087
1086
 
1088
- this.$parent.removeMarker(this.marker)
1087
+ this.getMap()?.remove(this.marker)
1089
1088
  }
1090
1089
  }
1091
1090
  });
1092
1091
 
1093
- // CONCATENATED MODULE: ./src/Components/VAMapMarker.vue?vue&type=script&lang=js&
1094
- /* harmony default export */ var Components_VAMapMarkervue_type_script_lang_js_ = (VAMapMarkervue_type_script_lang_js_);
1095
- // CONCATENATED MODULE: ./src/Components/VAMapMarker.vue
1092
+ ;// CONCATENATED MODULE: ./src/Components/VAMapMarker.vue?vue&type=script&lang=js
1093
+ /* harmony default export */ var Components_VAMapMarkervue_type_script_lang_js = (VAMapMarkervue_type_script_lang_js);
1094
+ ;// CONCATENATED MODULE: ./src/Components/VAMapMarker.vue
1096
1095
 
1097
1096
 
1098
1097
 
1099
1098
 
1100
1099
 
1101
1100
  /* normalize component */
1102
-
1101
+ ;
1103
1102
  var VAMapMarker_component = normalizeComponent(
1104
- Components_VAMapMarkervue_type_script_lang_js_,
1105
- VAMapMarkervue_type_template_id_79bc5cde_scoped_true_lang_pug_render,
1106
- VAMapMarkervue_type_template_id_79bc5cde_scoped_true_lang_pug_staticRenderFns,
1103
+ Components_VAMapMarkervue_type_script_lang_js,
1104
+ VAMapMarkervue_type_template_id_6931c341_scoped_true_lang_pug_render,
1105
+ VAMapMarkervue_type_template_id_6931c341_scoped_true_lang_pug_staticRenderFns,
1107
1106
  false,
1108
1107
  null,
1109
- "79bc5cde",
1108
+ "6931c341",
1110
1109
  null
1111
1110
 
1112
1111
  )
1113
1112
 
1114
1113
  /* harmony default export */ var VAMapMarker = (VAMapMarker_component.exports);
1115
- // 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&
1114
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapMassMarks.vue?vue&type=script&lang=js
1116
1115
 
1117
1116
 
1118
1117
 
@@ -1139,15 +1138,17 @@ const VAMapMassMarksvue_type_script_lang_js_watchedProps = [
1139
1138
  ]
1140
1139
  ]
1141
1140
 
1142
- /* harmony default export */ var VAMapMassMarksvue_type_script_lang_js_ = ({
1141
+ /* harmony default export */ var VAMapMassMarksvue_type_script_lang_js = ({
1143
1142
  name: 'VAMapMassMarks',
1143
+ inject: ['getMap'],
1144
1144
  data() {
1145
1145
  return {
1146
1146
  marker: null
1147
1147
  }
1148
1148
  },
1149
- created() {
1150
- this._createMarker()
1149
+ async created() {
1150
+ await this._createMarker()
1151
+ this._addMarker()
1151
1152
  },
1152
1153
  destroyed() {
1153
1154
  this._removeMarker()
@@ -1163,13 +1164,9 @@ const VAMapMassMarksvue_type_script_lang_js_watchedProps = [
1163
1164
 
1164
1165
  utils_listenerProxy(this.marker, this)
1165
1166
  utils_watchProps(this.marker, this, VAMapMassMarksvue_type_script_lang_js_watchedProps)
1166
-
1167
- this._addMarker()
1168
1167
  },
1169
1168
  _addMarker() {
1170
- if (!this.$parent.aMap) return
1171
-
1172
- this.marker.setMap(this.$parent.aMap)
1169
+ this.marker.setMap(this.getMap())
1173
1170
 
1174
1171
  this.$emit('init', this.marker)
1175
1172
  },
@@ -1185,18 +1182,18 @@ const VAMapMassMarksvue_type_script_lang_js_watchedProps = [
1185
1182
  }
1186
1183
  });
1187
1184
 
1188
- // CONCATENATED MODULE: ./src/Components/VAMapMassMarks.vue?vue&type=script&lang=js&
1189
- /* harmony default export */ var Components_VAMapMassMarksvue_type_script_lang_js_ = (VAMapMassMarksvue_type_script_lang_js_);
1190
- // CONCATENATED MODULE: ./src/Components/VAMapMassMarks.vue
1185
+ ;// CONCATENATED MODULE: ./src/Components/VAMapMassMarks.vue?vue&type=script&lang=js
1186
+ /* harmony default export */ var Components_VAMapMassMarksvue_type_script_lang_js = (VAMapMassMarksvue_type_script_lang_js);
1187
+ ;// CONCATENATED MODULE: ./src/Components/VAMapMassMarks.vue
1191
1188
  var VAMapMassMarks_render, VAMapMassMarks_staticRenderFns
1192
-
1189
+ ;
1193
1190
 
1194
1191
 
1195
1192
 
1196
1193
  /* normalize component */
1197
-
1194
+ ;
1198
1195
  var VAMapMassMarks_component = normalizeComponent(
1199
- Components_VAMapMassMarksvue_type_script_lang_js_,
1196
+ Components_VAMapMassMarksvue_type_script_lang_js,
1200
1197
  VAMapMassMarks_render,
1201
1198
  VAMapMassMarks_staticRenderFns,
1202
1199
  false,
@@ -1207,7 +1204,7 @@ var VAMapMassMarks_component = normalizeComponent(
1207
1204
  )
1208
1205
 
1209
1206
  /* harmony default export */ var VAMapMassMarks = (VAMapMassMarks_component.exports);
1210
- // 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&
1207
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPolygon.vue?vue&type=script&lang=js
1211
1208
 
1212
1209
 
1213
1210
 
@@ -1289,15 +1286,17 @@ const VAMapPolygonvue_type_script_lang_js_watchedProps = [
1289
1286
  ]
1290
1287
  ]
1291
1288
 
1292
- /* harmony default export */ var VAMapPolygonvue_type_script_lang_js_ = ({
1289
+ /* harmony default export */ var VAMapPolygonvue_type_script_lang_js = ({
1293
1290
  name: 'VAMapPolygon',
1291
+ inject: ['getMap'],
1294
1292
  data() {
1295
1293
  return {
1296
1294
  marker: null
1297
1295
  }
1298
1296
  },
1299
- created() {
1300
- this._createMarker()
1297
+ async created() {
1298
+ await this._createMarker()
1299
+ this._addMarker()
1301
1300
  },
1302
1301
  destroyed() {
1303
1302
  this._removeMarker()
@@ -1313,21 +1312,16 @@ const VAMapPolygonvue_type_script_lang_js_watchedProps = [
1313
1312
 
1314
1313
  utils_listenerProxy(this.marker, this)
1315
1314
  utils_watchProps(this.marker, this, VAMapPolygonvue_type_script_lang_js_watchedProps)
1316
-
1317
- this._addMarker()
1318
1315
  },
1319
1316
  _addMarker() {
1320
- if (!this.$parent.addMarker) return
1321
-
1322
- this.$parent.addMarker(this.marker)
1317
+ this.getMap()?.add(this.marker)
1323
1318
 
1324
1319
  this.$emit('init', this.marker)
1325
1320
  },
1326
1321
  _removeMarker() {
1327
1322
  if (!this.marker) return
1328
- if (!this.$parent.removeMarker) return
1329
1323
 
1330
- this.$parent.removeMarker(this.marker)
1324
+ this.getMap()?.remove(this.marker)
1331
1325
  }
1332
1326
  },
1333
1327
  render() {
@@ -1335,18 +1329,18 @@ const VAMapPolygonvue_type_script_lang_js_watchedProps = [
1335
1329
  }
1336
1330
  });
1337
1331
 
1338
- // CONCATENATED MODULE: ./src/Components/VAMapPolygon.vue?vue&type=script&lang=js&
1339
- /* harmony default export */ var Components_VAMapPolygonvue_type_script_lang_js_ = (VAMapPolygonvue_type_script_lang_js_);
1340
- // CONCATENATED MODULE: ./src/Components/VAMapPolygon.vue
1332
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPolygon.vue?vue&type=script&lang=js
1333
+ /* harmony default export */ var Components_VAMapPolygonvue_type_script_lang_js = (VAMapPolygonvue_type_script_lang_js);
1334
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPolygon.vue
1341
1335
  var VAMapPolygon_render, VAMapPolygon_staticRenderFns
1342
-
1336
+ ;
1343
1337
 
1344
1338
 
1345
1339
 
1346
1340
  /* normalize component */
1347
-
1341
+ ;
1348
1342
  var VAMapPolygon_component = normalizeComponent(
1349
- Components_VAMapPolygonvue_type_script_lang_js_,
1343
+ Components_VAMapPolygonvue_type_script_lang_js,
1350
1344
  VAMapPolygon_render,
1351
1345
  VAMapPolygon_staticRenderFns,
1352
1346
  false,
@@ -1357,19 +1351,17 @@ var VAMapPolygon_component = normalizeComponent(
1357
1351
  )
1358
1352
 
1359
1353
  /* harmony default export */ var VAMapPolygon = (VAMapPolygon_component.exports);
1360
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3762daea-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&
1354
+ ;// 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
1361
1355
  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}})])
1362
1356
  }
1363
1357
  var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_staticRenderFns = []
1364
1358
 
1365
1359
 
1366
- // CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=template&id=57fd4556&scoped=true&lang=pug&
1367
-
1368
- // 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&
1360
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js
1369
1361
 
1370
1362
 
1371
1363
 
1372
- /* harmony default export */ var VAMapPlaceSearchInputvue_type_script_lang_js_ = ({
1364
+ /* harmony default export */ var VAMapPlaceSearchInputvue_type_script_lang_js = ({
1373
1365
  name: 'VAMapPlaceSearchInput',
1374
1366
  props: {
1375
1367
  placeholder: {
@@ -1441,26 +1433,28 @@ var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_stat
1441
1433
  }
1442
1434
  });
1443
1435
 
1444
- // CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js&
1445
- /* harmony default export */ var Components_VAMapPlaceSearchInputvue_type_script_lang_js_ = (VAMapPlaceSearchInputvue_type_script_lang_js_);
1446
- // EXTERNAL MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true&
1447
- var VAMapPlaceSearchInputvue_type_style_index_0_id_57fd4556_prod_lang_stylus_scoped_true_ = __webpack_require__("61d4");
1448
-
1449
- // EXTERNAL MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus&
1450
- var VAMapPlaceSearchInputvue_type_style_index_1_id_57fd4556_prod_lang_stylus_ = __webpack_require__("fcc8");
1436
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js
1437
+ /* harmony default export */ var Components_VAMapPlaceSearchInputvue_type_script_lang_js = (VAMapPlaceSearchInputvue_type_script_lang_js);
1438
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-76.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
1439
+ var VAMapPlaceSearchInputvue_type_style_index_0_id_57fd4556_prod_lang_stylus_scoped_true = __webpack_require__(510);
1440
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true
1451
1441
 
1452
- // CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue
1442
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-76.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
1443
+ var VAMapPlaceSearchInputvue_type_style_index_1_id_57fd4556_prod_lang_stylus = __webpack_require__(12);
1444
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus
1453
1445
 
1446
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue
1454
1447
 
1455
1448
 
1456
1449
 
1450
+ ;
1457
1451
 
1458
1452
 
1459
1453
 
1460
1454
  /* normalize component */
1461
1455
 
1462
1456
  var VAMapPlaceSearchInput_component = normalizeComponent(
1463
- Components_VAMapPlaceSearchInputvue_type_script_lang_js_,
1457
+ Components_VAMapPlaceSearchInputvue_type_script_lang_js,
1464
1458
  VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_render,
1465
1459
  VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_staticRenderFns,
1466
1460
  false,
@@ -1471,7 +1465,7 @@ var VAMapPlaceSearchInput_component = normalizeComponent(
1471
1465
  )
1472
1466
 
1473
1467
  /* harmony default export */ var VAMapPlaceSearchInput = (VAMapPlaceSearchInput_component.exports);
1474
- // CONCATENATED MODULE: ./src/Components/index.js
1468
+ ;// CONCATENATED MODULE: ./src/Components/index.js
1475
1469
 
1476
1470
 
1477
1471
 
@@ -1486,13 +1480,24 @@ var VAMapPlaceSearchInput_component = normalizeComponent(
1486
1480
  VAMapPlaceSearchInput
1487
1481
  ]);
1488
1482
 
1489
- // CONCATENATED MODULE: ./src/index.js
1483
+ ;// CONCATENATED MODULE: ./src/config/index.js
1484
+ const version = '1.1.0'
1485
+
1486
+ /* harmony default export */ var config = ({
1487
+ version
1488
+ });
1489
+
1490
+ ;// CONCATENATED MODULE: ./src/index.js
1491
+
1490
1492
 
1491
1493
 
1492
1494
 
1493
1495
  let globalMapOptions = {}
1494
1496
 
1495
- class src_AMapManager {
1497
+ class AMapManager {
1498
+ static get version() {
1499
+ return version
1500
+ }
1496
1501
  static get AMapLoader() {
1497
1502
  return loader
1498
1503
  }
@@ -1516,28 +1521,18 @@ class src_AMapManager {
1516
1521
 
1517
1522
 
1518
1523
 
1519
- /* harmony default export */ var src_0 = (src_AMapManager);
1520
-
1521
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
1522
-
1523
-
1524
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_0);
1525
-
1524
+ /* harmony default export */ var src_0 = (AMapManager);
1526
1525
 
1526
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
1527
1527
 
1528
- /***/ }),
1529
-
1530
- /***/ "fcc8":
1531
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1532
-
1533
- "use strict";
1534
- /* 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");
1535
- /* 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__);
1536
- /* unused harmony reexport * */
1537
1528
 
1529
+ /* harmony default export */ var entry_lib = (src_0);
1538
1530
 
1539
- /***/ })
1540
1531
 
1541
- /******/ })["default"];
1532
+ }();
1533
+ __webpack_exports__ = __webpack_exports__["default"];
1534
+ /******/ return __webpack_exports__;
1535
+ /******/ })()
1536
+ ;
1542
1537
  });
1543
1538
  //# sourceMappingURL=vue-amap.umd.js.map