@das-fed/ui 6.4.0-test.6.1 → 6.4.0-test.7
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/esm-map.json +8 -1
- package/package.json +6 -5
- package/packages/business-components/app-container/index.js +96 -73
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +0 -5
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +0 -1
- package/packages/business-components/device-panel/index.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/dealAlarm.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/historyList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/liveList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/logDetail.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/dealAlarm.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/historyList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/liveList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/logDetail.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/preview/index.vue.d.ts +2 -2
- package/packages/business-components/export-button/hooks/useExport.d.ts +5 -6
- package/packages/business-components/export-button/index.js +89 -87
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/hooks/file.d.ts +1 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +13 -13
- package/packages/business-components/import-button/index.js +284 -275
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/type.d.ts +2 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -0
- package/packages/business-components/model-table-dialog/index.d.ts +65 -65
- package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +12 -12
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +2 -2
- package/packages/business-components/payment/api.d.ts +8 -0
- package/packages/business-components/payment/i18n/index.d.ts +68 -0
- package/packages/business-components/payment/index.d.ts +52 -0
- package/packages/business-components/payment/index.js +1818 -0
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/src/Index.vue.d.ts +7 -0
- package/packages/business-components/payment/style.css +1 -0
- package/packages/business-components/payment/type.d.ts +41 -0
- package/packages/business-components/process-form/i18n/index.d.ts +10 -0
- package/packages/business-components/process-form/index.js +149 -145
- 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-log/index.js +289 -289
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-table/index.d.ts +2 -0
- package/packages/business-components/process-table/index.js +2 -1
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/process-table/src/App.vue.d.ts +3 -3
- package/packages/business-components/process-table/src/type.d.ts +2 -0
- package/packages/components/autocomplete/index.d.ts +9 -9
- package/packages/components/autocomplete/index.js +1 -1
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +1 -1
- package/packages/components/autocomplete/src/type.d.ts +5 -0
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/calendar/index.d.ts +5 -5
- package/packages/components/calendar/src/Index.vue.d.ts +2 -2
- package/packages/components/calendar/src/old-Index.vue.d.ts +2 -2
- package/packages/components/cascader/index.d.ts +9 -9
- package/packages/components/cascader/src/Index.vue.d.ts +1 -1
- package/packages/components/color-picker/index.js +4 -4
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/src/type.d.ts +6 -3
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.d.ts +30 -25
- package/packages/components/date-picker/index.js +543 -525
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +4 -2
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/index.js +1 -1
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +2 -2
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dimple-layout/style.css +1 -1
- package/packages/components/dimple-layout/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +24 -4
- package/packages/components/edit-table/index.js +1337 -1202
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/components/index.d.ts +1 -0
- package/packages/components/edit-table/src/components/row-button/index.vue.d.ts +5 -0
- package/packages/components/edit-table/src/components/row-button/type.d.ts +13 -0
- package/packages/components/edit-table/src/index.vue.d.ts +7 -3
- package/packages/components/edit-table/src/type.d.ts +15 -3
- package/packages/components/edit-table/src/utils.d.ts +1 -1
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/empty/index.d.ts +3 -3
- package/packages/components/empty/src/Index.vue.d.ts +1 -1
- package/packages/components/index.d.ts +1 -0
- package/packages/components/index.js +1 -0
- package/packages/components/map/index.js +82 -85
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/style.css +1 -1
- package/packages/components/menu-aside/index.js +154 -153
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-header/index.js +24 -23
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/pagination/index.d.ts +23 -23
- package/packages/components/pagination/src/Pagination.vue.d.ts +3 -3
- package/packages/components/popup-mask/index.d.ts +9 -9
- package/packages/components/popup-mask/src/Index.vue.d.ts +1 -1
- package/packages/components/preview/index.d.ts +3 -3
- package/packages/components/preview/src/Index.vue.d.ts +1 -1
- package/packages/components/search-form/index.js +240 -239
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +3 -1
- package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
- package/packages/components/search-form/src/type.d.ts +3 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +17 -17
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.d.ts +2 -2
- package/packages/components/select-input/src/Index.vue.d.ts +2 -2
- package/packages/components/select-list/index.js +176 -174
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/select-list/theme/index.d.ts +2 -0
- package/packages/components/table/index.d.ts +18 -18
- package/packages/components/table/index.js +79 -78
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +1 -1
- package/packages/components/table/src/hooks/use-operation.d.ts +1 -1
- package/packages/components/table/src/table-column/index.vue.d.ts +1 -1
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/index.js +61 -60
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +702 -695
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +43 -42
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/index.js +290 -294
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +6 -3
- package/packages/components/tree-v2/i18n/index.d.ts +31 -0
- package/packages/components/tree-v2/index.d.ts +585 -0
- package/packages/components/tree-v2/index.js +3371 -0
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +99 -0
- package/packages/components/tree-v2/src/empty.vue.d.ts +19 -0
- package/packages/components/tree-v2/src/expand-icon.vue.d.ts +2 -0
- package/packages/components/tree-v2/src/hooks/use-lazy-tree.d.ts +15 -0
- package/packages/components/tree-v2/src/hooks/use-style.d.ts +5 -0
- package/packages/components/tree-v2/src/hooks/use-tree.d.ts +43 -0
- package/packages/components/tree-v2/src/type.d.ts +283 -0
- package/packages/components/tree-v2/src/utils.d.ts +18 -0
- package/packages/components/tree-v2/style.css +1 -0
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/tree-v2/theme/base.d.ts +16 -0
- package/packages/icons/index.d.ts +1 -0
- package/packages/icons/index.js +1 -0
- package/packages/icons/input-select/index.d.ts +1 -0
- package/packages/icons/input-select/index.js +17 -0
- package/packages/icons/input-select/index.js.gz +0 -0
- package/packages/icons/input-select/index.vue.d.ts +16 -0
|
@@ -15,9 +15,9 @@ const Q = (e) => {
|
|
|
15
15
|
return typeof e == "string" && hasCssUnit(e) ? e : e + "px";
|
|
16
16
|
}, st = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
|
|
17
17
|
const C = S();
|
|
18
|
-
let
|
|
18
|
+
let x;
|
|
19
19
|
const k = (T, g, p, w) => {
|
|
20
|
-
C.value = p, w && (
|
|
20
|
+
C.value = p, w && (x = w);
|
|
21
21
|
const j = document.createElement("script");
|
|
22
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");
|
|
@@ -48,7 +48,7 @@ const Q = (e) => {
|
|
|
48
48
|
liteStyle: !0
|
|
49
49
|
})
|
|
50
50
|
);
|
|
51
|
-
}), i(), (g = C.value) != null && g.clickStream || c(), r.value = !1,
|
|
51
|
+
}), i(), (g = C.value) != null && g.clickStream || c(), r.value = !1, x && x();
|
|
52
52
|
}
|
|
53
53
|
}, c = () => {
|
|
54
54
|
t.value.on("click", (T) => {
|
|
@@ -82,7 +82,7 @@ const Q = (e) => {
|
|
|
82
82
|
new AMap.Geocoder({
|
|
83
83
|
city: "全国"
|
|
84
84
|
}).getAddress(p, (f, y) => {
|
|
85
|
-
var
|
|
85
|
+
var M, m;
|
|
86
86
|
if (f === "complete" && (y != null && y.regeocode)) {
|
|
87
87
|
if (g) {
|
|
88
88
|
const { province: O = "", city: N = "", district: B = "", township: ne = "" } = y.regeocode.addressComponent;
|
|
@@ -92,7 +92,7 @@ const Q = (e) => {
|
|
|
92
92
|
name: n.value.replace(O, "").replace(N, "").replace(B, "").replace(ne, "")
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
s.value = ((m = (
|
|
95
|
+
s.value = ((m = (M = y.regeocode) == null ? void 0 : M.addressComponent) == null ? void 0 : m.adcode) ?? "", w(y.regeocode);
|
|
96
96
|
} else
|
|
97
97
|
z.error(P("thirdPartyMapErrorRetry")), j();
|
|
98
98
|
});
|
|
@@ -105,8 +105,8 @@ const Q = (e) => {
|
|
|
105
105
|
}).getLocation(T, (j, d) => {
|
|
106
106
|
var f, y;
|
|
107
107
|
if (j === "complete" && ((f = d.geocodes) != null && f.length)) {
|
|
108
|
-
const
|
|
109
|
-
o.value[0] =
|
|
108
|
+
const M = d.geocodes[0].location;
|
|
109
|
+
o.value[0] = M.lng, o.value[1] = M.lat, s.value = ((y = d.geocodes[0]) == null ? void 0 : y.adcode) ?? "", g(d.geocodes[0].location);
|
|
110
110
|
} else
|
|
111
111
|
z.error(P("thirdPartyMapErrorRetry")), p();
|
|
112
112
|
});
|
|
@@ -135,12 +135,12 @@ const Q = (e) => {
|
|
|
135
135
|
let f = d.tips;
|
|
136
136
|
if (!f || !f.length) return g([]);
|
|
137
137
|
f = f.map((y) => {
|
|
138
|
-
const { district:
|
|
138
|
+
const { district: M = "", address: m = "", name: O = "", location: N = "" } = y;
|
|
139
139
|
return {
|
|
140
|
-
value:
|
|
140
|
+
value: M + m + O,
|
|
141
141
|
point: N,
|
|
142
142
|
info: {
|
|
143
|
-
district:
|
|
143
|
+
district: M,
|
|
144
144
|
address: m,
|
|
145
145
|
name: O
|
|
146
146
|
}
|
|
@@ -189,7 +189,7 @@ const Q = (e) => {
|
|
|
189
189
|
const l = u.filter((C) => C.enable) || [];
|
|
190
190
|
if ((l == null ? void 0 : l.length) == 0) return [null, a];
|
|
191
191
|
if ((l == null ? void 0 : l.length) > 1) {
|
|
192
|
-
const C = l.filter((
|
|
192
|
+
const C = l.filter((x) => t[x.serviceProvider] == e);
|
|
193
193
|
a = {
|
|
194
194
|
mapType: e,
|
|
195
195
|
akVal: (n = C[0]) == null ? void 0 : n.akValue,
|
|
@@ -217,7 +217,7 @@ const Q = (e) => {
|
|
|
217
217
|
const a = e, r = I(null), u = I(null), l = I(null), n = 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([]),
|
|
220
|
+
})), b = S(""), C = S([]), x = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = st(
|
|
221
221
|
{
|
|
222
222
|
MapGL: r,
|
|
223
223
|
map: u,
|
|
@@ -227,7 +227,7 @@ const Q = (e) => {
|
|
|
227
227
|
searchResultList: s,
|
|
228
228
|
innerInput: b,
|
|
229
229
|
innerPoint: C,
|
|
230
|
-
adCode:
|
|
230
|
+
adCode: x,
|
|
231
231
|
addressInfo: k
|
|
232
232
|
}
|
|
233
233
|
), R = async () => {
|
|
@@ -263,7 +263,6 @@ const Q = (e) => {
|
|
|
263
263
|
ref: o,
|
|
264
264
|
modelValue: b.value,
|
|
265
265
|
"onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
|
|
266
|
-
modelModifiers: { trim: !0 },
|
|
267
266
|
"fetch-suggestions": D(L),
|
|
268
267
|
placeholder: D(P)("请输入位置"),
|
|
269
268
|
style: { width: "100%" },
|
|
@@ -300,11 +299,11 @@ const Q = (e) => {
|
|
|
300
299
|
for (const [r, u] of t)
|
|
301
300
|
a[r] = u;
|
|
302
301
|
return a;
|
|
303
|
-
}, ga = /* @__PURE__ */ Be(va, [["__scopeId", "data-v-
|
|
302
|
+
}, ga = /* @__PURE__ */ Be(va, [["__scopeId", "data-v-95b9bcca"]]), ft = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
|
|
304
303
|
const C = S();
|
|
305
|
-
let
|
|
304
|
+
let x;
|
|
306
305
|
const k = (g, p, w) => {
|
|
307
|
-
C.value = p, w && (
|
|
306
|
+
C.value = p, w && (x = w);
|
|
308
307
|
const j = document.createElement("script");
|
|
309
308
|
j.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${g}&services=&t=20200109192240`, j.onload = () => {
|
|
310
309
|
L();
|
|
@@ -323,7 +322,7 @@ const Q = (e) => {
|
|
|
323
322
|
// @ts-ignore
|
|
324
323
|
type: BMAP_NAVIGATION_CONTROL_ZOOM
|
|
325
324
|
});
|
|
326
|
-
t.value.addControl(g), t.value.enableScrollWheelZoom(!0), i(), (w = C.value) != null && w.clickStream || h(), r.value = !1,
|
|
325
|
+
t.value.addControl(g), t.value.enableScrollWheelZoom(!0), i(), (w = C.value) != null && w.clickStream || h(), r.value = !1, x && x();
|
|
327
326
|
}, c = (g) => new Promise((p, w) => {
|
|
328
327
|
new e.value.Geocoder().getPoint(g, (d) => {
|
|
329
328
|
!d || JSON.stringify(d) == "{}" ? (z.error(P("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
|
|
@@ -349,8 +348,8 @@ const Q = (e) => {
|
|
|
349
348
|
o.value = [p, w], A(p, w, !0);
|
|
350
349
|
});
|
|
351
350
|
}, A = (g, p, w = !1, j = "default") => new Promise((d, f) => {
|
|
352
|
-
const y = new e.value.Geocoder(),
|
|
353
|
-
y.getLocation(
|
|
351
|
+
const y = new e.value.Geocoder(), M = new e.value.Point(g, p);
|
|
352
|
+
y.getLocation(M, (m) => {
|
|
354
353
|
if (w) {
|
|
355
354
|
n.value = m.address;
|
|
356
355
|
const { province: O = "", city: N = "", district: B = "" } = m.addressComponents;
|
|
@@ -361,7 +360,7 @@ const Q = (e) => {
|
|
|
361
360
|
name: m.address.replace(O, "").replace(N, "").replace(B, "")
|
|
362
361
|
};
|
|
363
362
|
}
|
|
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(
|
|
363
|
+
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(M, { title: n.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(M, 16)), U(g, p), d(m.address)) : (z.error(P("thirdPartyMapErrorRetry")), f());
|
|
365
364
|
});
|
|
366
365
|
}), R = () => {
|
|
367
366
|
new e.value.LocalCity().get((p) => {
|
|
@@ -383,15 +382,15 @@ const Q = (e) => {
|
|
|
383
382
|
d.push(j.getPoi(f));
|
|
384
383
|
if (!d.length) return p([]);
|
|
385
384
|
d = d.map((f) => {
|
|
386
|
-
const { address: y = "", title:
|
|
385
|
+
const { address: y = "", title: M = "", province: m = "", city: O = "", point: N = {} } = f;
|
|
387
386
|
return {
|
|
388
|
-
value: y ==
|
|
387
|
+
value: y == M ? y : y + M,
|
|
389
388
|
point: N,
|
|
390
389
|
info: {
|
|
391
390
|
province: m,
|
|
392
391
|
city: O,
|
|
393
392
|
address: y,
|
|
394
|
-
name:
|
|
393
|
+
name: M
|
|
395
394
|
}
|
|
396
395
|
};
|
|
397
396
|
}), l.value = d.length > 5 ? d.slice(0, 5) : d, p(l.value, d);
|
|
@@ -439,7 +438,7 @@ const Q = (e) => {
|
|
|
439
438
|
const a = e, r = I(null), u = I(null), l = I(null), n = S(!0), o = S(null), s = S([]), v = Se(() => ({
|
|
440
439
|
width: a.width ? Q(a.width) : "100%",
|
|
441
440
|
height: a.height ? Q(a.height) : "100%"
|
|
442
|
-
})), b = S(""), C = S([]),
|
|
441
|
+
})), b = S(""), C = S([]), x = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = ft(
|
|
443
442
|
{
|
|
444
443
|
BMap: r,
|
|
445
444
|
map: u,
|
|
@@ -449,7 +448,7 @@ const Q = (e) => {
|
|
|
449
448
|
searchResultList: s,
|
|
450
449
|
innerInput: b,
|
|
451
450
|
innerPoint: C,
|
|
452
|
-
adCode:
|
|
451
|
+
adCode: x,
|
|
453
452
|
addressInfo: k
|
|
454
453
|
}
|
|
455
454
|
), R = async () => {
|
|
@@ -479,7 +478,6 @@ const Q = (e) => {
|
|
|
479
478
|
ref: o,
|
|
480
479
|
modelValue: b.value,
|
|
481
480
|
"onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
|
|
482
|
-
modelModifiers: { trim: !0 },
|
|
483
481
|
"fetch-suggestions": D(L),
|
|
484
482
|
placeholder: D(P)("请输入位置"),
|
|
485
483
|
style: { width: "100%" },
|
|
@@ -511,7 +509,7 @@ const Q = (e) => {
|
|
|
511
509
|
);
|
|
512
510
|
};
|
|
513
511
|
}
|
|
514
|
-
}), ma = /* @__PURE__ */ Be(ya, [["__scopeId", "data-v-
|
|
512
|
+
}), ma = /* @__PURE__ */ Be(ya, [["__scopeId", "data-v-5444de43"]]);
|
|
515
513
|
function ba() {
|
|
516
514
|
this.__data__ = [], this.size = 0;
|
|
517
515
|
}
|
|
@@ -525,14 +523,14 @@ function pe(e, t) {
|
|
|
525
523
|
return -1;
|
|
526
524
|
}
|
|
527
525
|
var _a = Array.prototype, wa = _a.splice;
|
|
528
|
-
function
|
|
526
|
+
function xa(e) {
|
|
529
527
|
var t = this.__data__, a = pe(t, e);
|
|
530
528
|
if (a < 0)
|
|
531
529
|
return !1;
|
|
532
530
|
var r = t.length - 1;
|
|
533
531
|
return a == r ? t.pop() : wa.call(t, a, 1), --this.size, !0;
|
|
534
532
|
}
|
|
535
|
-
function
|
|
533
|
+
function Ma(e) {
|
|
536
534
|
var t = this.__data__, a = pe(t, e);
|
|
537
535
|
return a < 0 ? void 0 : t[a][1];
|
|
538
536
|
}
|
|
@@ -551,8 +549,8 @@ function H(e) {
|
|
|
551
549
|
}
|
|
552
550
|
}
|
|
553
551
|
H.prototype.clear = ba;
|
|
554
|
-
H.prototype.delete =
|
|
555
|
-
H.prototype.get =
|
|
552
|
+
H.prototype.delete = xa;
|
|
553
|
+
H.prototype.get = Ma;
|
|
556
554
|
H.prototype.has = Ca;
|
|
557
555
|
H.prototype.set = Aa;
|
|
558
556
|
function Sa() {
|
|
@@ -753,7 +751,7 @@ function Ne(e, t, a) {
|
|
|
753
751
|
function _e(e, t, a) {
|
|
754
752
|
(a !== void 0 && !ge(e[t], a) || a === void 0 && !(t in e)) && Ne(e, t, a);
|
|
755
753
|
}
|
|
756
|
-
function
|
|
754
|
+
function xo(e) {
|
|
757
755
|
return function(t, a, r) {
|
|
758
756
|
for (var u = -1, l = Object(t), n = r(t), o = n.length; o--; ) {
|
|
759
757
|
var s = n[++u];
|
|
@@ -763,7 +761,7 @@ function Mo(e) {
|
|
|
763
761
|
return t;
|
|
764
762
|
};
|
|
765
763
|
}
|
|
766
|
-
var
|
|
764
|
+
var Mo = xo(), ht = typeof exports == "object" && exports && !exports.nodeType && exports, He = ht && typeof module == "object" && module && !module.nodeType && module, Co = He && He.exports === ht, Je = Co ? te.Buffer : void 0;
|
|
767
765
|
Je && Je.allocUnsafe;
|
|
768
766
|
function Ao(e, t) {
|
|
769
767
|
return e.slice();
|
|
@@ -833,7 +831,7 @@ function Bo(e) {
|
|
|
833
831
|
function Do() {
|
|
834
832
|
return !1;
|
|
835
833
|
}
|
|
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,
|
|
834
|
+
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, xt = No || Do, Uo = "[object Object]", Vo = Function.prototype, Fo = Object.prototype, Mt = Vo.toString, Ko = Fo.hasOwnProperty, Io = Mt.call(Object);
|
|
837
835
|
function Ho(e) {
|
|
838
836
|
if (!re(e) || se(e) != Uo)
|
|
839
837
|
return !1;
|
|
@@ -841,7 +839,7 @@ function Ho(e) {
|
|
|
841
839
|
if (t === null)
|
|
842
840
|
return !0;
|
|
843
841
|
var a = Ko.call(t, "constructor") && t.constructor;
|
|
844
|
-
return typeof a == "function" && a instanceof a &&
|
|
842
|
+
return typeof a == "function" && a instanceof a && Mt.call(a) == Io;
|
|
845
843
|
}
|
|
846
844
|
var Jo = "[object Arguments]", Zo = "[object Array]", Wo = "[object Boolean]", qo = "[object Date]", Yo = "[object Error]", Xo = "[object Function]", Qo = "[object Map]", er = "[object Number]", tr = "[object Object]", ar = "[object RegExp]", or = "[object Set]", rr = "[object String]", nr = "[object WeakMap]", lr = "[object ArrayBuffer]", ur = "[object DataView]", ir = "[object Float32Array]", cr = "[object Float64Array]", sr = "[object Int8Array]", dr = "[object Int16Array]", fr = "[object Int32Array]", vr = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", pr = "[object Uint16Array]", hr = "[object Uint32Array]", E = {};
|
|
847
845
|
E[ir] = E[cr] = E[sr] = E[dr] = E[fr] = E[vr] = E[gr] = E[pr] = E[hr] = !0;
|
|
@@ -861,21 +859,21 @@ var Ct = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
861
859
|
} catch {
|
|
862
860
|
}
|
|
863
861
|
}(), et = Qe && Qe.isTypedArray, At = et ? mr(et) : yr;
|
|
864
|
-
function
|
|
862
|
+
function xe(e, t) {
|
|
865
863
|
if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
|
|
866
864
|
return e[t];
|
|
867
865
|
}
|
|
868
866
|
var _r = Object.prototype, wr = _r.hasOwnProperty;
|
|
869
|
-
function
|
|
867
|
+
function xr(e, t, a) {
|
|
870
868
|
var r = e[t];
|
|
871
869
|
(!(wr.call(e, t) && ge(r, a)) || a === void 0 && !(t in e)) && Ne(e, t, a);
|
|
872
870
|
}
|
|
873
|
-
function
|
|
871
|
+
function Mr(e, t, a, r) {
|
|
874
872
|
var u = !a;
|
|
875
873
|
a || (a = {});
|
|
876
874
|
for (var l = -1, n = t.length; ++l < n; ) {
|
|
877
875
|
var o = t[l], s = void 0;
|
|
878
|
-
s === void 0 && (s = e[o]), u ? Ne(a, o, s) :
|
|
876
|
+
s === void 0 && (s = e[o]), u ? Ne(a, o, s) : xr(a, o, s);
|
|
879
877
|
}
|
|
880
878
|
return a;
|
|
881
879
|
}
|
|
@@ -890,7 +888,7 @@ function St(e, t) {
|
|
|
890
888
|
return t = t ?? Ar, !!t && (a == "number" || a != "symbol" && Sr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
891
889
|
}
|
|
892
890
|
function Or(e, t) {
|
|
893
|
-
var a = ve(e), r = !a && we(e), u = !a && !r &&
|
|
891
|
+
var a = ve(e), r = !a && we(e), u = !a && !r && xt(e), l = !a && !r && !u && At(e), n = a || r || u || l, o = n ? Cr(e.length, String) : [], s = o.length;
|
|
894
892
|
for (var v in e)
|
|
895
893
|
n && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
896
894
|
(v == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -919,27 +917,27 @@ function Ot(e) {
|
|
|
919
917
|
return Ue(e) ? Or(e) : Lr(e);
|
|
920
918
|
}
|
|
921
919
|
function Er(e) {
|
|
922
|
-
return
|
|
920
|
+
return Mr(e, Ot(e));
|
|
923
921
|
}
|
|
924
922
|
function Pr(e, t, a, r, u, l, n) {
|
|
925
|
-
var o =
|
|
923
|
+
var o = xe(e, a), s = xe(t, a), v = n.get(s);
|
|
926
924
|
if (v) {
|
|
927
925
|
_e(e, a, v);
|
|
928
926
|
return;
|
|
929
927
|
}
|
|
930
928
|
var b = l ? l(o, s, a + "", e, t, n) : void 0, C = b === void 0;
|
|
931
929
|
if (C) {
|
|
932
|
-
var
|
|
933
|
-
b = s,
|
|
930
|
+
var x = ve(s), k = !x && xt(s), L = !x && !k && At(s);
|
|
931
|
+
b = s, x || 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
932
|
}
|
|
935
933
|
C && (n.set(s, b), u(b, s, r, l, n), n.delete(s)), _e(e, a, b);
|
|
936
934
|
}
|
|
937
935
|
function Tt(e, t, a, r, u) {
|
|
938
|
-
e !== t &&
|
|
936
|
+
e !== t && Mo(t, function(l, n) {
|
|
939
937
|
if (u || (u = new oe()), Y(l))
|
|
940
938
|
Pr(e, t, n, a, Tt, r, u);
|
|
941
939
|
else {
|
|
942
|
-
var o = r ? r(
|
|
940
|
+
var o = r ? r(xe(e, n), l, n + "", e, t, u) : void 0;
|
|
943
941
|
o === void 0 && (o = l), _e(e, n, o);
|
|
944
942
|
}
|
|
945
943
|
}, Ot);
|
|
@@ -1081,18 +1079,18 @@ const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) =>
|
|
|
1081
1079
|
};
|
|
1082
1080
|
e.addCustomComponent = (n) => {
|
|
1083
1081
|
!Array.isArray(n) || (n == null ? void 0 : n.length) === 0 || n.forEach((o) => {
|
|
1084
|
-
const { component: s, componentProps: v, lng: b, lat: C, markerOptions:
|
|
1082
|
+
const { component: s, componentProps: v, lng: b, lat: C, markerOptions: x = {} } = o, k = typeof v == "function" ? v() : v, L = typeof s == "function" ? s() : s, c = () => l(L, k);
|
|
1085
1083
|
if (a.value === "baidu") {
|
|
1086
1084
|
const i = Lt.gcj02tobd09(b, C), h = new r.value.CustomOverlay(c, {
|
|
1087
1085
|
point: { lng: i[0], lat: i[1] },
|
|
1088
|
-
...
|
|
1086
|
+
...x
|
|
1089
1087
|
});
|
|
1090
1088
|
u.value.addOverlay(h), h.addEventListener("click", function(A) {
|
|
1091
1089
|
t("click-custom-component", o, A);
|
|
1092
1090
|
});
|
|
1093
1091
|
}
|
|
1094
1092
|
if (a.value === "gaode") {
|
|
1095
|
-
const i = l(L, k), h = new r.value.Marker({ content: i, position: [b, C], ...
|
|
1093
|
+
const i = l(L, k), h = new r.value.Marker({ content: i, position: [b, C], ...x });
|
|
1096
1094
|
u.value.add(h), r.value.event.addListener(h, "click", function(A) {
|
|
1097
1095
|
t("click-custom-component", o, A);
|
|
1098
1096
|
});
|
|
@@ -1176,7 +1174,7 @@ function Pt(e) {
|
|
|
1176
1174
|
function pn(e) {
|
|
1177
1175
|
return e.split("");
|
|
1178
1176
|
}
|
|
1179
|
-
var kt = "\\ud800-\\udfff", hn = "\\u0300-\\u036f", yn = "\\ufe20-\\ufe2f", mn = "\\u20d0-\\u20ff", bn = hn + yn + mn, _n = "\\ufe0e\\ufe0f", wn = "[" + kt + "]",
|
|
1177
|
+
var kt = "\\ud800-\\udfff", hn = "\\u0300-\\u036f", yn = "\\ufe20-\\ufe2f", mn = "\\u20d0-\\u20ff", bn = hn + yn + mn, _n = "\\ufe0e\\ufe0f", wn = "[" + kt + "]", Me = "[" + bn + "]", Ce = "\\ud83c[\\udffb-\\udfff]", xn = "(?:" + Me + "|" + Ce + ")", Rt = "[^" + kt + "]", Gt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Bt = "[\\ud800-\\udbff][\\udc00-\\udfff]", Mn = "\\u200d", Dt = xn + "?", zt = "[" + _n + "]?", Cn = "(?:" + Mn + "(?:" + [Rt, Gt, Bt].join("|") + ")" + zt + Dt + ")*", An = zt + Dt + Cn, Sn = "(?:" + [Rt + Me + "?", Me, Gt, Bt, wn].join("|") + ")", On = RegExp(Ce + "(?=" + Ce + ")|" + Sn + An, "g");
|
|
1180
1178
|
function Tn(e) {
|
|
1181
1179
|
return e.match(On) || [];
|
|
1182
1180
|
}
|
|
@@ -1431,11 +1429,11 @@ function wl(e) {
|
|
|
1431
1429
|
return Pn(ml(Kn(t).replace(_l, "")), e, "");
|
|
1432
1430
|
};
|
|
1433
1431
|
}
|
|
1434
|
-
var
|
|
1432
|
+
var xl = wl(function(e, t, a) {
|
|
1435
1433
|
return t = t.toLowerCase(), e + (a ? En(t) : t);
|
|
1436
1434
|
});
|
|
1437
|
-
const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./get-map-info/index.ts": Qr }),
|
|
1438
|
-
const a =
|
|
1435
|
+
const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./get-map-info/index.ts": Qr }), Ml = Object.keys(it).reduce((e, t) => {
|
|
1436
|
+
const a = xl(t.replace("./", "").split("/")[0]);
|
|
1439
1437
|
return e[a] = it[t].default, e;
|
|
1440
1438
|
}, {}), Cl = (e, t, a) => {
|
|
1441
1439
|
const r = S({});
|
|
@@ -1443,15 +1441,15 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1443
1441
|
const n = Hr({}, (e == null ? void 0 : e.options) || {}, (o, s) => {
|
|
1444
1442
|
if (Array.isArray(o)) return o.concat(s);
|
|
1445
1443
|
});
|
|
1446
|
-
Object.values(
|
|
1444
|
+
Object.values(Ml).forEach((o) => o(r.value, t, a, n.plugins || {}));
|
|
1447
1445
|
} };
|
|
1448
1446
|
}, Al = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
|
|
1449
|
-
const C = S(),
|
|
1447
|
+
const C = S(), x = S(), k = S();
|
|
1450
1448
|
let L = null;
|
|
1451
1449
|
const c = S(!1), i = S();
|
|
1452
1450
|
let h;
|
|
1453
|
-
const A = async (d, f, y,
|
|
1454
|
-
if (i.value = y,
|
|
1451
|
+
const A = async (d, f, y, M) => {
|
|
1452
|
+
if (i.value = y, M && (h = M), document.getElementById(d)) return R();
|
|
1455
1453
|
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
1454
|
m.setAttribute("id", d), m.setAttribute("src", N), document.body.appendChild(m), window[O] = () => {
|
|
1457
1455
|
R();
|
|
@@ -1460,8 +1458,8 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1460
1458
|
var N, B;
|
|
1461
1459
|
const { Map: d } = await google.maps.importLibrary("maps");
|
|
1462
1460
|
e.value = d;
|
|
1463
|
-
const { Place: f, AutocompleteSessionToken: y, AutocompleteSuggestion:
|
|
1464
|
-
|
|
1461
|
+
const { Place: f, AutocompleteSessionToken: y, AutocompleteSuggestion: M } = await google.maps.importLibrary("places");
|
|
1462
|
+
x.value = new y(), k.value = M, C.value = f;
|
|
1465
1463
|
const { AdvancedMarkerElement: m } = await google.maps.importLibrary("marker");
|
|
1466
1464
|
L = m;
|
|
1467
1465
|
const O = ((N = i.value) == null ? void 0 : N.mapOpt) ?? {};
|
|
@@ -1481,8 +1479,8 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1481
1479
|
}, _ = () => {
|
|
1482
1480
|
var d;
|
|
1483
1481
|
(d = t.value) == null || d.addListener("click", (f) => {
|
|
1484
|
-
var y,
|
|
1485
|
-
a.value && a.value.setMap(null), o.value = [(y = f == null ? void 0 : f.latLng) == null ? void 0 : y.lng(), (
|
|
1482
|
+
var y, M;
|
|
1483
|
+
a.value && a.value.setMap(null), o.value = [(y = f == null ? void 0 : f.latLng) == null ? void 0 : y.lng(), (M = f == null ? void 0 : f.latLng) == null ? void 0 : M.lat()], G(o.value, !0).then(() => {
|
|
1486
1484
|
var O;
|
|
1487
1485
|
const m = {
|
|
1488
1486
|
lng: parseFloat(o.value[0]),
|
|
@@ -1500,10 +1498,10 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1500
1498
|
var d;
|
|
1501
1499
|
if (!n.value && o.value.length, n.value && o.value.length > 0 ? await G(o.value) : n.value ? await U(n.value) : o.value.length > 0 && await G(o.value, !0), n.value && g(n.value, (f, y) => {
|
|
1502
1500
|
if (y && y.length) {
|
|
1503
|
-
const
|
|
1501
|
+
const M = y.find(
|
|
1504
1502
|
(m) => m.value === n.value || m.info.name === n.value
|
|
1505
1503
|
);
|
|
1506
|
-
|
|
1504
|
+
M ? v.value = M.info : v.value = {
|
|
1507
1505
|
district: "",
|
|
1508
1506
|
address: "",
|
|
1509
1507
|
name: n.value
|
|
@@ -1521,7 +1519,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1521
1519
|
// 鼠标移上去时显示的内容
|
|
1522
1520
|
}), o.value.length && ((d = t.value) == null || d.setCenter(f));
|
|
1523
1521
|
}
|
|
1524
|
-
}, G = (d, f = !1) => (d.join(","), new Promise((y,
|
|
1522
|
+
}, G = (d, f = !1) => (d.join(","), new Promise((y, M) => {
|
|
1525
1523
|
new google.maps.Geocoder().geocode({
|
|
1526
1524
|
location: {
|
|
1527
1525
|
lng: parseFloat(d[0]),
|
|
@@ -1532,7 +1530,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1532
1530
|
district: "",
|
|
1533
1531
|
address: "",
|
|
1534
1532
|
name: n.value
|
|
1535
|
-
}), y(O[0])) : (z.error(P("thirdPartyMapErrorRetry")),
|
|
1533
|
+
}), y(O[0])) : (z.error(P("thirdPartyMapErrorRetry")), M());
|
|
1536
1534
|
});
|
|
1537
1535
|
})), U = (d) => new Promise((f, y) => {
|
|
1538
1536
|
new google.maps.Geocoder().geocode({
|
|
@@ -1543,12 +1541,12 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1543
1541
|
}), T = async () => {
|
|
1544
1542
|
var d;
|
|
1545
1543
|
r.value = !0, navigator.geolocation && ((d = navigator.geolocation) == null || d.getCurrentPosition((f) => {
|
|
1546
|
-
var
|
|
1544
|
+
var M;
|
|
1547
1545
|
const y = {
|
|
1548
1546
|
lat: f.coords.latitude,
|
|
1549
1547
|
lng: f.coords.longitude
|
|
1550
1548
|
};
|
|
1551
|
-
(
|
|
1549
|
+
(M = t.value) == null || M.panTo(y), c.value = !1, r.value = !1;
|
|
1552
1550
|
}, (f) => {
|
|
1553
1551
|
z.error(P("获取定位失败")), r.value = !1;
|
|
1554
1552
|
}, {
|
|
@@ -1567,13 +1565,13 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1567
1565
|
let y = {
|
|
1568
1566
|
input: d,
|
|
1569
1567
|
origin: { lng: parseFloat(o.value[0]), lat: parseFloat(o.value[1]) },
|
|
1570
|
-
sessionToken:
|
|
1568
|
+
sessionToken: x.value
|
|
1571
1569
|
};
|
|
1572
|
-
const { suggestions:
|
|
1573
|
-
if (l.value = [], !
|
|
1570
|
+
const { suggestions: M } = await k.value.fetchAutocompleteSuggestions(y);
|
|
1571
|
+
if (l.value = [], !M) return f([]);
|
|
1574
1572
|
let m = [];
|
|
1575
1573
|
await Promise.all(
|
|
1576
|
-
|
|
1574
|
+
M.map((O) => (async () => {
|
|
1577
1575
|
var J, le;
|
|
1578
1576
|
let B = (O == null ? void 0 : O.placePrediction).toPlace();
|
|
1579
1577
|
await B.fetchFields({
|
|
@@ -1636,7 +1634,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1636
1634
|
const a = S("gaode"), r = S(), u = S(), l = I(null), n = I(null), o = I(null), s = S(!0), v = S(null), b = S([]), C = Se(() => ({
|
|
1637
1635
|
width: e.width ? Q(e.width) : "100%",
|
|
1638
1636
|
height: e.height ? Q(e.height) : "100%"
|
|
1639
|
-
})),
|
|
1637
|
+
})), x = S(""), k = S([]), L = S(""), c = S(), {
|
|
1640
1638
|
loadJavascript: i,
|
|
1641
1639
|
getLocationByInputSearch: h,
|
|
1642
1640
|
handleSelectAddress: A,
|
|
@@ -1648,7 +1646,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1648
1646
|
mapLoading: s,
|
|
1649
1647
|
$autocomplete: v,
|
|
1650
1648
|
searchResultList: b,
|
|
1651
|
-
innerInput:
|
|
1649
|
+
innerInput: x,
|
|
1652
1650
|
innerPoint: k,
|
|
1653
1651
|
adCode: L,
|
|
1654
1652
|
addressInfo: c
|
|
@@ -1664,7 +1662,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1664
1662
|
mapLoading: s,
|
|
1665
1663
|
$autocomplete: v,
|
|
1666
1664
|
searchResultList: b,
|
|
1667
|
-
innerInput:
|
|
1665
|
+
innerInput: x,
|
|
1668
1666
|
innerPoint: k,
|
|
1669
1667
|
adCode: L,
|
|
1670
1668
|
addressInfo: c
|
|
@@ -1682,7 +1680,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1682
1680
|
mapLoading: s,
|
|
1683
1681
|
$autocomplete: v,
|
|
1684
1682
|
searchResultList: b,
|
|
1685
|
-
innerInput:
|
|
1683
|
+
innerInput: x,
|
|
1686
1684
|
innerPoint: k,
|
|
1687
1685
|
adCode: L,
|
|
1688
1686
|
addressInfo: c
|
|
@@ -1691,10 +1689,10 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1691
1689
|
MapGL: l,
|
|
1692
1690
|
map: n,
|
|
1693
1691
|
innerPoint: k,
|
|
1694
|
-
innerInput:
|
|
1692
|
+
innerInput: x,
|
|
1695
1693
|
adCode: L,
|
|
1696
1694
|
addressInfo: c
|
|
1697
|
-
}),
|
|
1695
|
+
}), M = () => {
|
|
1698
1696
|
a.value === "baidu" && i(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, O), a.value === "gaode" && _(
|
|
1699
1697
|
r.value,
|
|
1700
1698
|
u.value,
|
|
@@ -1720,13 +1718,13 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1720
1718
|
};
|
|
1721
1719
|
Oe(async () => {
|
|
1722
1720
|
var V, F, J, le, Ve;
|
|
1723
|
-
if (e.defaultLongitude && e.defaultLatitude && (k.value = [e.defaultLongitude, e.defaultLatitude]),
|
|
1721
|
+
if (e.defaultLongitude && e.defaultLatitude && (k.value = [e.defaultLongitude, e.defaultLatitude]), x.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((V = e == null ? void 0 : e.sdkConfig) != null && V.akValue))
|
|
1724
1722
|
a.value = ((F = e.sdkConfig) == null ? void 0 : F.mapType) ?? "gaode", r.value = (J = e.sdkConfig) == null ? void 0 : J.akValue, u.value = (le = e.sdkConfig) == null ? void 0 : le.secretKey;
|
|
1725
1723
|
else {
|
|
1726
1724
|
const K = await m((Ve = e == null ? void 0 : e.sdkConfig) == null ? void 0 : Ve.mapType);
|
|
1727
1725
|
K && (a.value = (K == null ? void 0 : K.mapType) ?? "gaode", r.value = K == null ? void 0 : K.akVal, u.value = K == null ? void 0 : K.secretK);
|
|
1728
1726
|
}
|
|
1729
|
-
|
|
1727
|
+
M();
|
|
1730
1728
|
});
|
|
1731
1729
|
const O = () => {
|
|
1732
1730
|
f.value = n.value, y(), a.value === "baidu" && n.value.addEventListener("tilesloaded", () => {
|
|
@@ -1737,7 +1735,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1737
1735
|
};
|
|
1738
1736
|
return {
|
|
1739
1737
|
mapStyle: C,
|
|
1740
|
-
innerInput:
|
|
1738
|
+
innerInput: x,
|
|
1741
1739
|
getLocationByInputSearch: (V, F) => {
|
|
1742
1740
|
a.value === "baidu" && h(V, F), a.value === "gaode" && $(V, F), a.value === "google" && g(V, F);
|
|
1743
1741
|
},
|
|
@@ -1778,7 +1776,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1778
1776
|
mapLoading: v,
|
|
1779
1777
|
$autocomplete: b,
|
|
1780
1778
|
googlePositionCityLocal: C,
|
|
1781
|
-
showGetLocationBtn:
|
|
1779
|
+
showGetLocationBtn: x
|
|
1782
1780
|
} = Sl(a, r);
|
|
1783
1781
|
return (k, L) => {
|
|
1784
1782
|
const c = Pe, i = ke;
|
|
@@ -1798,7 +1796,6 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1798
1796
|
ref: b,
|
|
1799
1797
|
modelValue: D(l),
|
|
1800
1798
|
"onUpdate:modelValue": L[0] || (L[0] = (h) => ta(l) ? l.value = h : null),
|
|
1801
|
-
modelModifiers: { trim: !0 },
|
|
1802
1799
|
"fetch-suggestions": D(n),
|
|
1803
1800
|
placeholder: D(P)("请输入位置"),
|
|
1804
1801
|
style: { width: "100%" },
|
|
@@ -1838,7 +1835,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1838
1835
|
512
|
|
1839
1836
|
/* NEED_PATCH */
|
|
1840
1837
|
), [
|
|
1841
|
-
[Fe, D(
|
|
1838
|
+
[Fe, D(x)]
|
|
1842
1839
|
]),
|
|
1843
1840
|
Z(W(
|
|
1844
1841
|
"div",
|
|
@@ -1860,7 +1857,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1860
1857
|
);
|
|
1861
1858
|
};
|
|
1862
1859
|
}
|
|
1863
|
-
}), Ll = /* @__PURE__ */ Be(jl, [["__scopeId", "data-v-
|
|
1860
|
+
}), Ll = /* @__PURE__ */ Be(jl, [["__scopeId", "data-v-9c0f471e"]]), El = {
|
|
1864
1861
|
请输入位置: { "zh-CN": "请输入位置", en: "Please enter location", _appCode: "framework" },
|
|
1865
1862
|
获取地图配置信息失败: {
|
|
1866
1863
|
"zh-CN": "获取地图配置信息失败",
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-map[data-v-
|
|
1
|
+
.das-map[data-v-95b9bcca]{position:relative}.das-map .search-input[data-v-95b9bcca]{position:absolute;top:20px;left:20px;width:400px;z-index:999}.das-map #map[data-v-95b9bcca]{width:100%;height:100%}.das-map[data-v-5444de43]{position:relative}.das-map .search-input[data-v-5444de43]{position:absolute;top:20px;left:20px;width:400px;z-index:999}.das-map #map[data-v-5444de43]{width:100%;height:100%}.das-map[data-v-9c0f471e]{position:relative}.das-map .search-input[data-v-9c0f471e]{position:absolute;top:20px;left:20px;width:400px;z-index:999}.das-map .location-icon1[data-v-9c0f471e]{position:absolute;width:100%;height:100%;z-index:998;display:flex;align-items:center;justify-content:center;background-color:#e5e3df}.das-map #map[data-v-9c0f471e]{width:100%;height:100%}
|