@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.
Files changed (41) hide show
  1. package/dist/chunks/input-icon-selector-BrrR4KK6.js +228 -0
  2. package/dist/icon/index.js +1 -1
  3. package/dist/input-gps/index.js +85 -233
  4. package/dist/input-gps/index.vue.d.ts +3 -1
  5. package/dist/input-gps/map.vue.d.ts +1 -1
  6. package/dist/input-gps/types.d.ts +9 -5
  7. package/dist/input-icon-selector/index.js +1 -1
  8. package/dist/input-icon-selector/index.vue.d.ts +1 -1
  9. package/dist/load-json/index.css +1 -0
  10. package/dist/load-json/index.js +81 -24275
  11. package/dist/me-ui-antdv-next.js +61 -47
  12. package/dist/me-ui-antdv-next.umd.cjs +2 -2
  13. package/dist/message/index.js +1 -1
  14. package/dist/modal/index.js +1 -1
  15. package/dist/nav/index.js +1 -1
  16. package/dist/resolver/index.d.ts +1 -1
  17. package/dist/resolver/index.js +7 -4
  18. package/dist/tree-menu/index.js +2 -2
  19. package/package.json +6 -6
  20. package/dist/chunks/input-icon-selector-D5c45QL8.js +0 -227
  21. package/dist/chunks/rolldown-runtime-DtPi1Y-2.js +0 -13
  22. package/dist/load-json.css +0 -1
  23. /package/dist/{base.css → base/index.css} +0 -0
  24. /package/dist/{body.css → body/index.css} +0 -0
  25. /package/dist/{box.css → box/index.css} +0 -0
  26. /package/dist/{breadcrumb.css → breadcrumb/index.css} +0 -0
  27. /package/dist/{card.css → card/index.css} +0 -0
  28. /package/dist/chunks/{icon-DdoH0MfT.js → icon-CXjgApCy.js} +0 -0
  29. /package/dist/chunks/{message-CPHX2tAR.js → message-D2zYiiQe.js} +0 -0
  30. /package/dist/chunks/{modal-Dke8ng3P.js → modal-KBZYtIHD.js} +0 -0
  31. /package/dist/{icon.css → icon/index.css} +0 -0
  32. /package/dist/{input-gps.css → input-gps/index.css} +0 -0
  33. /package/dist/{input-icon-selector.css → input-icon-selector/index.css} +0 -0
  34. /package/dist/{input-radio.css → input-radio/index.css} +0 -0
  35. /package/dist/{login-page.css → login-page/index.css} +0 -0
  36. /package/dist/{menu.css → menu/index.css} +0 -0
  37. /package/dist/{message.css → message/index.css} +0 -0
  38. /package/dist/{modal.css → modal/index.css} +0 -0
  39. /package/dist/{nav.css → nav/index.css} +0 -0
  40. /package/dist/{skeleton.css → skeleton/index.css} +0 -0
  41. /package/dist/{tree-menu.css → tree-menu/index.css} +0 -0
@@ -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
- securityJsCode: {}
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
- i.securityJsCode && typeof window < "u" && (window._AMapSecurityConfig = { securityJsCode: i.securityJsCode }), Sn.default.load({
3361
- key: i.mapKey || "",
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"), c.value.on("click", S), f.value.longitude && f.value.latitude && T(f.value), e.plugin([
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
- _.getAddress([t, n], (e, r) => {
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
- securityJsCode: {},
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(e, { emit: t }) {
3533
- let o = e, s = t, c = C({}), u = C(!1), d = C(!1), f = C(null), p = n(() => c.value.latitude ? `经度:${c.value.longitude},纬度:${c.value.latitude}` : ""), h = n(() => o.mapKey), g = n(() => o.securityJsCode), _ = () => {
3534
- o.disabled || (u.value = !0);
3535
- }, y = () => {
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: c.value.latitude || "",
3538
- longitude: c.value.longitude || "",
3539
- address: c.value.address || ""
3547
+ latitude: f.value.latitude || "",
3548
+ longitude: f.value.longitude || "",
3549
+ address: f.value.address || ""
3540
3550
  };
3541
- s("confirm", e), u.value = !1;
3542
- }, x = (e) => {
3543
- d.value = e;
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(u, (e) => {
3555
+ return F(p, (e) => {
3546
3556
  e && m(() => {
3547
3557
  setTimeout(() => {
3548
- f.value?.resize(), f.value?.setCenter();
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
- c.value.latitude = o.latitude, c.value.longitude = o.longitude, c.value.address = o.address;
3553
- }), (t, n) => {
3554
- let o = D("a-input"), s = D("a-button"), m = D("a-space-compact");
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(m, { style: { width: "100%" } }, {
3557
- default: I(() => [l(o, {
3558
- value: p.value,
3559
- placeholder: e.placeholder,
3560
- disabled: e.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(s, {
3568
- disabled: e.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
- c.value?.address ? (b(), a("div", En, " 位置:" + A(c.value.address), 1)) : i("", !0),
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: u.value,
3582
- "onUpdate:open": n[1] ||= (e) => u.value = e,
3595
+ open: p.value,
3596
+ "onUpdate:open": o[1] ||= (e) => p.value = e,
3583
3597
  title: "选择位置",
3584
3598
  width: 800,
3585
- onFullscreenChange: x,
3586
- onOk: y
3599
+ onFullscreenChange: E,
3600
+ onOk: T
3587
3601
  }, {
3588
- default: I(() => [u.value && h.value ? (b(), r(wn, {
3602
+ default: I(() => [p.value && y.value ? (b(), r(wn, {
3589
3603
  key: 0,
3590
3604
  ref_key: "mapRef",
3591
- ref: f,
3592
- "is-fullscreen": d.value,
3593
- modelValue: c.value,
3594
- "onUpdate:modelValue": n[0] ||= (e) => c.value = e,
3595
- "map-key": h.value,
3596
- "security-js-code": g.value
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-js-code"
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.25"
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 };