zhihao-ui 1.3.6 → 1.3.8

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.
@@ -1,5 +1,5 @@
1
- import { ref, computed, watch, onMounted, onBeforeUnmount, h, nextTick, createVNode, render, defineComponent, openBlock, createElementBlock, inject, createElementVNode, Fragment } from "vue";
2
1
  import { h as hooks, p as fromLonLat, t as transformExtent, T as Text, F as Fill, S as Style, q as getLength, O as Overlay, P as Polyline, L as LineString, r as Feature, s as Point, V as VectorLayer, u as VectorSource, i as cloneDeep, v as buffer, w as Stroke, C as CircleStyle, x as transform, y as getVectorContext, z as debounce, R as RBush$1, I as Icon, D as DoubleClickZoom, A as Draw, B as unByKey, G as getUid, M as Map$2, H as TileLayer, X as XYZ, J as View, K as defaults, N as toLonLat, Q as ScaleLine$1, U as getArea, W as getCenter$1, Y as MultiPoint } from "./vendor-Cc_TVxUO.js";
2
+ import { ref, computed, watch, onMounted, onBeforeUnmount, h, nextTick, createVNode, render, defineComponent, openBlock, createElementBlock, inject, createElementVNode, Fragment } from "vue";
3
3
  import { _ as _export_sfc } from "./Button-NgQ5sHIG.js";
4
4
  import { w as withInstall } from "./utils-DSw1USoH.js";
5
5
  const TIAN_DI_TU_KEY = "a6e8f78974f2581f2ca00485b40c948f", MAP_ZOOM = {
@@ -1611,10 +1611,15 @@ const locationTruck = async (e) => {
1611
1611
  },
1612
1612
  setup(e, { expose: t }) {
1613
1613
  const n = ref(), o = ref(), r = e;
1614
- return console.log(r), onMounted(() => {
1614
+ console.log(r), onMounted(() => {
1615
1615
  var a;
1616
1616
  initMap(r), setProps(r), setShowLayerType(r.layerType), setGreenTileVisible(r.showGreenLayer), (a = o.value) == null || a.setScaleLine(r.scaleLineUnit);
1617
- }), t({
1617
+ });
1618
+ const l = () => {
1619
+ const a = getView().calculateExtent(getSize()), s = transform([a[0], a[1]], projection.mercator, projection.data), c = transform([a[2], a[3]], projection.mercator, projection.data);
1620
+ return [s[0], s[1], c[0], c[1]];
1621
+ };
1622
+ return t({
1618
1623
  getInstall,
1619
1624
  getZoom,
1620
1625
  setZoom,
@@ -1647,6 +1652,9 @@ const locationTruck = async (e) => {
1647
1652
  clear: clearPortList,
1648
1653
  selected: selectedPort
1649
1654
  },
1655
+ location: {
1656
+ ...location
1657
+ },
1650
1658
  drawLine,
1651
1659
  // 绘制矩形
1652
1660
  drawPolygon,
@@ -1659,10 +1667,7 @@ const locationTruck = async (e) => {
1659
1667
  playTrack
1660
1668
  },
1661
1669
  utils: {
1662
- getCalculateExtent: () => {
1663
- const a = getView().calculateExtent(getSize()), s = transform([a[0], a[1]], projection.mercator, projection.data), c = transform([a[2], a[3]], projection.mercator, projection.data);
1664
- return [s[0], s[1], c[0], c[1]];
1665
- },
1670
+ getCalculateExtent: l,
1666
1671
  convertSixHundredThousandToLatLng,
1667
1672
  calculateCirclePoints
1668
1673
  }
@@ -1680,7 +1685,7 @@ const locationTruck = async (e) => {
1680
1685
  createVNode(ZoomControl, { ref: "zoomControlRef" }, null, 512)
1681
1686
  ], 64));
1682
1687
  }
1683
- }), Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5da7190c"]]), ZhMap = withInstall(Map$1);
1688
+ }), Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-721ece04"]]), ZhMap = withInstall(Map$1);
1684
1689
  export {
1685
1690
  ZhMap as Z
1686
1691
  };
package/dist/es/index.js CHANGED
@@ -17,7 +17,7 @@ import { Z as B } from "./BaseInfo-DFEg4oWo.js";
17
17
  import { Z as g } from "./DetailHeader-DDDbFDig.js";
18
18
  import { Z as x } from "./DiyDataTable-DlgBshaZ.js";
19
19
  import { D as V } from "./DiyDataTable-DlgBshaZ.js";
20
- import { Z as G } from "./Map-dW7d39YT.js";
20
+ import { Z as G } from "./Map-C3C8lRE-.js";
21
21
  import { Z as M } from "./Table-iJRuASc3.js";
22
22
  import { Z as $ } from "./BaseItem-BvdMV2Gu.js";
23
23
  const A = [