sctj-components 1.1.31 → 1.1.33

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.
@@ -10198,28 +10198,30 @@ const _sfc_main$5 = {
10198
10198
  }
10199
10199
  };
10200
10200
  const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-87a3abe5"]]);
10201
- const index_vue_vue_type_style_index_0_scoped_87bce7ee_lang = "";
10202
- const _withScopeId$3 = (n) => (pushScopeId("data-v-87bce7ee"), n = n(), popScopeId(), n);
10203
- const _hoisted_1$3 = { class: "map-drawing" };
10204
- const _hoisted_2$3 = {
10201
+ const index_vue_vue_type_style_index_0_scoped_23d9c379_lang = "";
10202
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-23d9c379"), n = n(), popScopeId(), n);
10203
+ const _hoisted_1$3 = {
10205
10204
  key: 0,
10206
10205
  class: "btn-container"
10207
10206
  };
10208
- const _hoisted_3$3 = { class: "help-button-container" };
10209
- const _hoisted_4$3 = {
10207
+ const _hoisted_2$3 = { class: "help-button-container" };
10208
+ const _hoisted_3$3 = {
10210
10209
  key: 0,
10211
10210
  class: "layer-switch"
10212
10211
  };
10213
- const _hoisted_5$2 = { class: "search-container" };
10214
- const _hoisted_6$2 = { class: "place-suggestion-item" };
10215
- const _hoisted_7$1 = { class: "name" };
10216
- const _hoisted_8$1 = { class: "address" };
10217
- const _hoisted_9$1 = { class: "search-container" };
10218
- const _hoisted_10$1 = { class: "delete-buttons" };
10212
+ const _hoisted_4$3 = { class: "search-container" };
10213
+ const _hoisted_5$2 = { class: "place-suggestion-item" };
10214
+ const _hoisted_6$2 = { class: "name" };
10215
+ const _hoisted_7$1 = { class: "address" };
10216
+ const _hoisted_8$1 = { class: "search-container" };
10217
+ const _hoisted_9$1 = { class: "delete-buttons" };
10218
+ const _hoisted_10$1 = { key: 0 };
10219
10219
  const _hoisted_11 = { key: 0 };
10220
- const _hoisted_12 = { key: 0 };
10221
- const _hoisted_13 = { class: "footer-container" };
10222
- const _hoisted_14 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "operation-guide" }, [
10220
+ const _hoisted_12 = {
10221
+ key: 0,
10222
+ class: "footer-container"
10223
+ };
10224
+ const _hoisted_13 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "operation-guide" }, [
10223
10225
  /* @__PURE__ */ createElementVNode("div", { class: "guide-section" }, [
10224
10226
  /* @__PURE__ */ createElementVNode("strong", null, "\u5F00\u59CB\u7ED8\u5236\uFF1A"),
10225
10227
  /* @__PURE__ */ createElementVNode("ul", null, [
@@ -10262,7 +10264,7 @@ const _hoisted_14 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createE
10262
10264
  ])
10263
10265
  ])
10264
10266
  ], -1));
10265
- const _hoisted_15 = { class: "dialog-footer" };
10267
+ const _hoisted_14 = { class: "dialog-footer" };
10266
10268
  const _sfc_main$4 = {
10267
10269
  __name: "index",
10268
10270
  props: {
@@ -10275,7 +10277,11 @@ const _sfc_main$4 = {
10275
10277
  },
10276
10278
  width: {
10277
10279
  type: String,
10278
- default: "80vw"
10280
+ default: "100%"
10281
+ },
10282
+ immediateComplete: {
10283
+ type: Boolean,
10284
+ default: false
10279
10285
  },
10280
10286
  height: {
10281
10287
  type: String,
@@ -10509,6 +10515,10 @@ const _sfc_main$4 = {
10509
10515
  const searchKeyword = ref$1("");
10510
10516
  const searchLngLat = ref$1("");
10511
10517
  const mapContainer = ref$1(null);
10518
+ watch(() => props.center, () => {
10519
+ var _a;
10520
+ props.center && ((_a = map.value) == null ? void 0 : _a.setCenter(parsePosition(props.center)));
10521
+ });
10512
10522
  const markerDefaultConfig = reactive({
10513
10523
  icon: "https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",
10514
10524
  size: {
@@ -10892,6 +10902,7 @@ const _sfc_main$4 = {
10892
10902
  setTimeout(() => {
10893
10903
  drawing.value = false;
10894
10904
  }, 100);
10905
+ props.immediateComplete && handleConfirm();
10895
10906
  };
10896
10907
  const convertPolylineToBezier = (polyline) => {
10897
10908
  const originalPath = polyline.getPath();
@@ -11098,21 +11109,21 @@ const _sfc_main$4 = {
11098
11109
  return;
11099
11110
  if (polyEditor.value && currentEditingObj.value instanceof AMap.Polyline) {
11100
11111
  updatePolylineData();
11101
- polyEditor.value.close();
11112
+ !props.immediateComplete && polyEditor.value.close();
11102
11113
  }
11103
11114
  if (polygonEditor.value && currentEditingObj.value instanceof AMap.Polygon) {
11104
11115
  updatePolygonData();
11105
- polygonEditor.value.close();
11116
+ !props.immediateComplete && polygonEditor.value.close();
11106
11117
  }
11107
11118
  if (bezierCurveEditor.value && currentEditingObj.value instanceof AMap.BezierCurve) {
11108
11119
  updateBezierCurveData();
11109
- bezierCurveEditor.value.close();
11120
+ !props.immediateComplete && bezierCurveEditor.value.close();
11110
11121
  }
11111
11122
  if (circleEditor.value && currentEditingObj.value instanceof AMap.Circle) {
11112
11123
  updateCircleData();
11113
- circleEditor.value.close();
11124
+ !props.immediateComplete && circleEditor.value.close();
11114
11125
  }
11115
- currentEditingObj.value = null;
11126
+ !props.immediateComplete && (currentEditingObj.value = null);
11116
11127
  };
11117
11128
  const updatePolylineData = (instance = null) => {
11118
11129
  const polyline = instance != null ? instance : polyEditor.value.getTarget();
@@ -11384,6 +11395,7 @@ const _sfc_main$4 = {
11384
11395
  break;
11385
11396
  }
11386
11397
  }
11398
+ props.immediateComplete && handleConfirm();
11387
11399
  } catch (error) {
11388
11400
  }
11389
11401
  };
@@ -11544,7 +11556,10 @@ const _sfc_main$4 = {
11544
11556
  const _component_el_card = resolveComponent("el-card");
11545
11557
  const _component_el_dialog = resolveComponent("el-dialog");
11546
11558
  const _directive_loading = resolveDirective("loading");
11547
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
11559
+ return openBlock(), createElementBlock("div", {
11560
+ class: "map-drawing",
11561
+ style: normalizeStyle({ width: __props.width, height: __props.height })
11562
+ }, [
11548
11563
  withDirectives((openBlock(), createElementBlock("div", {
11549
11564
  "element-loading-text": "\u7CFB\u7EDF\u5B9A\u4F4D\u4E2D,\u8BF7\u7A0D\u540E...",
11550
11565
  class: normalizeClass(["draw-container", unref(isMobile) && "draw-container-mobile"])
@@ -11554,10 +11569,10 @@ const _sfc_main$4 = {
11554
11569
  ref_key: "mapContainer",
11555
11570
  ref: mapContainer
11556
11571
  }, null, 512),
11557
- !__props.disabled ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
11572
+ !__props.disabled ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
11558
11573
  createVNode(_component_el_card, { shadow: "never" }, {
11559
11574
  default: withCtx(() => [
11560
- createElementVNode("div", _hoisted_3$3, [
11575
+ createElementVNode("div", _hoisted_2$3, [
11561
11576
  createVNode(_component_el_button, {
11562
11577
  type: "primary",
11563
11578
  icon: unref(QuestionFilled),
@@ -11570,7 +11585,7 @@ const _sfc_main$4 = {
11570
11585
  _: 1
11571
11586
  }, 8, ["icon"])
11572
11587
  ]),
11573
- __props.changeMapType && !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
11588
+ __props.changeMapType && !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
11574
11589
  createVNode(_component_el_switch, {
11575
11590
  modelValue: isSatellite.value,
11576
11591
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isSatellite.value = $event),
@@ -11588,7 +11603,7 @@ const _sfc_main$4 = {
11588
11603
  ]),
11589
11604
  _: 1
11590
11605
  })) : createCommentVNode("", true),
11591
- createElementVNode("div", _hoisted_5$2, [
11606
+ createElementVNode("div", _hoisted_4$3, [
11592
11607
  createVNode(_component_el_autocomplete, {
11593
11608
  modelValue: searchKeyword.value,
11594
11609
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchKeyword.value = $event),
@@ -11599,9 +11614,9 @@ const _sfc_main$4 = {
11599
11614
  class: "place-search-input"
11600
11615
  }, {
11601
11616
  default: withCtx(({ item }) => [
11602
- createElementVNode("div", _hoisted_6$2, [
11603
- createElementVNode("div", _hoisted_7$1, toDisplayString(item.name), 1),
11604
- createElementVNode("div", _hoisted_8$1, toDisplayString(item.address), 1)
11617
+ createElementVNode("div", _hoisted_5$2, [
11618
+ createElementVNode("div", _hoisted_6$2, toDisplayString(item.name), 1),
11619
+ createElementVNode("div", _hoisted_7$1, toDisplayString(item.address), 1)
11605
11620
  ])
11606
11621
  ]),
11607
11622
  _: 1
@@ -11616,7 +11631,7 @@ const _sfc_main$4 = {
11616
11631
  ]),
11617
11632
  _: 1
11618
11633
  })) : createCommentVNode("", true),
11619
- createElementVNode("div", _hoisted_9$1, [
11634
+ createElementVNode("div", _hoisted_8$1, [
11620
11635
  createVNode(_component_el_input, {
11621
11636
  modelValue: searchLngLat.value,
11622
11637
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => searchLngLat.value = $event),
@@ -11656,7 +11671,7 @@ const _sfc_main$4 = {
11656
11671
  ]),
11657
11672
  _: 1
11658
11673
  }, 8, ["modelValue"]),
11659
- createElementVNode("div", _hoisted_10$1, [
11674
+ createElementVNode("div", _hoisted_9$1, [
11660
11675
  !unref(isMobile) ? (openBlock(), createBlock(_component_el_divider, {
11661
11676
  key: 0,
11662
11677
  "content-position": "center"
@@ -11676,7 +11691,7 @@ const _sfc_main$4 = {
11676
11691
  }, {
11677
11692
  default: withCtx(() => [
11678
11693
  createTextVNode(" \u5220\u9664\u6240\u6709" + toDisplayString(getButtonLabel(type)) + " ", 1),
11679
- getCountByType(type) > 0 ? (openBlock(), createElementBlock("span", _hoisted_11, "(" + toDisplayString(getCountByType(type)) + ")", 1)) : createCommentVNode("", true)
11694
+ getCountByType(type) > 0 ? (openBlock(), createElementBlock("span", _hoisted_10$1, "(" + toDisplayString(getCountByType(type)) + ")", 1)) : createCommentVNode("", true)
11680
11695
  ]),
11681
11696
  _: 2
11682
11697
  }, 1032, ["onClick", "disabled"]);
@@ -11698,7 +11713,7 @@ const _sfc_main$4 = {
11698
11713
  }, {
11699
11714
  default: withCtx(() => [
11700
11715
  createTextVNode(" \u6E05\u9664\u6240\u6709\u56FE\u5F62 "),
11701
- getTotalCount() > 0 ? (openBlock(), createElementBlock("span", _hoisted_12, "(" + toDisplayString(getTotalCount()) + ")", 1)) : createCommentVNode("", true)
11716
+ getTotalCount() > 0 ? (openBlock(), createElementBlock("span", _hoisted_11, "(" + toDisplayString(getTotalCount()) + ")", 1)) : createCommentVNode("", true)
11702
11717
  ]),
11703
11718
  _: 1
11704
11719
  }, 8, ["disabled"])
@@ -11710,7 +11725,7 @@ const _sfc_main$4 = {
11710
11725
  ], 2)), [
11711
11726
  [_directive_loading, loading.value]
11712
11727
  ]),
11713
- createElementVNode("div", _hoisted_13, [
11728
+ !__props.immediateComplete ? (openBlock(), createElementBlock("div", _hoisted_12, [
11714
11729
  !__props.disabled ? (openBlock(), createBlock(_component_el_button, {
11715
11730
  key: 0,
11716
11731
  type: "primary",
@@ -11721,7 +11736,7 @@ const _sfc_main$4 = {
11721
11736
  ]),
11722
11737
  _: 1
11723
11738
  })) : createCommentVNode("", true)
11724
- ]),
11739
+ ])) : createCommentVNode("", true),
11725
11740
  createVNode(_component_el_dialog, {
11726
11741
  title: "\u64CD\u4F5C\u8BF4\u660E",
11727
11742
  modelValue: showHelpDialog.value,
@@ -11730,7 +11745,7 @@ const _sfc_main$4 = {
11730
11745
  "append-to-body": ""
11731
11746
  }, {
11732
11747
  footer: withCtx(() => [
11733
- createElementVNode("span", _hoisted_15, [
11748
+ createElementVNode("span", _hoisted_14, [
11734
11749
  createVNode(_component_el_button, {
11735
11750
  type: "primary",
11736
11751
  onClick: _cache[6] || (_cache[6] = ($event) => showHelpDialog.value = false)
@@ -11743,15 +11758,15 @@ const _sfc_main$4 = {
11743
11758
  ])
11744
11759
  ]),
11745
11760
  default: withCtx(() => [
11746
- _hoisted_14
11761
+ _hoisted_13
11747
11762
  ]),
11748
11763
  _: 1
11749
11764
  }, 8, ["modelValue"])
11750
- ]);
11765
+ ], 4);
11751
11766
  };
11752
11767
  }
11753
11768
  };
11754
- const SCTJMapDrawing = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-87bce7ee"]]);
11769
+ const SCTJMapDrawing = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-23d9c379"]]);
11755
11770
  const BimViewer_vue_vue_type_style_index_0_scoped_5d1b1a03_lang = "";
11756
11771
  const _withScopeId$2 = (n) => (pushScopeId("data-v-5d1b1a03"), n = n(), popScopeId(), n);
11757
11772
  const _hoisted_1$2 = {