@das-fed/ui 6.4.0-dev.55.20 → 6.4.0-dev.55.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/packages/business-components/device-panel/index.js +36969 -36718
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +0 -2
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +1 -6
- package/packages/business-components/import-button/index.js +121 -122
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/process-form/index.js +64 -63
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-search-form/index.js +56 -56
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +3 -3
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.js +14 -14
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/map/index.js +219 -219
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/map/style.css';
|
|
2
|
-
import { ref as S, defineComponent as Ae, shallowRef as I, computed as Se, onMounted as Oe, openBlock as Te, createElementBlock as
|
|
2
|
+
import { ref as S, defineComponent as Ae, shallowRef as I, computed as Se, onMounted as Oe, openBlock as Te, createElementBlock as $e, normalizeStyle as je, createElementVNode as W, withDirectives as Z, createVNode as de, unref as D, withKeys as Le, h as Qt, render as ea, isRef as ta, vShow as Fe, withCtx as aa, createTextVNode as oa, toDisplayString as ra } from "vue";
|
|
3
3
|
import { withInstall as Ee } from "@das-fed/utils/with-install/index";
|
|
4
4
|
import { ElAutocomplete as Pe, ElLoadingDirective as ke } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
@@ -16,23 +16,23 @@ const Q = (e) => {
|
|
|
16
16
|
}, st = ({ MapGL: e, map: t, marker: a, mapLoading: n, $autocomplete: u, searchResultList: l, innerInput: r, innerPoint: o, adCode: s, addressInfo: v }, b) => {
|
|
17
17
|
const C = S();
|
|
18
18
|
let M;
|
|
19
|
-
const k = (
|
|
19
|
+
const k = (T, g, p, w) => {
|
|
20
20
|
C.value = p, w && (M = w);
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
21
|
+
const j = document.createElement("script");
|
|
22
|
+
if (j.src = `${location.protocol}//webapi.amap.com/maps?v=1.4.15&key=${T}&plugin=AMap.CitySearch&callback=onLoad`, g) {
|
|
23
23
|
const d = document.createElement("script");
|
|
24
24
|
d.innerHTML = `window._AMapSecurityConfig = {
|
|
25
25
|
securityJsCode: "${g}",
|
|
26
26
|
}`, document.head.appendChild(d);
|
|
27
27
|
}
|
|
28
|
-
document.head.appendChild(
|
|
29
|
-
|
|
28
|
+
document.head.appendChild(j), window.onLoad = () => {
|
|
29
|
+
L();
|
|
30
30
|
};
|
|
31
|
-
},
|
|
32
|
-
var
|
|
31
|
+
}, L = () => {
|
|
32
|
+
var T, g;
|
|
33
33
|
if (e.value = AMap, !(typeof e.value > "u")) {
|
|
34
34
|
try {
|
|
35
|
-
const p = ((
|
|
35
|
+
const p = ((T = C.value) == null ? void 0 : T.mapOpt) ?? {};
|
|
36
36
|
t.value = new AMap.Map("map", {
|
|
37
37
|
zoom: 15,
|
|
38
38
|
...p
|
|
@@ -51,8 +51,8 @@ const Q = (e) => {
|
|
|
51
51
|
}), i(), (g = C.value) != null && g.clickStream || c(), n.value = !1, M && M();
|
|
52
52
|
}
|
|
53
53
|
}, c = () => {
|
|
54
|
-
t.value.on("click", (
|
|
55
|
-
a.value && t.value.remove(a.value), o.value = [
|
|
54
|
+
t.value.on("click", (T) => {
|
|
55
|
+
a.value && t.value.remove(a.value), o.value = [T.lnglat.getLng(), T.lnglat.getLat()], h(o.value, !0).then(() => {
|
|
56
56
|
a.value = new AMap.Marker({
|
|
57
57
|
position: o.value,
|
|
58
58
|
title: r.value
|
|
@@ -60,7 +60,7 @@ const Q = (e) => {
|
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
}, i = async () => {
|
|
63
|
-
!r.value && !o.value.length &&
|
|
63
|
+
!r.value && !o.value.length && R(), r.value && o.value.length > 0 ? await h(o.value) : r.value ? await A(r.value) : o.value.length > 0 && await h(o.value, !0), r.value && _(r.value, (T, g) => {
|
|
64
64
|
if (g && g.length) {
|
|
65
65
|
const p = g.find(
|
|
66
66
|
(w) => w.value === r.value || w.info.name === r.value
|
|
@@ -75,9 +75,9 @@ const Q = (e) => {
|
|
|
75
75
|
position: o.value,
|
|
76
76
|
title: r.value
|
|
77
77
|
}), t.value.add(a.value), o.value.length && t.value.setCenter(o.value);
|
|
78
|
-
}, h = (
|
|
79
|
-
const p =
|
|
80
|
-
return new Promise((w,
|
|
78
|
+
}, h = (T, g = !1) => {
|
|
79
|
+
const p = T.join(",");
|
|
80
|
+
return new Promise((w, j) => {
|
|
81
81
|
AMap.service("AMap.Geocoder", () => {
|
|
82
82
|
new AMap.Geocoder({
|
|
83
83
|
city: "全国"
|
|
@@ -85,33 +85,33 @@ const Q = (e) => {
|
|
|
85
85
|
var x, m;
|
|
86
86
|
if (f === "complete" && (y != null && y.regeocode)) {
|
|
87
87
|
if (g) {
|
|
88
|
-
const { province:
|
|
88
|
+
const { province: O = "", city: N = "", district: B = "", township: ne = "" } = y.regeocode.addressComponent;
|
|
89
89
|
r.value = y.regeocode.formattedAddress ?? "", v.value = {
|
|
90
|
-
district:
|
|
90
|
+
district: O + N + B,
|
|
91
91
|
address: ne,
|
|
92
|
-
name: r.value.replace(
|
|
92
|
+
name: r.value.replace(O, "").replace(N, "").replace(B, "").replace(ne, "")
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
s.value = ((m = (x = y.regeocode) == null ? void 0 : x.addressComponent) == null ? void 0 : m.adcode) ?? "", w(y.regeocode);
|
|
96
96
|
} else
|
|
97
|
-
z.error(E("thirdPartyMapErrorRetry")),
|
|
97
|
+
z.error(E("thirdPartyMapErrorRetry")), j();
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
|
-
}, A = (
|
|
101
|
+
}, A = (T) => new Promise((g, p) => {
|
|
102
102
|
AMap.service("AMap.Geocoder", () => {
|
|
103
103
|
new AMap.Geocoder({
|
|
104
104
|
city: "全国"
|
|
105
|
-
}).getLocation(
|
|
105
|
+
}).getLocation(T, (j, d) => {
|
|
106
106
|
var f, y;
|
|
107
|
-
if (
|
|
107
|
+
if (j === "complete" && ((f = d.geocodes) != null && f.length)) {
|
|
108
108
|
const x = d.geocodes[0].location;
|
|
109
109
|
o.value[0] = x.lng, o.value[1] = x.lat, s.value = ((y = d.geocodes[0]) == null ? void 0 : y.adcode) ?? "", g(d.geocodes[0].location);
|
|
110
110
|
} else
|
|
111
111
|
z.error(E("thirdPartyMapErrorRetry")), p();
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
|
-
}),
|
|
114
|
+
}), R = () => {
|
|
115
115
|
new AMap.CitySearch().getLocalCity((g, p) => {
|
|
116
116
|
if (g === "complete" && p.info === "OK") {
|
|
117
117
|
if (p && p.city && p.bounds) {
|
|
@@ -121,8 +121,8 @@ const Q = (e) => {
|
|
|
121
121
|
} else
|
|
122
122
|
z.error(E("thirdPartyMapErrorRetry"));
|
|
123
123
|
});
|
|
124
|
-
}, _ = (
|
|
125
|
-
if (u.value.activated = !0, !
|
|
124
|
+
}, _ = (T, g) => {
|
|
125
|
+
if (u.value.activated = !0, !T) {
|
|
126
126
|
l.value = [], g([]);
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -130,19 +130,19 @@ const Q = (e) => {
|
|
|
130
130
|
var p = {
|
|
131
131
|
city: "全国"
|
|
132
132
|
}, w = new AMap.Autocomplete(p);
|
|
133
|
-
w.search(
|
|
133
|
+
w.search(T, function(j, d) {
|
|
134
134
|
if (l.value = [], !d || !d.tips) return g([]);
|
|
135
135
|
let f = d.tips;
|
|
136
136
|
if (!f || !f.length) return g([]);
|
|
137
137
|
f = f.map((y) => {
|
|
138
|
-
const { district: x = "", address: m = "", name:
|
|
138
|
+
const { district: x = "", address: m = "", name: O = "", location: N = "" } = y;
|
|
139
139
|
return {
|
|
140
|
-
value: x + m +
|
|
140
|
+
value: x + m + O,
|
|
141
141
|
point: N,
|
|
142
142
|
info: {
|
|
143
143
|
district: x,
|
|
144
144
|
address: m,
|
|
145
|
-
name:
|
|
145
|
+
name: O
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
}), l.value = f.length > 5 ? f.slice(0, 5) : f, g(l.value, f);
|
|
@@ -151,8 +151,8 @@ const Q = (e) => {
|
|
|
151
151
|
};
|
|
152
152
|
return {
|
|
153
153
|
getLocationByInputSearch: _,
|
|
154
|
-
handleSelectAddress: (
|
|
155
|
-
r.value =
|
|
154
|
+
handleSelectAddress: (T) => {
|
|
155
|
+
r.value = T.value, v.value = T.info, A(T.value).then((g) => {
|
|
156
156
|
o.value = [g.lng, g.lat], a.value && t.value.remove(a.value), a.value = new AMap.Marker({
|
|
157
157
|
position: o.value,
|
|
158
158
|
title: r.value
|
|
@@ -161,9 +161,9 @@ const Q = (e) => {
|
|
|
161
161
|
});
|
|
162
162
|
},
|
|
163
163
|
getLocationParse: async () => {
|
|
164
|
-
var
|
|
164
|
+
var T;
|
|
165
165
|
if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
|
|
166
|
-
if (r.value = l.value[0].value, !((
|
|
166
|
+
if (r.value = l.value[0].value, !((T = l.value[0]) != null && T.point))
|
|
167
167
|
return z.error(E("thirdPartyMapErrorRetry"));
|
|
168
168
|
o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, await h(o.value), a.value = new AMap.Marker({
|
|
169
169
|
position: o.value,
|
|
@@ -217,7 +217,7 @@ const Q = (e) => {
|
|
|
217
217
|
const a = e, n = I(null), u = I(null), l = I(null), r = S(!0), o = S(null), s = S([]), v = Se(() => ({
|
|
218
218
|
width: a.width ? Q(a.width) : "100%",
|
|
219
219
|
height: a.height ? Q(a.height) : "100%"
|
|
220
|
-
})), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch:
|
|
220
|
+
})), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = st(
|
|
221
221
|
{
|
|
222
222
|
MapGL: n,
|
|
223
223
|
map: u,
|
|
@@ -230,46 +230,46 @@ const Q = (e) => {
|
|
|
230
230
|
adCode: M,
|
|
231
231
|
addressInfo: k
|
|
232
232
|
}
|
|
233
|
-
),
|
|
233
|
+
), R = async () => {
|
|
234
234
|
const _ = {
|
|
235
235
|
akValue: a.akValue ?? "",
|
|
236
236
|
secretKey: a.secretKey ?? ""
|
|
237
237
|
};
|
|
238
238
|
{
|
|
239
|
-
const [
|
|
240
|
-
|
|
239
|
+
const [$, G] = await Ge("gaode");
|
|
240
|
+
$ && z.error(E("获取地图配置信息失败")), !$ && !G && z.error(E("暂未配置地图")), G && (_.akValue || (_.akValue = G.akVal), _.secretKey || (_.secretKey = G.secretK));
|
|
241
241
|
}
|
|
242
242
|
return _;
|
|
243
243
|
};
|
|
244
244
|
return Oe(async () => {
|
|
245
245
|
a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
|
|
246
|
-
const { akValue: _, secretKey:
|
|
247
|
-
A(_,
|
|
246
|
+
const { akValue: _, secretKey: $ } = await R();
|
|
247
|
+
A(_, $);
|
|
248
248
|
}), t({
|
|
249
249
|
/** 获取经纬度、地址、行政区划编码 */
|
|
250
250
|
getMapInfo: h
|
|
251
|
-
}), (_,
|
|
252
|
-
const
|
|
253
|
-
return Te(),
|
|
251
|
+
}), (_, $) => {
|
|
252
|
+
const G = Pe, U = ke;
|
|
253
|
+
return Te(), $e(
|
|
254
254
|
"div",
|
|
255
255
|
{
|
|
256
256
|
class: "das-map",
|
|
257
|
-
style:
|
|
257
|
+
style: je(v.value)
|
|
258
258
|
},
|
|
259
259
|
[
|
|
260
260
|
W("div", da, [
|
|
261
|
-
Z(de(
|
|
261
|
+
Z(de(G, {
|
|
262
262
|
ref_key: "$autocomplete",
|
|
263
263
|
ref: o,
|
|
264
264
|
modelValue: b.value,
|
|
265
|
-
"onUpdate:modelValue":
|
|
265
|
+
"onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
|
|
266
266
|
modelModifiers: { trim: !0 },
|
|
267
|
-
"fetch-suggestions": D(
|
|
267
|
+
"fetch-suggestions": D(L),
|
|
268
268
|
placeholder: D(E)("请输入位置"),
|
|
269
269
|
style: { width: "100%" },
|
|
270
270
|
"trigger-on-focus": !1,
|
|
271
271
|
onSelect: D(c),
|
|
272
|
-
onKeyup:
|
|
272
|
+
onKeyup: Le(D(i), ["enter", "native"]),
|
|
273
273
|
clearable: ""
|
|
274
274
|
}, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
|
|
275
275
|
[D(Re)]
|
|
@@ -283,7 +283,7 @@ const Q = (e) => {
|
|
|
283
283
|
/* NEED_PATCH */
|
|
284
284
|
), [
|
|
285
285
|
[
|
|
286
|
-
|
|
286
|
+
U,
|
|
287
287
|
r.value,
|
|
288
288
|
void 0,
|
|
289
289
|
{ lock: !0 }
|
|
@@ -305,11 +305,11 @@ const Q = (e) => {
|
|
|
305
305
|
let M;
|
|
306
306
|
const k = (g, p, w) => {
|
|
307
307
|
C.value = p, w && (M = w);
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}, document.body.append(
|
|
312
|
-
},
|
|
308
|
+
const j = document.createElement("script");
|
|
309
|
+
j.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${g}&services=&t=20200109192240`, j.onload = () => {
|
|
310
|
+
L();
|
|
311
|
+
}, document.body.append(j);
|
|
312
|
+
}, L = () => {
|
|
313
313
|
var p, w;
|
|
314
314
|
e.value = window.BMapGL;
|
|
315
315
|
try {
|
|
@@ -329,10 +329,10 @@ const Q = (e) => {
|
|
|
329
329
|
!d || JSON.stringify(d) == "{}" ? (z.error(E("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
|
|
330
330
|
});
|
|
331
331
|
}), i = async () => {
|
|
332
|
-
!r.value && !o.value.length &&
|
|
332
|
+
!r.value && !o.value.length && R(), r.value && o.value.length > 0 ? await A(o.value[0], o.value[1]) : r.value ? await c(r.value) : o.value.length > 0 && await A(o.value[0], o.value[1], !0), r.value && _(r.value, (g, p) => {
|
|
333
333
|
if (p && p.length) {
|
|
334
334
|
const w = p.find(
|
|
335
|
-
(
|
|
335
|
+
(j) => j.value === r.value || j.info.name === r.value
|
|
336
336
|
);
|
|
337
337
|
w ? v.value = w.info : v.value = {
|
|
338
338
|
province: "",
|
|
@@ -348,28 +348,28 @@ const Q = (e) => {
|
|
|
348
348
|
const p = g.latlng.lng, w = g.latlng.lat;
|
|
349
349
|
o.value = [p, w], A(p, w, !0);
|
|
350
350
|
});
|
|
351
|
-
}, A = (g, p, w = !1,
|
|
351
|
+
}, A = (g, p, w = !1, j = "default") => new Promise((d, f) => {
|
|
352
352
|
const y = new e.value.Geocoder(), x = new e.value.Point(g, p);
|
|
353
353
|
y.getLocation(x, (m) => {
|
|
354
354
|
if (w) {
|
|
355
355
|
r.value = m.address;
|
|
356
|
-
const { province:
|
|
356
|
+
const { province: O = "", city: N = "", district: B = "" } = m.addressComponents;
|
|
357
357
|
v.value = {
|
|
358
|
-
province:
|
|
358
|
+
province: O,
|
|
359
359
|
city: N,
|
|
360
|
-
address: N +
|
|
361
|
-
name: m.address.replace(
|
|
360
|
+
address: N + B,
|
|
361
|
+
name: m.address.replace(O, "").replace(N, "").replace(B, "")
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
m && m.address ? (
|
|
364
|
+
m && m.address ? (j == "default" && (o.value[0] = m.point.lng, o.value[1] = m.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(x, { title: r.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(x, 16)), U(g, p), d(m.address)) : (z.error(E("thirdPartyMapErrorRetry")), f());
|
|
365
365
|
});
|
|
366
|
-
}),
|
|
366
|
+
}), R = () => {
|
|
367
367
|
new e.value.LocalCity().get((p) => {
|
|
368
368
|
const w = p.center;
|
|
369
369
|
if (!p.center) return z.error(E("thirdPartyMapErrorRetry"));
|
|
370
370
|
a.value && t.value.clearOverlays();
|
|
371
|
-
const
|
|
372
|
-
t.value.centerAndZoom(
|
|
371
|
+
const j = new e.value.Point(w.lng, w.lat);
|
|
372
|
+
t.value.centerAndZoom(j, 13);
|
|
373
373
|
});
|
|
374
374
|
}, _ = (g, p) => {
|
|
375
375
|
if (u.value.activated = !0, l.value = [], !g) {
|
|
@@ -377,19 +377,19 @@ const Q = (e) => {
|
|
|
377
377
|
return;
|
|
378
378
|
}
|
|
379
379
|
new e.value.LocalSearch(t.value, {
|
|
380
|
-
onSearchComplete: (
|
|
380
|
+
onSearchComplete: (j) => {
|
|
381
381
|
let d = [];
|
|
382
|
-
for (let f = 0; f <
|
|
383
|
-
d.push(
|
|
382
|
+
for (let f = 0; f < j.getCurrentNumPois(); f++)
|
|
383
|
+
d.push(j.getPoi(f));
|
|
384
384
|
if (!d.length) return p([]);
|
|
385
385
|
d = d.map((f) => {
|
|
386
|
-
const { address: y = "", title: x = "", province: m = "", city:
|
|
386
|
+
const { address: y = "", title: x = "", province: m = "", city: O = "", point: N = {} } = f;
|
|
387
387
|
return {
|
|
388
388
|
value: y == x ? y : y + x,
|
|
389
389
|
point: N,
|
|
390
390
|
info: {
|
|
391
391
|
province: m,
|
|
392
|
-
city:
|
|
392
|
+
city: O,
|
|
393
393
|
address: y,
|
|
394
394
|
name: x
|
|
395
395
|
}
|
|
@@ -397,23 +397,23 @@ const Q = (e) => {
|
|
|
397
397
|
}), l.value = d.length > 5 ? d.slice(0, 5) : d, p(l.value, d);
|
|
398
398
|
}
|
|
399
399
|
}).search(g);
|
|
400
|
-
},
|
|
400
|
+
}, $ = (g) => {
|
|
401
401
|
var p, w;
|
|
402
402
|
r.value = g.value, v.value = g.info, A((p = g.point) == null ? void 0 : p.lng, (w = g.point) == null ? void 0 : w.lat);
|
|
403
|
-
},
|
|
403
|
+
}, G = () => {
|
|
404
404
|
var g;
|
|
405
405
|
if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
|
|
406
406
|
if (r.value = l.value[0].value, v.value = l.value[0].info, !((g = l.value[0]) != null && g.point))
|
|
407
407
|
return z.error(E("thirdPartyMapErrorRetry"));
|
|
408
408
|
o.value = [l.value[0].point.lng, l.value[0].point.lat], A(o.value[0], o.value[1]), u.value.activated = !1;
|
|
409
|
-
},
|
|
410
|
-
const [w,
|
|
411
|
-
w || (s.value =
|
|
409
|
+
}, U = async (g, p) => {
|
|
410
|
+
const [w, j] = await ca().run({ longitude: g, latitude: p });
|
|
411
|
+
w || (s.value = j.areaCode);
|
|
412
412
|
};
|
|
413
413
|
return {
|
|
414
414
|
getLocationByInputSearch: _,
|
|
415
|
-
handleSelectAddress:
|
|
416
|
-
getLocationParse:
|
|
415
|
+
handleSelectAddress: $,
|
|
416
|
+
getLocationParse: G,
|
|
417
417
|
getMapInfo: () => ({
|
|
418
418
|
longitude: o.value[0],
|
|
419
419
|
latitude: o.value[1],
|
|
@@ -439,7 +439,7 @@ const Q = (e) => {
|
|
|
439
439
|
const a = e, n = I(null), u = I(null), l = I(null), r = S(!0), o = S(null), s = S([]), v = Se(() => ({
|
|
440
440
|
width: a.width ? Q(a.width) : "100%",
|
|
441
441
|
height: a.height ? Q(a.height) : "100%"
|
|
442
|
-
})), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch:
|
|
442
|
+
})), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = ft(
|
|
443
443
|
{
|
|
444
444
|
BMap: n,
|
|
445
445
|
map: u,
|
|
@@ -452,40 +452,40 @@ const Q = (e) => {
|
|
|
452
452
|
adCode: M,
|
|
453
453
|
addressInfo: k
|
|
454
454
|
}
|
|
455
|
-
),
|
|
455
|
+
), R = async () => {
|
|
456
456
|
if (a.akValue) return a.akValue;
|
|
457
|
-
const [_,
|
|
458
|
-
return _ ? (z.error(E("获取地图配置信息失败")), "") : !_ &&
|
|
457
|
+
const [_, $] = await Ge("baidu");
|
|
458
|
+
return _ ? (z.error(E("获取地图配置信息失败")), "") : !_ && !$ ? (z.error(E("暂未配置地图")), "") : $.akVal;
|
|
459
459
|
};
|
|
460
460
|
return Oe(async () => {
|
|
461
461
|
a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
|
|
462
|
-
const _ = await
|
|
462
|
+
const _ = await R();
|
|
463
463
|
A(_);
|
|
464
464
|
}), t({
|
|
465
465
|
// 获取经纬度、地址、行政区划信息
|
|
466
466
|
getMapInfo: h
|
|
467
|
-
}), (_,
|
|
468
|
-
const
|
|
469
|
-
return Te(),
|
|
467
|
+
}), (_, $) => {
|
|
468
|
+
const G = Pe, U = ke;
|
|
469
|
+
return Te(), $e(
|
|
470
470
|
"div",
|
|
471
471
|
{
|
|
472
472
|
class: "das-map",
|
|
473
|
-
style:
|
|
473
|
+
style: je(v.value)
|
|
474
474
|
},
|
|
475
475
|
[
|
|
476
476
|
W("div", pa, [
|
|
477
|
-
Z(de(
|
|
477
|
+
Z(de(G, {
|
|
478
478
|
ref_key: "$autocomplete",
|
|
479
479
|
ref: o,
|
|
480
480
|
modelValue: b.value,
|
|
481
|
-
"onUpdate:modelValue":
|
|
481
|
+
"onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
|
|
482
482
|
modelModifiers: { trim: !0 },
|
|
483
|
-
"fetch-suggestions": D(
|
|
483
|
+
"fetch-suggestions": D(L),
|
|
484
484
|
placeholder: D(E)("请输入位置"),
|
|
485
485
|
style: { width: "100%" },
|
|
486
486
|
"trigger-on-focus": !1,
|
|
487
487
|
onSelect: D(c),
|
|
488
|
-
onKeyup:
|
|
488
|
+
onKeyup: Le(D(i), ["enter", "native"]),
|
|
489
489
|
clearable: ""
|
|
490
490
|
}, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
|
|
491
491
|
[D(Re)]
|
|
@@ -499,7 +499,7 @@ const Q = (e) => {
|
|
|
499
499
|
/* NEED_PATCH */
|
|
500
500
|
), [
|
|
501
501
|
[
|
|
502
|
-
|
|
502
|
+
U,
|
|
503
503
|
r.value,
|
|
504
504
|
void 0,
|
|
505
505
|
{ lock: !0 }
|
|
@@ -565,12 +565,12 @@ function Oa(e) {
|
|
|
565
565
|
function Ta(e) {
|
|
566
566
|
return this.__data__.get(e);
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function $a(e) {
|
|
569
569
|
return this.__data__.has(e);
|
|
570
570
|
}
|
|
571
|
-
var vt = typeof global == "object" && global && global.Object === Object && global,
|
|
571
|
+
var vt = typeof global == "object" && global && global.Object === Object && global, ja = typeof self == "object" && self && self.Object === Object && self, te = vt || ja || Function("return this")(), ee = te.Symbol, gt = Object.prototype, La = gt.hasOwnProperty, Ea = gt.toString, ue = ee ? ee.toStringTag : void 0;
|
|
572
572
|
function Pa(e) {
|
|
573
|
-
var t =
|
|
573
|
+
var t = La.call(e, ue), a = e[ue];
|
|
574
574
|
try {
|
|
575
575
|
e[ue] = void 0;
|
|
576
576
|
var n = !0;
|
|
@@ -591,12 +591,12 @@ function Y(e) {
|
|
|
591
591
|
var t = typeof e;
|
|
592
592
|
return e != null && (t == "object" || t == "function");
|
|
593
593
|
}
|
|
594
|
-
var za = "[object AsyncFunction]", Na = "[object Function]",
|
|
594
|
+
var za = "[object AsyncFunction]", Na = "[object Function]", Ua = "[object GeneratorFunction]", Va = "[object Proxy]";
|
|
595
595
|
function De(e) {
|
|
596
596
|
if (!Y(e))
|
|
597
597
|
return !1;
|
|
598
598
|
var t = se(e);
|
|
599
|
-
return t == Na || t ==
|
|
599
|
+
return t == Na || t == Ua || t == za || t == Va;
|
|
600
600
|
}
|
|
601
601
|
var me = te["__core-js_shared__"], Ie = function() {
|
|
602
602
|
var e = /[^.]+$/.exec(me && me.keys && me.keys.IE_PROTO || "");
|
|
@@ -733,7 +733,7 @@ function oe(e) {
|
|
|
733
733
|
oe.prototype.clear = Sa;
|
|
734
734
|
oe.prototype.delete = Oa;
|
|
735
735
|
oe.prototype.get = Ta;
|
|
736
|
-
oe.prototype.has =
|
|
736
|
+
oe.prototype.has = $a;
|
|
737
737
|
oe.prototype.set = wo;
|
|
738
738
|
var fe = function() {
|
|
739
739
|
try {
|
|
@@ -783,7 +783,7 @@ function To(e, t) {
|
|
|
783
783
|
t[a] = e[a];
|
|
784
784
|
return t;
|
|
785
785
|
}
|
|
786
|
-
var We = Object.create,
|
|
786
|
+
var We = Object.create, $o = /* @__PURE__ */ function() {
|
|
787
787
|
function e() {
|
|
788
788
|
}
|
|
789
789
|
return function(t) {
|
|
@@ -796,18 +796,18 @@ var We = Object.create, jo = /* @__PURE__ */ function() {
|
|
|
796
796
|
return e.prototype = void 0, a;
|
|
797
797
|
};
|
|
798
798
|
}();
|
|
799
|
-
function
|
|
799
|
+
function jo(e, t) {
|
|
800
800
|
return function(a) {
|
|
801
801
|
return e(t(a));
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
|
-
var yt =
|
|
804
|
+
var yt = jo(Object.getPrototypeOf, Object), Lo = Object.prototype;
|
|
805
805
|
function mt(e) {
|
|
806
|
-
var t = e && e.constructor, a = typeof t == "function" && t.prototype ||
|
|
806
|
+
var t = e && e.constructor, a = typeof t == "function" && t.prototype || Lo;
|
|
807
807
|
return e === a;
|
|
808
808
|
}
|
|
809
809
|
function Eo(e) {
|
|
810
|
-
return typeof e.constructor == "function" && !mt(e) ?
|
|
810
|
+
return typeof e.constructor == "function" && !mt(e) ? $o(yt(e)) : {};
|
|
811
811
|
}
|
|
812
812
|
function re(e) {
|
|
813
813
|
return e != null && typeof e == "object";
|
|
@@ -824,18 +824,18 @@ var bt = Object.prototype, ko = bt.hasOwnProperty, Ro = bt.propertyIsEnumerable,
|
|
|
824
824
|
function _t(e) {
|
|
825
825
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Go;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Ue(e) {
|
|
828
828
|
return e != null && _t(e.length) && !De(e);
|
|
829
829
|
}
|
|
830
830
|
function Bo(e) {
|
|
831
|
-
return re(e) &&
|
|
831
|
+
return re(e) && Ue(e);
|
|
832
832
|
}
|
|
833
833
|
function Do() {
|
|
834
834
|
return !1;
|
|
835
835
|
}
|
|
836
|
-
var wt = typeof exports == "object" && exports && !exports.nodeType && exports, Ye = wt && typeof module == "object" && module && !module.nodeType && module, zo = Ye && Ye.exports === wt, Xe = zo ? te.Buffer : void 0, No = Xe ? Xe.isBuffer : void 0, Mt = No || Do,
|
|
836
|
+
var wt = typeof exports == "object" && exports && !exports.nodeType && exports, Ye = wt && typeof module == "object" && module && !module.nodeType && module, zo = Ye && Ye.exports === wt, Xe = zo ? te.Buffer : void 0, No = Xe ? Xe.isBuffer : void 0, Mt = No || Do, Uo = "[object Object]", Vo = Function.prototype, Fo = Object.prototype, xt = Vo.toString, Ko = Fo.hasOwnProperty, Io = xt.call(Object);
|
|
837
837
|
function Ho(e) {
|
|
838
|
-
if (!re(e) || se(e) !=
|
|
838
|
+
if (!re(e) || se(e) != Uo)
|
|
839
839
|
return !1;
|
|
840
840
|
var t = yt(e);
|
|
841
841
|
if (t === null)
|
|
@@ -906,17 +906,17 @@ function Tr(e) {
|
|
|
906
906
|
t.push(a);
|
|
907
907
|
return t;
|
|
908
908
|
}
|
|
909
|
-
var
|
|
910
|
-
function
|
|
909
|
+
var $r = Object.prototype, jr = $r.hasOwnProperty;
|
|
910
|
+
function Lr(e) {
|
|
911
911
|
if (!Y(e))
|
|
912
912
|
return Tr(e);
|
|
913
913
|
var t = mt(e), a = [];
|
|
914
914
|
for (var n in e)
|
|
915
|
-
n == "constructor" && (t || !
|
|
915
|
+
n == "constructor" && (t || !jr.call(e, n)) || a.push(n);
|
|
916
916
|
return a;
|
|
917
917
|
}
|
|
918
918
|
function Ot(e) {
|
|
919
|
-
return
|
|
919
|
+
return Ue(e) ? Or(e) : Lr(e);
|
|
920
920
|
}
|
|
921
921
|
function Er(e) {
|
|
922
922
|
return xr(e, Ot(e));
|
|
@@ -929,8 +929,8 @@ function Pr(e, t, a, n, u, l, r) {
|
|
|
929
929
|
}
|
|
930
930
|
var b = l ? l(o, s, a + "", e, t, r) : void 0, C = b === void 0;
|
|
931
931
|
if (C) {
|
|
932
|
-
var M = ve(s), k = !M && Mt(s),
|
|
933
|
-
b = s, M || k ||
|
|
932
|
+
var M = ve(s), k = !M && Mt(s), L = !M && !k && At(s);
|
|
933
|
+
b = s, M || k || L ? ve(o) ? b = o : Bo(o) ? b = To(o) : k ? (C = !1, b = Ao(s)) : L ? (C = !1, b = Oo(s)) : b = [] : Ho(s) || we(s) ? (b = o, we(o) ? b = Er(o) : (!Y(o) || De(o)) && (b = Eo(s))) : C = !1;
|
|
934
934
|
}
|
|
935
935
|
C && (r.set(s, b), u(b, s, n, l, r), r.delete(s)), _e(e, a, b);
|
|
936
936
|
}
|
|
@@ -944,7 +944,7 @@ function Tt(e, t, a, n, u) {
|
|
|
944
944
|
}
|
|
945
945
|
}, Ot);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function $t(e) {
|
|
948
948
|
return e;
|
|
949
949
|
}
|
|
950
950
|
function kr(e, t, a) {
|
|
@@ -983,8 +983,8 @@ var Br = fe ? function(e, t) {
|
|
|
983
983
|
value: Gr(t),
|
|
984
984
|
writable: !0
|
|
985
985
|
});
|
|
986
|
-
} :
|
|
987
|
-
function
|
|
986
|
+
} : $t, Dr = 800, zr = 16, Nr = Date.now;
|
|
987
|
+
function Ur(e) {
|
|
988
988
|
var t = 0, a = 0;
|
|
989
989
|
return function() {
|
|
990
990
|
var n = Nr(), u = zr - (n - a);
|
|
@@ -996,15 +996,15 @@ function Vr(e) {
|
|
|
996
996
|
return e.apply(void 0, arguments);
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
|
-
var
|
|
999
|
+
var Vr = Ur(Br);
|
|
1000
1000
|
function Fr(e, t) {
|
|
1001
|
-
return
|
|
1001
|
+
return Vr(Rr(e, t, $t), e + "");
|
|
1002
1002
|
}
|
|
1003
1003
|
function Kr(e, t, a) {
|
|
1004
1004
|
if (!Y(a))
|
|
1005
1005
|
return !1;
|
|
1006
1006
|
var n = typeof t;
|
|
1007
|
-
return (n == "number" ?
|
|
1007
|
+
return (n == "number" ? Ue(a) && St(t, a.length) : n == "string" && t in a) ? ge(a[t], e) : !1;
|
|
1008
1008
|
}
|
|
1009
1009
|
function Ir(e) {
|
|
1010
1010
|
return Fr(function(t, a) {
|
|
@@ -1022,37 +1022,37 @@ var Hr = Ir(function(e, t, a, n) {
|
|
|
1022
1022
|
function Zr(e) {
|
|
1023
1023
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1024
1024
|
}
|
|
1025
|
-
var
|
|
1025
|
+
var jt = { exports: {} };
|
|
1026
1026
|
(function(e) {
|
|
1027
1027
|
(function(t, a) {
|
|
1028
1028
|
e.exports ? e.exports = a() : t.coordtransform = a();
|
|
1029
1029
|
})(Jr, function() {
|
|
1030
1030
|
var t = 52.35987755982988, a = 3.141592653589793, n = 6378245, u = 0.006693421622965943, l = function(c, i) {
|
|
1031
|
-
var c = +c, i = +i, h = c - 65e-4, A = i - 6e-3,
|
|
1032
|
-
return [
|
|
1031
|
+
var c = +c, i = +i, h = c - 65e-4, A = i - 6e-3, R = Math.sqrt(h * h + A * A) - 2e-5 * Math.sin(A * t), _ = Math.atan2(A, h) - 3e-6 * Math.cos(h * t), $ = R * Math.cos(_), G = R * Math.sin(_);
|
|
1032
|
+
return [$, G];
|
|
1033
1033
|
}, r = function(i, c) {
|
|
1034
|
-
var c = +c, i = +i, h = Math.sqrt(i * i + c * c) + 2e-5 * Math.sin(c * t), A = Math.atan2(c, i) + 3e-6 * Math.cos(i * t),
|
|
1035
|
-
return [
|
|
1034
|
+
var c = +c, i = +i, h = Math.sqrt(i * i + c * c) + 2e-5 * Math.sin(c * t), A = Math.atan2(c, i) + 3e-6 * Math.cos(i * t), R = h * Math.cos(A) + 65e-4, _ = h * Math.sin(A) + 6e-3;
|
|
1035
|
+
return [R, _];
|
|
1036
1036
|
}, o = function(i, c) {
|
|
1037
1037
|
var c = +c, i = +i;
|
|
1038
1038
|
if (C(i, c))
|
|
1039
1039
|
return [i, c];
|
|
1040
|
-
var h = v(i - 105, c - 35), A = b(i - 105, c - 35),
|
|
1040
|
+
var h = v(i - 105, c - 35), A = b(i - 105, c - 35), R = c / 180 * a, _ = Math.sin(R);
|
|
1041
1041
|
_ = 1 - u * _ * _;
|
|
1042
|
-
var
|
|
1043
|
-
h = h * 180 / (n * (1 - u) / (_ *
|
|
1044
|
-
var
|
|
1045
|
-
return [
|
|
1042
|
+
var $ = Math.sqrt(_);
|
|
1043
|
+
h = h * 180 / (n * (1 - u) / (_ * $) * a), A = A * 180 / (n / $ * Math.cos(R) * a);
|
|
1044
|
+
var G = c + h, U = i + A;
|
|
1045
|
+
return [U, G];
|
|
1046
1046
|
}, s = function(i, c) {
|
|
1047
1047
|
var c = +c, i = +i;
|
|
1048
1048
|
if (C(i, c))
|
|
1049
1049
|
return [i, c];
|
|
1050
|
-
var h = v(i - 105, c - 35), A = b(i - 105, c - 35),
|
|
1050
|
+
var h = v(i - 105, c - 35), A = b(i - 105, c - 35), R = c / 180 * a, _ = Math.sin(R);
|
|
1051
1051
|
_ = 1 - u * _ * _;
|
|
1052
|
-
var
|
|
1053
|
-
h = h * 180 / (n * (1 - u) / (_ *
|
|
1054
|
-
var
|
|
1055
|
-
return [i * 2 -
|
|
1052
|
+
var $ = Math.sqrt(_);
|
|
1053
|
+
h = h * 180 / (n * (1 - u) / (_ * $) * a), A = A * 180 / (n / $ * Math.cos(R) * a);
|
|
1054
|
+
var G = c + h, U = i + A;
|
|
1055
|
+
return [i * 2 - U, c * 2 - G];
|
|
1056
1056
|
}, v = function(i, c) {
|
|
1057
1057
|
var c = +c, i = +i, h = -100 + 2 * i + 3 * c + 0.2 * c * c + 0.1 * i * c + 0.2 * Math.sqrt(Math.abs(i));
|
|
1058
1058
|
return h += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, h += (20 * Math.sin(c * a) + 40 * Math.sin(c / 3 * a)) * 2 / 3, h += (160 * Math.sin(c / 12 * a) + 320 * Math.sin(c * a / 30)) * 2 / 3, h;
|
|
@@ -1070,9 +1070,9 @@ var Lt = { exports: {} };
|
|
|
1070
1070
|
gcj02towgs84: s
|
|
1071
1071
|
};
|
|
1072
1072
|
});
|
|
1073
|
-
})(
|
|
1074
|
-
var Wr =
|
|
1075
|
-
const
|
|
1073
|
+
})(jt);
|
|
1074
|
+
var Wr = jt.exports;
|
|
1075
|
+
const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) => {
|
|
1076
1076
|
const l = (r, o) => {
|
|
1077
1077
|
const s = document.createElement("div");
|
|
1078
1078
|
s.style.cursor = "pointer";
|
|
@@ -1081,9 +1081,9 @@ const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) =>
|
|
|
1081
1081
|
};
|
|
1082
1082
|
e.addCustomComponent = (r) => {
|
|
1083
1083
|
!Array.isArray(r) || (r == null ? void 0 : r.length) === 0 || r.forEach((o) => {
|
|
1084
|
-
const { component: s, componentProps: v, lng: b, lat: C, markerOptions: M = {} } = o, k = typeof v == "function" ? v() : v,
|
|
1084
|
+
const { component: s, componentProps: v, lng: b, lat: C, markerOptions: M = {} } = o, k = typeof v == "function" ? v() : v, L = typeof s == "function" ? s() : s, c = () => l(L, k);
|
|
1085
1085
|
if (a.value === "baidu") {
|
|
1086
|
-
const i =
|
|
1086
|
+
const i = Lt.gcj02tobd09(b, C), h = new n.value.CustomOverlay(c, {
|
|
1087
1087
|
point: { lng: i[0], lat: i[1] },
|
|
1088
1088
|
...M
|
|
1089
1089
|
});
|
|
@@ -1092,7 +1092,7 @@ const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) =>
|
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
1094
|
if (a.value === "gaode") {
|
|
1095
|
-
const i = l(
|
|
1095
|
+
const i = l(L, k), h = new n.value.Marker({ content: i, position: [b, C], ...M });
|
|
1096
1096
|
u.value.add(h), n.value.event.addListener(h, "click", function(A) {
|
|
1097
1097
|
t("click-custom-component", o, A);
|
|
1098
1098
|
});
|
|
@@ -1105,7 +1105,7 @@ const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) =>
|
|
|
1105
1105
|
}, Symbol.toStringTag, { value: "Module" })), Xr = (e, t, { type: a, MapGL: n, map: u, innerPoint: l, innerInput: r, adCode: o, addressInfo: s }) => {
|
|
1106
1106
|
e.getMapInfo = () => {
|
|
1107
1107
|
if (a.value === "baidu") {
|
|
1108
|
-
const v =
|
|
1108
|
+
const v = Lt.bd09togcj02(l.value[0], l.value[1]);
|
|
1109
1109
|
return {
|
|
1110
1110
|
longitude: v[0],
|
|
1111
1111
|
latitude: v[1],
|
|
@@ -1180,19 +1180,19 @@ var kt = "\\ud800-\\udfff", hn = "\\u0300-\\u036f", yn = "\\ufe20-\\ufe2f", mn =
|
|
|
1180
1180
|
function Tn(e) {
|
|
1181
1181
|
return e.match(On) || [];
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function $n(e) {
|
|
1184
1184
|
return Pt(e) ? Tn(e) : pn(e);
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function jn(e) {
|
|
1187
1187
|
return function(t) {
|
|
1188
1188
|
t = ye(t);
|
|
1189
|
-
var a = Pt(t) ?
|
|
1189
|
+
var a = Pt(t) ? $n(t) : void 0, n = a ? a[0] : t.charAt(0), u = a ? nn(a, 1).join("") : t.slice(1);
|
|
1190
1190
|
return n[e]() + u;
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
|
-
var
|
|
1193
|
+
var Ln = jn("toUpperCase");
|
|
1194
1194
|
function En(e) {
|
|
1195
|
-
return
|
|
1195
|
+
return Ln(ye(e).toLowerCase());
|
|
1196
1196
|
}
|
|
1197
1197
|
function Pn(e, t, a, n) {
|
|
1198
1198
|
for (var u = -1, l = e == null ? 0 : e.length; ++u < l; )
|
|
@@ -1397,7 +1397,7 @@ var Rn = {
|
|
|
1397
1397
|
œ: "oe",
|
|
1398
1398
|
ʼn: "'n",
|
|
1399
1399
|
ſ: "s"
|
|
1400
|
-
}, Gn = kn(Rn), Bn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Dn = "\\u0300-\\u036f", zn = "\\ufe20-\\ufe2f", Nn = "\\u20d0-\\u20ff",
|
|
1400
|
+
}, Gn = kn(Rn), Bn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Dn = "\\u0300-\\u036f", zn = "\\ufe20-\\ufe2f", Nn = "\\u20d0-\\u20ff", Un = Dn + zn + Nn, Vn = "[" + Un + "]", Fn = RegExp(Vn, "g");
|
|
1401
1401
|
function Kn(e) {
|
|
1402
1402
|
return e = ye(e), e && e.replace(Bn, Gn).replace(Fn, "");
|
|
1403
1403
|
}
|
|
@@ -1409,7 +1409,7 @@ var Jn = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
|
1409
1409
|
function Zn(e) {
|
|
1410
1410
|
return Jn.test(e);
|
|
1411
1411
|
}
|
|
1412
|
-
var Nt = "\\ud800-\\udfff", Wn = "\\u0300-\\u036f", qn = "\\ufe20-\\ufe2f", Yn = "\\u20d0-\\u20ff", Xn = Wn + qn + Yn,
|
|
1412
|
+
var Nt = "\\ud800-\\udfff", Wn = "\\u0300-\\u036f", qn = "\\ufe20-\\ufe2f", Yn = "\\u20d0-\\u20ff", Xn = Wn + qn + Yn, Ut = "\\u2700-\\u27bf", Vt = "a-z\\xdf-\\xf6\\xf8-\\xff", Qn = "\\xac\\xb1\\xd7\\xf7", el = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", tl = "\\u2000-\\u206f", al = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Ft = "A-Z\\xc0-\\xd6\\xd8-\\xde", ol = "\\ufe0e\\ufe0f", Kt = Qn + el + tl + al, It = "['’]", rt = "[" + Kt + "]", rl = "[" + Xn + "]", Ht = "\\d+", nl = "[" + Ut + "]", Jt = "[" + Vt + "]", Zt = "[^" + Nt + Kt + Ht + Ut + Vt + Ft + "]", ll = "\\ud83c[\\udffb-\\udfff]", ul = "(?:" + rl + "|" + ll + ")", il = "[^" + Nt + "]", Wt = "(?:\\ud83c[\\udde6-\\uddff]){2}", qt = "[\\ud800-\\udbff][\\udc00-\\udfff]", X = "[" + Ft + "]", cl = "\\u200d", nt = "(?:" + Jt + "|" + Zt + ")", sl = "(?:" + X + "|" + Zt + ")", lt = "(?:" + It + "(?:d|ll|m|re|s|t|ve))?", ut = "(?:" + It + "(?:D|LL|M|RE|S|T|VE))?", Yt = ul + "?", Xt = "[" + ol + "]?", dl = "(?:" + cl + "(?:" + [il, Wt, qt].join("|") + ")" + Xt + Yt + ")*", fl = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", vl = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gl = Xt + Yt + dl, pl = "(?:" + [nl, Wt, qt].join("|") + ")" + gl, hl = RegExp([
|
|
1413
1413
|
X + "?" + Jt + "+" + lt + "(?=" + [rt, X, "$"].join("|") + ")",
|
|
1414
1414
|
sl + "+" + ut + "(?=" + [rt, X + nt, "$"].join("|") + ")",
|
|
1415
1415
|
X + "?" + nt + "+" + lt,
|
|
@@ -1447,24 +1447,24 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1447
1447
|
} };
|
|
1448
1448
|
}, Al = ({ MapGL: e, map: t, marker: a, mapLoading: n, $autocomplete: u, searchResultList: l, innerInput: r, innerPoint: o, adCode: s, addressInfo: v }, b) => {
|
|
1449
1449
|
const C = S(), M = S(), k = S();
|
|
1450
|
-
let
|
|
1450
|
+
let L = null;
|
|
1451
1451
|
const c = S(!1), i = S();
|
|
1452
1452
|
let h;
|
|
1453
1453
|
const A = async (d, f, y, x) => {
|
|
1454
|
-
i.value = y, x && (h = x);
|
|
1455
|
-
const m = document.createElement("script")
|
|
1456
|
-
m.
|
|
1457
|
-
|
|
1454
|
+
if (i.value = y, x && (h = x), document.getElementById(d)) return R();
|
|
1455
|
+
const m = document.createElement("script"), O = `mapLoad${(/* @__PURE__ */ new Date()).getTime()}`, N = `https://maps.googleapis.com/maps/api/js?key=${d}&loading=async&callback=${O}`;
|
|
1456
|
+
m.setAttribute("id", d), m.setAttribute("src", N), document.body.appendChild(m), window[O] = () => {
|
|
1457
|
+
R();
|
|
1458
1458
|
};
|
|
1459
|
-
},
|
|
1460
|
-
var N,
|
|
1459
|
+
}, R = async () => {
|
|
1460
|
+
var N, B;
|
|
1461
1461
|
const { Map: d } = await google.maps.importLibrary("maps");
|
|
1462
1462
|
e.value = d;
|
|
1463
1463
|
const { Place: f, AutocompleteSessionToken: y, AutocompleteSuggestion: x } = await google.maps.importLibrary("places");
|
|
1464
1464
|
M.value = new y(), k.value = x, C.value = f;
|
|
1465
1465
|
const { AdvancedMarkerElement: m } = await google.maps.importLibrary("marker");
|
|
1466
|
-
|
|
1467
|
-
const
|
|
1466
|
+
L = m;
|
|
1467
|
+
const O = ((N = i.value) == null ? void 0 : N.mapOpt) ?? {};
|
|
1468
1468
|
t.value = new d(document.getElementById("map"), {
|
|
1469
1469
|
zoom: 11,
|
|
1470
1470
|
mapId: "DEMO_MAP_ID",
|
|
@@ -1476,29 +1476,29 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1476
1476
|
// 左上角地图类型
|
|
1477
1477
|
gestureHandling: "greedy",
|
|
1478
1478
|
// 谷歌地图api缩放去掉ctrl+滚轮缩放,直接鼠标缩放
|
|
1479
|
-
...
|
|
1480
|
-
}), await
|
|
1479
|
+
...O
|
|
1480
|
+
}), await $(), (B = i.value) != null && B.clickStream || _(), n.value = !1, c.value = !r.value && !o.value.length, h && h();
|
|
1481
1481
|
}, _ = () => {
|
|
1482
1482
|
var d;
|
|
1483
1483
|
(d = t.value) == null || d.addListener("click", (f) => {
|
|
1484
1484
|
var y, x;
|
|
1485
|
-
a.value && a.value.setMap(null), o.value = [(y = f == null ? void 0 : f.latLng) == null ? void 0 : y.lng(), (x = f == null ? void 0 : f.latLng) == null ? void 0 : x.lat()],
|
|
1486
|
-
var
|
|
1485
|
+
a.value && a.value.setMap(null), o.value = [(y = f == null ? void 0 : f.latLng) == null ? void 0 : y.lng(), (x = f == null ? void 0 : f.latLng) == null ? void 0 : x.lat()], G(o.value, !0).then(() => {
|
|
1486
|
+
var O;
|
|
1487
1487
|
const m = {
|
|
1488
1488
|
lng: parseFloat(o.value[0]),
|
|
1489
1489
|
lat: parseFloat(o.value[1])
|
|
1490
1490
|
};
|
|
1491
|
-
a.value = new
|
|
1491
|
+
a.value = new L({
|
|
1492
1492
|
map: t.value,
|
|
1493
1493
|
position: m,
|
|
1494
1494
|
title: r.value
|
|
1495
1495
|
// 鼠标移上去时显示的内容
|
|
1496
|
-
}), (
|
|
1496
|
+
}), (O = t.value) == null || O.panTo(m);
|
|
1497
1497
|
});
|
|
1498
1498
|
});
|
|
1499
|
-
},
|
|
1499
|
+
}, $ = async () => {
|
|
1500
1500
|
var d;
|
|
1501
|
-
if (!r.value && o.value.length, r.value && o.value.length > 0 ? await
|
|
1501
|
+
if (!r.value && o.value.length, r.value && o.value.length > 0 ? await G(o.value) : r.value ? await U(r.value) : o.value.length > 0 && await G(o.value, !0), r.value && g(r.value, (f, y) => {
|
|
1502
1502
|
if (y && y.length) {
|
|
1503
1503
|
const x = y.find(
|
|
1504
1504
|
(m) => m.value === r.value || m.info.name === r.value
|
|
@@ -1514,33 +1514,33 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1514
1514
|
lng: parseFloat(o.value[0]),
|
|
1515
1515
|
lat: parseFloat(o.value[1])
|
|
1516
1516
|
};
|
|
1517
|
-
a.value = new
|
|
1517
|
+
a.value = new L({
|
|
1518
1518
|
map: t.value,
|
|
1519
1519
|
position: f,
|
|
1520
1520
|
title: r.value
|
|
1521
1521
|
// 鼠标移上去时显示的内容
|
|
1522
1522
|
}), o.value.length && ((d = t.value) == null || d.setCenter(f));
|
|
1523
1523
|
}
|
|
1524
|
-
},
|
|
1524
|
+
}, G = (d, f = !1) => (d.join(","), new Promise((y, x) => {
|
|
1525
1525
|
new google.maps.Geocoder().geocode({
|
|
1526
1526
|
location: {
|
|
1527
1527
|
lng: parseFloat(d[0]),
|
|
1528
1528
|
lat: parseFloat(d[1])
|
|
1529
1529
|
}
|
|
1530
|
-
}, (
|
|
1531
|
-
N === "OK" && (
|
|
1530
|
+
}, (O, N) => {
|
|
1531
|
+
N === "OK" && (O != null && O.length) ? (f && (r.value = O[0].formatted_address ?? "", v.value = {
|
|
1532
1532
|
district: "",
|
|
1533
1533
|
address: "",
|
|
1534
1534
|
name: r.value
|
|
1535
|
-
}), y(
|
|
1535
|
+
}), y(O[0])) : (z.error(E("thirdPartyMapErrorRetry")), x());
|
|
1536
1536
|
});
|
|
1537
|
-
})),
|
|
1537
|
+
})), U = (d) => new Promise((f, y) => {
|
|
1538
1538
|
new google.maps.Geocoder().geocode({
|
|
1539
1539
|
address: r.value
|
|
1540
|
-
}, (m,
|
|
1541
|
-
|
|
1540
|
+
}, (m, O) => {
|
|
1541
|
+
O === "OK" && (m != null && m.length) ? (o.value[0] = m[0].geometry.location.lng(), o.value[1] = m[0].geometry.location.lat(), f({ lng: o.value[0], lat: o.value[1] })) : (z.error(E("thirdPartyMapErrorRetry")), y());
|
|
1542
1542
|
});
|
|
1543
|
-
}),
|
|
1543
|
+
}), T = async () => {
|
|
1544
1544
|
var d;
|
|
1545
1545
|
navigator.geolocation && ((d = navigator.geolocation) == null || d.getCurrentPosition((f) => {
|
|
1546
1546
|
var x;
|
|
@@ -1571,22 +1571,22 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1571
1571
|
if (l.value = [], !x) return f([]);
|
|
1572
1572
|
let m = [];
|
|
1573
1573
|
await Promise.all(
|
|
1574
|
-
x.map((
|
|
1574
|
+
x.map((O) => (async () => {
|
|
1575
1575
|
var J, le;
|
|
1576
|
-
let
|
|
1577
|
-
await
|
|
1576
|
+
let B = (O == null ? void 0 : O.placePrediction).toPlace();
|
|
1577
|
+
await B.fetchFields({
|
|
1578
1578
|
fields: [
|
|
1579
1579
|
"displayName",
|
|
1580
1580
|
"formattedAddress",
|
|
1581
1581
|
"location"
|
|
1582
1582
|
]
|
|
1583
1583
|
});
|
|
1584
|
-
const ne = (J =
|
|
1584
|
+
const ne = (J = B == null ? void 0 : B.location) == null ? void 0 : J.lng(), V = (le = B == null ? void 0 : B.location) == null ? void 0 : le.lat(), F = {
|
|
1585
1585
|
// value: placePrediction?.text?.toString() || '',
|
|
1586
|
-
value:
|
|
1587
|
-
point: { lng: ne, lat:
|
|
1586
|
+
value: B == null ? void 0 : B.formattedAddress,
|
|
1587
|
+
point: { lng: ne, lat: V },
|
|
1588
1588
|
info: {
|
|
1589
|
-
name:
|
|
1589
|
+
name: B == null ? void 0 : B.displayName
|
|
1590
1590
|
}
|
|
1591
1591
|
};
|
|
1592
1592
|
m.push(F);
|
|
@@ -1596,9 +1596,9 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1596
1596
|
return {
|
|
1597
1597
|
getLocationByInputSearch: g,
|
|
1598
1598
|
handleSelectAddress: (d) => {
|
|
1599
|
-
r.value = d.value, v.value = d.info,
|
|
1599
|
+
r.value = d.value, v.value = d.info, U(d.value).then((f) => {
|
|
1600
1600
|
var y;
|
|
1601
|
-
o.value = [f.lng, f.lat], a.value && a.value.setMap(null), a.value = new
|
|
1601
|
+
o.value = [f.lng, f.lat], a.value && a.value.setMap(null), a.value = new L({
|
|
1602
1602
|
map: t.value,
|
|
1603
1603
|
position: f,
|
|
1604
1604
|
title: r.value
|
|
@@ -1611,7 +1611,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1611
1611
|
if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
|
|
1612
1612
|
if (r.value = l.value[0].value, !((d = l.value[0]) != null && d.point))
|
|
1613
1613
|
return z.error(E("thirdPartyMapErrorRetry"));
|
|
1614
|
-
o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new
|
|
1614
|
+
o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new L({
|
|
1615
1615
|
map: t.value,
|
|
1616
1616
|
position: l.value[0].point,
|
|
1617
1617
|
title: r.value
|
|
@@ -1626,18 +1626,18 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1626
1626
|
addressInfo: v.value
|
|
1627
1627
|
}),
|
|
1628
1628
|
loadJavascript: A,
|
|
1629
|
-
positionCityLocal:
|
|
1629
|
+
positionCityLocal: T,
|
|
1630
1630
|
showGetLocationBtn: c
|
|
1631
1631
|
};
|
|
1632
1632
|
}, Sl = (e, t) => {
|
|
1633
1633
|
const a = S("gaode"), n = S(), u = S(), l = I(null), r = I(null), o = I(null), s = S(!0), v = S(null), b = S([]), C = Se(() => ({
|
|
1634
1634
|
width: e.width ? Q(e.width) : "100%",
|
|
1635
1635
|
height: e.height ? Q(e.height) : "100%"
|
|
1636
|
-
})), M = S(""), k = S([]),
|
|
1636
|
+
})), M = S(""), k = S([]), L = S(""), c = S(), {
|
|
1637
1637
|
loadJavascript: i,
|
|
1638
1638
|
getLocationByInputSearch: h,
|
|
1639
1639
|
handleSelectAddress: A,
|
|
1640
|
-
getLocationParse:
|
|
1640
|
+
getLocationParse: R
|
|
1641
1641
|
} = ft({
|
|
1642
1642
|
BMap: l,
|
|
1643
1643
|
map: r,
|
|
@@ -1647,13 +1647,13 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1647
1647
|
searchResultList: b,
|
|
1648
1648
|
innerInput: M,
|
|
1649
1649
|
innerPoint: k,
|
|
1650
|
-
adCode:
|
|
1650
|
+
adCode: L,
|
|
1651
1651
|
addressInfo: c
|
|
1652
1652
|
}), {
|
|
1653
1653
|
loadJavascript: _,
|
|
1654
|
-
getLocationByInputSearch:
|
|
1655
|
-
handleSelectAddress:
|
|
1656
|
-
getLocationParse:
|
|
1654
|
+
getLocationByInputSearch: $,
|
|
1655
|
+
handleSelectAddress: G,
|
|
1656
|
+
getLocationParse: U
|
|
1657
1657
|
} = st({
|
|
1658
1658
|
MapGL: l,
|
|
1659
1659
|
map: r,
|
|
@@ -1663,14 +1663,14 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1663
1663
|
searchResultList: b,
|
|
1664
1664
|
innerInput: M,
|
|
1665
1665
|
innerPoint: k,
|
|
1666
|
-
adCode:
|
|
1666
|
+
adCode: L,
|
|
1667
1667
|
addressInfo: c
|
|
1668
1668
|
}), {
|
|
1669
|
-
loadJavascript:
|
|
1669
|
+
loadJavascript: T,
|
|
1670
1670
|
getLocationByInputSearch: g,
|
|
1671
1671
|
handleSelectAddress: p,
|
|
1672
1672
|
getLocationParse: w,
|
|
1673
|
-
positionCityLocal:
|
|
1673
|
+
positionCityLocal: j,
|
|
1674
1674
|
showGetLocationBtn: d
|
|
1675
1675
|
} = Al({
|
|
1676
1676
|
MapGL: l,
|
|
@@ -1681,7 +1681,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1681
1681
|
searchResultList: b,
|
|
1682
1682
|
innerInput: M,
|
|
1683
1683
|
innerPoint: k,
|
|
1684
|
-
adCode:
|
|
1684
|
+
adCode: L,
|
|
1685
1685
|
addressInfo: c
|
|
1686
1686
|
}), { mapElement: f, addPlugins: y } = Cl(e, t, {
|
|
1687
1687
|
type: a,
|
|
@@ -1689,22 +1689,22 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1689
1689
|
map: r,
|
|
1690
1690
|
innerPoint: k,
|
|
1691
1691
|
innerInput: M,
|
|
1692
|
-
adCode:
|
|
1692
|
+
adCode: L,
|
|
1693
1693
|
addressInfo: c
|
|
1694
1694
|
}), x = () => {
|
|
1695
|
-
a.value === "baidu" && i(n.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt },
|
|
1695
|
+
a.value === "baidu" && i(n.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, O), a.value === "gaode" && _(
|
|
1696
1696
|
n.value,
|
|
1697
1697
|
u.value,
|
|
1698
1698
|
{ clickStream: !e.clickStream, mapOpt: e.mapOpt },
|
|
1699
|
-
|
|
1700
|
-
), a.value === "google" &&
|
|
1699
|
+
O
|
|
1700
|
+
), a.value === "google" && T(
|
|
1701
1701
|
n.value,
|
|
1702
1702
|
u.value,
|
|
1703
1703
|
{ clickStream: !e.clickStream, mapOpt: e.mapOpt },
|
|
1704
|
-
|
|
1704
|
+
O
|
|
1705
1705
|
);
|
|
1706
|
-
}, m = async (
|
|
1707
|
-
const [F, J] = await Ge(
|
|
1706
|
+
}, m = async (V) => {
|
|
1707
|
+
const [F, J] = await Ge(V);
|
|
1708
1708
|
if (F) {
|
|
1709
1709
|
s.value = !1;
|
|
1710
1710
|
return;
|
|
@@ -1716,16 +1716,16 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1716
1716
|
return J;
|
|
1717
1717
|
};
|
|
1718
1718
|
Oe(async () => {
|
|
1719
|
-
var
|
|
1720
|
-
if (e.defaultLongitude && e.defaultLatitude && (k.value = [e.defaultLongitude, e.defaultLatitude]), M.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((
|
|
1719
|
+
var V, F, J, le, Ve;
|
|
1720
|
+
if (e.defaultLongitude && e.defaultLatitude && (k.value = [e.defaultLongitude, e.defaultLatitude]), M.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((V = e == null ? void 0 : e.sdkConfig) != null && V.akValue))
|
|
1721
1721
|
a.value = ((F = e.sdkConfig) == null ? void 0 : F.mapType) ?? "gaode", n.value = (J = e.sdkConfig) == null ? void 0 : J.akValue, u.value = (le = e.sdkConfig) == null ? void 0 : le.secretKey;
|
|
1722
1722
|
else {
|
|
1723
|
-
const K = await m((
|
|
1723
|
+
const K = await m((Ve = e == null ? void 0 : e.sdkConfig) == null ? void 0 : Ve.mapType);
|
|
1724
1724
|
K && (a.value = (K == null ? void 0 : K.mapType) ?? "gaode", n.value = K == null ? void 0 : K.akVal, u.value = K == null ? void 0 : K.secretK);
|
|
1725
1725
|
}
|
|
1726
1726
|
x();
|
|
1727
1727
|
});
|
|
1728
|
-
const
|
|
1728
|
+
const O = () => {
|
|
1729
1729
|
f.value = r.value, y(), a.value === "baidu" && r.value.addEventListener("tilesloaded", () => {
|
|
1730
1730
|
t("update:mapElement", f.value);
|
|
1731
1731
|
}), a.value === "gaode" && r.value.on("complete", () => {
|
|
@@ -1735,21 +1735,21 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1735
1735
|
return {
|
|
1736
1736
|
mapStyle: C,
|
|
1737
1737
|
innerInput: M,
|
|
1738
|
-
getLocationByInputSearch: (
|
|
1739
|
-
a.value === "baidu" && h(
|
|
1738
|
+
getLocationByInputSearch: (V, F) => {
|
|
1739
|
+
a.value === "baidu" && h(V, F), a.value === "gaode" && $(V, F), a.value === "google" && g(V, F);
|
|
1740
1740
|
},
|
|
1741
|
-
handleSelectAddress: (
|
|
1742
|
-
a.value === "baidu" && A(
|
|
1741
|
+
handleSelectAddress: (V) => {
|
|
1742
|
+
a.value === "baidu" && A(V), a.value === "gaode" && G(V), a.value === "google" && p(V);
|
|
1743
1743
|
},
|
|
1744
1744
|
getLocationParse: () => {
|
|
1745
|
-
a.value === "baidu" &&
|
|
1745
|
+
a.value === "baidu" && R(), a.value === "gaode" && U(), a.value === "google" && w();
|
|
1746
1746
|
},
|
|
1747
1747
|
mapLoading: s,
|
|
1748
1748
|
$autocomplete: v,
|
|
1749
|
-
googlePositionCityLocal:
|
|
1749
|
+
googlePositionCityLocal: j,
|
|
1750
1750
|
showGetLocationBtn: d
|
|
1751
1751
|
};
|
|
1752
|
-
}, Ol = { class: "search-input" }, Tl = { class: "location-icon1" },
|
|
1752
|
+
}, Ol = { class: "search-input" }, Tl = { class: "location-icon1" }, $l = { id: "map" }, jl = /* @__PURE__ */ Ae({
|
|
1753
1753
|
__name: "mixMap",
|
|
1754
1754
|
props: {
|
|
1755
1755
|
defaultAddress: {},
|
|
@@ -1777,13 +1777,13 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1777
1777
|
googlePositionCityLocal: C,
|
|
1778
1778
|
showGetLocationBtn: M
|
|
1779
1779
|
} = Sl(a, n);
|
|
1780
|
-
return (k,
|
|
1780
|
+
return (k, L) => {
|
|
1781
1781
|
const c = Pe, i = ke;
|
|
1782
|
-
return Te(),
|
|
1782
|
+
return Te(), $e(
|
|
1783
1783
|
"div",
|
|
1784
1784
|
{
|
|
1785
1785
|
class: "das-map",
|
|
1786
|
-
style:
|
|
1786
|
+
style: je(D(u))
|
|
1787
1787
|
},
|
|
1788
1788
|
[
|
|
1789
1789
|
Z(W(
|
|
@@ -1794,14 +1794,14 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1794
1794
|
ref_key: "$autocomplete",
|
|
1795
1795
|
ref: b,
|
|
1796
1796
|
modelValue: D(l),
|
|
1797
|
-
"onUpdate:modelValue":
|
|
1797
|
+
"onUpdate:modelValue": L[0] || (L[0] = (h) => ta(l) ? l.value = h : null),
|
|
1798
1798
|
modelModifiers: { trim: !0 },
|
|
1799
1799
|
"fetch-suggestions": D(r),
|
|
1800
1800
|
placeholder: D(E)("请输入位置"),
|
|
1801
1801
|
style: { width: "100%" },
|
|
1802
1802
|
"trigger-on-focus": !1,
|
|
1803
1803
|
onSelect: D(o),
|
|
1804
|
-
onKeyup:
|
|
1804
|
+
onKeyup: Le(D(s), ["enter", "native"]),
|
|
1805
1805
|
clearable: ""
|
|
1806
1806
|
}, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
|
|
1807
1807
|
[D(Re)]
|
|
@@ -1839,7 +1839,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1839
1839
|
]),
|
|
1840
1840
|
Z(W(
|
|
1841
1841
|
"div",
|
|
1842
|
-
|
|
1842
|
+
$l,
|
|
1843
1843
|
null,
|
|
1844
1844
|
512
|
|
1845
1845
|
/* NEED_PATCH */
|
|
@@ -1857,7 +1857,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1857
1857
|
);
|
|
1858
1858
|
};
|
|
1859
1859
|
}
|
|
1860
|
-
}),
|
|
1860
|
+
}), Ll = /* @__PURE__ */ Be(jl, [["__scopeId", "data-v-3bb806bb"]]), El = {
|
|
1861
1861
|
请输入位置: { "zh-CN": "请输入位置", en: "Please enter location", _appCode: "framework" },
|
|
1862
1862
|
获取地图配置信息失败: {
|
|
1863
1863
|
"zh-CN": "获取地图配置信息失败",
|
|
@@ -1882,7 +1882,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1882
1882
|
}
|
|
1883
1883
|
};
|
|
1884
1884
|
na(El);
|
|
1885
|
-
const Kl = Ee(ga), Il = () => S(null), Hl = Ee(ma), Jl = () => S(null), Zl = Ee(
|
|
1885
|
+
const Kl = Ee(ga), Il = () => S(null), Hl = Ee(ma), Jl = () => S(null), Zl = Ee(Ll), Wl = () => S(null), ql = { title: "Map 地图" };
|
|
1886
1886
|
export {
|
|
1887
1887
|
Hl as DasBaiduMap,
|
|
1888
1888
|
Jl as DasBaiduMapRef,
|