@me-framework/me-ui-antdv-next 0.0.26 → 0.0.28
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/dist/chunks/input-icon-selector-BrrR4KK6.js +228 -0
- package/dist/icon/index.js +1 -1
- package/dist/input-gps/index.js +85 -233
- package/dist/input-gps/index.vue.d.ts +3 -1
- package/dist/input-gps/map.vue.d.ts +1 -1
- package/dist/input-gps/types.d.ts +9 -5
- package/dist/input-icon-selector/index.js +1 -1
- package/dist/input-icon-selector/index.vue.d.ts +1 -1
- package/dist/load-json/index.css +1 -0
- package/dist/load-json/index.js +81 -24275
- package/dist/me-ui-antdv-next.js +61 -47
- package/dist/me-ui-antdv-next.umd.cjs +2 -2
- package/dist/message/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/nav/index.js +1 -1
- package/dist/resolver/index.d.ts +1 -1
- package/dist/resolver/index.js +7 -4
- package/dist/tree-menu/index.js +2 -2
- package/package.json +6 -6
- package/dist/chunks/input-icon-selector-D5c45QL8.js +0 -227
- package/dist/chunks/rolldown-runtime-DtPi1Y-2.js +0 -13
- package/dist/load-json.css +0 -1
- /package/dist/{base.css → base/index.css} +0 -0
- /package/dist/{body.css → body/index.css} +0 -0
- /package/dist/{box.css → box/index.css} +0 -0
- /package/dist/{breadcrumb.css → breadcrumb/index.css} +0 -0
- /package/dist/{card.css → card/index.css} +0 -0
- /package/dist/chunks/{icon-DdoH0MfT.js → icon-CXjgApCy.js} +0 -0
- /package/dist/chunks/{message-CPHX2tAR.js → message-D2zYiiQe.js} +0 -0
- /package/dist/chunks/{modal-Dke8ng3P.js → modal-KBZYtIHD.js} +0 -0
- /package/dist/{icon.css → icon/index.css} +0 -0
- /package/dist/{input-gps.css → input-gps/index.css} +0 -0
- /package/dist/{input-icon-selector.css → input-icon-selector/index.css} +0 -0
- /package/dist/{input-radio.css → input-radio/index.css} +0 -0
- /package/dist/{login-page.css → login-page/index.css} +0 -0
- /package/dist/{menu.css → menu/index.css} +0 -0
- /package/dist/{message.css → message/index.css} +0 -0
- /package/dist/{modal.css → modal/index.css} +0 -0
- /package/dist/{nav.css → nav/index.css} +0 -0
- /package/dist/{skeleton.css → skeleton/index.css} +0 -0
- /package/dist/{tree-menu.css → tree-menu/index.css} +0 -0
package/dist/me-ui-antdv-next.js
CHANGED
|
@@ -3336,7 +3336,7 @@ var xn = bn, Sn = /* @__PURE__ */ oe((/* @__PURE__ */ ie(((e, t) => {
|
|
|
3336
3336
|
isFullscreen: { type: Boolean },
|
|
3337
3337
|
modelValue: {},
|
|
3338
3338
|
mapKey: {},
|
|
3339
|
-
|
|
3339
|
+
mapSecurityKey: {}
|
|
3340
3340
|
},
|
|
3341
3341
|
emits: ["update:modelValue"],
|
|
3342
3342
|
setup(e, { expose: t, emit: r }) {
|
|
@@ -3357,8 +3357,9 @@ var xn = bn, Sn = /* @__PURE__ */ oe((/* @__PURE__ */ ie(((e, t) => {
|
|
|
3357
3357
|
});
|
|
3358
3358
|
let p, m, h, _;
|
|
3359
3359
|
function y() {
|
|
3360
|
-
|
|
3361
|
-
|
|
3360
|
+
let e = i.mapSecurityKey || "f4b453739d9bbfaeedb62f53dcf4c436";
|
|
3361
|
+
e && typeof window < "u" && (window._AMapSecurityConfig = { securityJsCode: e }), Sn.default.load({
|
|
3362
|
+
key: i.mapKey || "43046d94499dc85dec81037e5ac14ee9",
|
|
3362
3363
|
version: "2.0",
|
|
3363
3364
|
plugins: [
|
|
3364
3365
|
"AMap.ToolBar",
|
|
@@ -3368,7 +3369,7 @@ var xn = bn, Sn = /* @__PURE__ */ oe((/* @__PURE__ */ ie(((e, t) => {
|
|
|
3368
3369
|
"AMap.Geocoder"
|
|
3369
3370
|
]
|
|
3370
3371
|
}).then((e) => {
|
|
3371
|
-
m = e, c.value = new e.Map("mapcontainer"),
|
|
3372
|
+
m = e, c.value = new e.Map("mapcontainer"), f.value.longitude && f.value.latitude && T(f.value), e.plugin([
|
|
3372
3373
|
"AMap.ToolBar",
|
|
3373
3374
|
"AMap.Scale",
|
|
3374
3375
|
"AMap.Geolocation",
|
|
@@ -3389,10 +3390,10 @@ var xn = bn, Sn = /* @__PURE__ */ oe((/* @__PURE__ */ ie(((e, t) => {
|
|
|
3389
3390
|
pageIndex: 1,
|
|
3390
3391
|
citylimit: !1,
|
|
3391
3392
|
autoFitView: !0
|
|
3393
|
+
}), c.value.on("click", S), e.Event.addListener(p, "markerClick", function(e) {
|
|
3394
|
+
let t = { ...f.value };
|
|
3395
|
+
t.longitude = e.data.location.lng, t.latitude = e.data.location.lat, t.name = e.data.name, s("update:modelValue", t);
|
|
3392
3396
|
});
|
|
3393
|
-
}), e.Event.addListener(p, "markerClick", function(e) {
|
|
3394
|
-
let t = { ...f.value };
|
|
3395
|
-
t.longitude = e.data.location.lng, t.latitude = e.data.location.lat, t.name = e.data.name, s("update:modelValue", t);
|
|
3396
3397
|
});
|
|
3397
3398
|
});
|
|
3398
3399
|
}
|
|
@@ -3419,8 +3420,12 @@ var xn = bn, Sn = /* @__PURE__ */ oe((/* @__PURE__ */ ie(((e, t) => {
|
|
|
3419
3420
|
});
|
|
3420
3421
|
}
|
|
3421
3422
|
function S(e) {
|
|
3423
|
+
if (!_) return;
|
|
3422
3424
|
let { lng: t, lat: n } = e.lnglat;
|
|
3423
|
-
|
|
3425
|
+
s("update:modelValue", {
|
|
3426
|
+
longitude: t,
|
|
3427
|
+
latitude: n
|
|
3428
|
+
}), _.getAddress([t, n], (e, r) => {
|
|
3424
3429
|
if (e === "complete" && r.info === "OK") {
|
|
3425
3430
|
let { addressComponent: e, formattedAddress: i } = r.regeocode, { city: a, province: o, district: c } = e;
|
|
3426
3431
|
a ||= o, s("update:modelValue", {
|
|
@@ -3517,56 +3522,65 @@ var xn = bn, Sn = /* @__PURE__ */ oe((/* @__PURE__ */ ie(((e, t) => {
|
|
|
3517
3522
|
name: "MeInputGps",
|
|
3518
3523
|
__name: "index",
|
|
3519
3524
|
props: {
|
|
3525
|
+
modelValue: {},
|
|
3520
3526
|
latitude: {},
|
|
3521
3527
|
longitude: {},
|
|
3522
3528
|
address: {},
|
|
3523
3529
|
mapKey: {},
|
|
3524
|
-
|
|
3530
|
+
mapSecurityKey: {},
|
|
3525
3531
|
placeholder: { default: "请选择位置" },
|
|
3526
3532
|
disabled: {
|
|
3527
3533
|
type: Boolean,
|
|
3528
3534
|
default: !1
|
|
3529
3535
|
}
|
|
3530
3536
|
},
|
|
3531
|
-
emits: ["confirm"],
|
|
3532
|
-
setup(
|
|
3533
|
-
let
|
|
3534
|
-
|
|
3535
|
-
|
|
3537
|
+
emits: ["update:modelValue", "confirm"],
|
|
3538
|
+
setup(t, { emit: o }) {
|
|
3539
|
+
let s = t, u = o, d = n(() => s.modelValue && Object.keys(s.modelValue).length ? s.modelValue : {
|
|
3540
|
+
latitude: s.latitude,
|
|
3541
|
+
longitude: s.longitude,
|
|
3542
|
+
address: s.address
|
|
3543
|
+
}), f = C({}), p = C(!1), h = C(!1), g = C(null), _ = n(() => f.value.latitude ? `经度:${f.value.longitude},纬度:${f.value.latitude}` : ""), y = n(() => s.mapKey || "43046d94499dc85dec81037e5ac14ee9"), x = n(() => s.mapSecurityKey || "f4b453739d9bbfaeedb62f53dcf4c436"), S = () => {
|
|
3544
|
+
s.disabled || (p.value = !0);
|
|
3545
|
+
}, w = C(!1), T = () => {
|
|
3536
3546
|
let e = {
|
|
3537
|
-
latitude:
|
|
3538
|
-
longitude:
|
|
3539
|
-
address:
|
|
3547
|
+
latitude: f.value.latitude || "",
|
|
3548
|
+
longitude: f.value.longitude || "",
|
|
3549
|
+
address: f.value.address || ""
|
|
3540
3550
|
};
|
|
3541
|
-
|
|
3542
|
-
},
|
|
3543
|
-
|
|
3551
|
+
w.value = !0, u("update:modelValue", { ...e }), u("confirm", { ...e }), p.value = !1;
|
|
3552
|
+
}, E = (e) => {
|
|
3553
|
+
h.value = e;
|
|
3544
3554
|
};
|
|
3545
|
-
return F(
|
|
3555
|
+
return F(p, (e) => {
|
|
3546
3556
|
e && m(() => {
|
|
3547
3557
|
setTimeout(() => {
|
|
3548
|
-
|
|
3558
|
+
g.value?.resize(), g.value?.setCenter();
|
|
3549
3559
|
}, 300);
|
|
3550
3560
|
});
|
|
3561
|
+
}), F(p, (e) => {
|
|
3562
|
+
e || (w.value ? w.value = !1 : f.value = { ...d.value });
|
|
3563
|
+
}), F(d, (e) => {
|
|
3564
|
+
p.value || (f.value = { ...e });
|
|
3551
3565
|
}), v(() => {
|
|
3552
|
-
|
|
3553
|
-
}), (
|
|
3554
|
-
let
|
|
3566
|
+
f.value = { ...d.value };
|
|
3567
|
+
}), (n, o) => {
|
|
3568
|
+
let s = D("a-input"), u = D("a-button"), d = D("a-space-compact");
|
|
3555
3569
|
return b(), a("div", Tn, [
|
|
3556
|
-
l(
|
|
3557
|
-
default: I(() => [l(
|
|
3558
|
-
value:
|
|
3559
|
-
placeholder:
|
|
3560
|
-
disabled:
|
|
3570
|
+
l(d, { style: { width: "100%" } }, {
|
|
3571
|
+
default: I(() => [l(s, {
|
|
3572
|
+
value: _.value,
|
|
3573
|
+
placeholder: t.placeholder,
|
|
3574
|
+
disabled: t.disabled,
|
|
3561
3575
|
readonly: "",
|
|
3562
3576
|
class: "me-input-gps__input"
|
|
3563
3577
|
}, null, 8, [
|
|
3564
3578
|
"value",
|
|
3565
3579
|
"placeholder",
|
|
3566
3580
|
"disabled"
|
|
3567
|
-
]), l(
|
|
3568
|
-
disabled:
|
|
3569
|
-
onClick:
|
|
3581
|
+
]), l(u, {
|
|
3582
|
+
disabled: t.disabled,
|
|
3583
|
+
onClick: S
|
|
3570
3584
|
}, {
|
|
3571
3585
|
default: I(() => [l(j(Ee), {
|
|
3572
3586
|
name: "MapPin",
|
|
@@ -3576,29 +3590,29 @@ var xn = bn, Sn = /* @__PURE__ */ oe((/* @__PURE__ */ ie(((e, t) => {
|
|
|
3576
3590
|
}, 8, ["disabled"])]),
|
|
3577
3591
|
_: 1
|
|
3578
3592
|
}),
|
|
3579
|
-
|
|
3593
|
+
f.value?.latitude ? (b(), a("div", En, [f.value.address ? (b(), a(e, { key: 0 }, [c(" 位置:" + A(f.value.address), 1)], 64)) : (b(), a(e, { key: 1 }, [c(" 位置:经度 " + A(f.value.longitude) + ",纬度 " + A(f.value.latitude), 1)], 64))])) : i("", !0),
|
|
3580
3594
|
l(j(It), {
|
|
3581
|
-
open:
|
|
3582
|
-
"onUpdate:open":
|
|
3595
|
+
open: p.value,
|
|
3596
|
+
"onUpdate:open": o[1] ||= (e) => p.value = e,
|
|
3583
3597
|
title: "选择位置",
|
|
3584
3598
|
width: 800,
|
|
3585
|
-
onFullscreenChange:
|
|
3586
|
-
onOk:
|
|
3599
|
+
onFullscreenChange: E,
|
|
3600
|
+
onOk: T
|
|
3587
3601
|
}, {
|
|
3588
|
-
default: I(() => [
|
|
3602
|
+
default: I(() => [p.value && y.value ? (b(), r(wn, {
|
|
3589
3603
|
key: 0,
|
|
3590
3604
|
ref_key: "mapRef",
|
|
3591
|
-
ref:
|
|
3592
|
-
"is-fullscreen":
|
|
3593
|
-
modelValue:
|
|
3594
|
-
"onUpdate:modelValue":
|
|
3595
|
-
"map-key":
|
|
3596
|
-
"security-
|
|
3605
|
+
ref: g,
|
|
3606
|
+
"is-fullscreen": h.value,
|
|
3607
|
+
modelValue: f.value,
|
|
3608
|
+
"onUpdate:modelValue": o[0] ||= (e) => f.value = e,
|
|
3609
|
+
"map-key": y.value,
|
|
3610
|
+
"map-security-key": x.value
|
|
3597
3611
|
}, null, 8, [
|
|
3598
3612
|
"is-fullscreen",
|
|
3599
3613
|
"modelValue",
|
|
3600
3614
|
"map-key",
|
|
3601
|
-
"security-
|
|
3615
|
+
"map-security-key"
|
|
3602
3616
|
])) : i("", !0)]),
|
|
3603
3617
|
_: 1
|
|
3604
3618
|
}, 8, ["open"])
|
|
@@ -28682,7 +28696,7 @@ var gr = hr, _r = [
|
|
|
28682
28696
|
typeof window < "u" && window.Vue && vr(window.Vue);
|
|
28683
28697
|
var yr = {
|
|
28684
28698
|
install: vr,
|
|
28685
|
-
version: "0.0.
|
|
28699
|
+
version: "0.0.27"
|
|
28686
28700
|
};
|
|
28687
28701
|
//#endregion
|
|
28688
28702
|
export { ye as $message, ye as MeMessage, Ye as MeBody, je as MeBox, Ie as MeBreadcrumb, dr as MeCard, Ee as MeIcon, On as MeInputGps, sn as MeInputIconSelector, jn as MeInputRadio, Un as MeLoadJson, rr as MeLoginPage, vt as MeMenu, $ as MeMessageComponent, It as MeModal, jt as MeNav, gr as MeSkeleton, xn as MeTreeMenu, yr as default, vr as install, Te as loadIconfont };
|