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