sctj-components 1.0.22 → 1.0.24

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.
@@ -30,7 +30,7 @@ if (typeof window !== "undefined") {
30
30
  loadSvg();
31
31
  }
32
32
  }
33
- const index_vue_vue_type_style_index_0_scoped_9371585e_lang = "";
33
+ const index_vue_vue_type_style_index_0_scoped_659e1d01_lang = "";
34
34
  const _export_sfc = (sfc, props) => {
35
35
  const target = sfc.__vccOpts || sfc;
36
36
  for (const [key, val] of props) {
@@ -72,7 +72,7 @@ const _sfc_main$q = {
72
72
  "disable-transitions": true,
73
73
  key: item.value + "",
74
74
  index: index2,
75
- type: item.elTagType === "primary" ? "" : item.elTagType,
75
+ type: item.elTagType === "primary" ? "primary" : item.elTagType,
76
76
  class: normalizeClass(item.elTagClass)
77
77
  }, {
78
78
  default: withCtx(() => [
@@ -87,7 +87,7 @@ const _sfc_main$q = {
87
87
  };
88
88
  }
89
89
  };
90
- const SCTJDictTag = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-9371585e"]]);
90
+ const SCTJDictTag = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-659e1d01"]]);
91
91
  const index_vue_vue_type_style_index_0_scope_true_lang = "";
92
92
  const _hoisted_1$j = ["xlink:href", "fill"];
93
93
  const _sfc_main$p = {
@@ -4114,7 +4114,7 @@ const _sfc_main$5 = {
4114
4114
  };
4115
4115
  }
4116
4116
  };
4117
- const index_vue_vue_type_style_index_0_scoped_24729613_lang = "";
4117
+ const index_vue_vue_type_style_index_0_scoped_23f6e80a_lang = "";
4118
4118
  const _hoisted_1$2 = { class: "action-container" };
4119
4119
  const _hoisted_2$2 = {
4120
4120
  key: 0,
@@ -4193,8 +4193,8 @@ const _sfc_main$4 = {
4193
4193
  setup(__props, { expose, emit }) {
4194
4194
  const props = __props;
4195
4195
  useCssVars((_ctx) => ({
4196
- "c5256a18": __props.width,
4197
- "1325cc8e": __props.height
4196
+ "21fc5abb": __props.width,
4197
+ "03c002d2": __props.height
4198
4198
  }));
4199
4199
  const mapContainer = ref$1(null);
4200
4200
  const map = shallowRef(null);
@@ -4523,6 +4523,11 @@ const _sfc_main$4 = {
4523
4523
  map.value.setCenter(parsePosition(newCenter));
4524
4524
  }
4525
4525
  };
4526
+ const setZoomAndCenter = (newCenter, zoom = 20) => {
4527
+ if (map.value) {
4528
+ map.value.setZoomAndCenter(zoom, parsePosition(newCenter));
4529
+ }
4530
+ };
4526
4531
  const fitView = (padding = null) => {
4527
4532
  if (map.value) {
4528
4533
  const allFeatures = [
@@ -5001,7 +5006,8 @@ const _sfc_main$4 = {
5001
5006
  expose({
5002
5007
  fitView,
5003
5008
  updateCenter,
5004
- handleLayerChange
5009
+ handleLayerChange,
5010
+ setZoomAndCenter
5005
5011
  });
5006
5012
  return (_ctx, _cache) => {
5007
5013
  const _component_el_switch = resolveComponent("el-switch");
@@ -5050,7 +5056,7 @@ const _sfc_main$4 = {
5050
5056
  };
5051
5057
  }
5052
5058
  };
5053
- const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-24729613"]]);
5059
+ const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-23f6e80a"]]);
5054
5060
  const index_vue_vue_type_style_index_0_scoped_d89fd5ba_lang = "";
5055
5061
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d89fd5ba"), n = n(), popScopeId(), n);
5056
5062
  const _hoisted_1$1 = {