sctj-components 1.0.50 → 1.0.52
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 +17 -27
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1548,7 +1548,7 @@ const _sfc_main$l = {
|
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
1550
|
};
|
|
1551
|
-
const
|
|
1551
|
+
const index_vue_vue_type_style_index_0_scoped_1c87997b_lang = "";
|
|
1552
1552
|
const _hoisted_1$f = { class: "time-line-slider-container" };
|
|
1553
1553
|
const _hoisted_2$9 = { class: "time-line-slider-wrapper" };
|
|
1554
1554
|
const _sfc_main$k = {
|
|
@@ -1816,7 +1816,8 @@ const _sfc_main$k = {
|
|
|
1816
1816
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(selectDate) ? selectDate.value = $event : null),
|
|
1817
1817
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
1818
1818
|
filterable: "",
|
|
1819
|
-
onChange: selectChange
|
|
1819
|
+
onChange: selectChange,
|
|
1820
|
+
style: { "width": "auto" }
|
|
1820
1821
|
}, {
|
|
1821
1822
|
default: withCtx(() => [
|
|
1822
1823
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(timePoints), (point, index2) => {
|
|
@@ -1833,7 +1834,7 @@ const _sfc_main$k = {
|
|
|
1833
1834
|
};
|
|
1834
1835
|
}
|
|
1835
1836
|
};
|
|
1836
|
-
const SCTJTimeLineSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
1837
|
+
const SCTJTimeLineSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-1c87997b"]]);
|
|
1837
1838
|
const index_vue_vue_type_style_index_0_scoped_0e809a5c_lang = "";
|
|
1838
1839
|
const _hoisted_1$e = { class: "table-container" };
|
|
1839
1840
|
const _sfc_main$j = {
|
|
@@ -9399,7 +9400,7 @@ const _sfc_main$2 = {
|
|
|
9399
9400
|
}
|
|
9400
9401
|
};
|
|
9401
9402
|
const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-d0bea808"]]);
|
|
9402
|
-
const
|
|
9403
|
+
const BimViewer_vue_vue_type_style_index_0_scoped_40d12144_lang = "";
|
|
9403
9404
|
const _sfc_main$1 = {
|
|
9404
9405
|
__name: "BimViewer",
|
|
9405
9406
|
props: {
|
|
@@ -9409,22 +9410,7 @@ const _sfc_main$1 = {
|
|
|
9409
9410
|
},
|
|
9410
9411
|
extraContextMenu: {
|
|
9411
9412
|
type: Array,
|
|
9412
|
-
default: () => [
|
|
9413
|
-
{
|
|
9414
|
-
label: "\u5176\u4ED6",
|
|
9415
|
-
key: "extraOther",
|
|
9416
|
-
children: [
|
|
9417
|
-
{
|
|
9418
|
-
label: "\u6DFB\u52A0\u517B\u62A4",
|
|
9419
|
-
key: "addMaintain"
|
|
9420
|
-
},
|
|
9421
|
-
{
|
|
9422
|
-
label: "\u517B\u62A4\u8BB0\u5F55",
|
|
9423
|
-
key: "maintainRecord"
|
|
9424
|
-
}
|
|
9425
|
-
]
|
|
9426
|
-
}
|
|
9427
|
-
]
|
|
9413
|
+
default: () => []
|
|
9428
9414
|
}
|
|
9429
9415
|
},
|
|
9430
9416
|
emits: ["contextMenuClick"],
|
|
@@ -9477,10 +9463,10 @@ const _sfc_main$1 = {
|
|
|
9477
9463
|
});
|
|
9478
9464
|
return menuContainer;
|
|
9479
9465
|
};
|
|
9480
|
-
const attachMenuItemEvents = (menuElement, item, selectedComponents) => {
|
|
9466
|
+
const attachMenuItemEvents = (menuElement, item, selectedComponents, selectedComponentsData) => {
|
|
9481
9467
|
if (item.children && item.children.length > 0) {
|
|
9482
9468
|
item.children.forEach((child) => {
|
|
9483
|
-
attachMenuItemEvents(menuElement, child, selectedComponents);
|
|
9469
|
+
attachMenuItemEvents(menuElement, child, selectedComponents, selectedComponentsData);
|
|
9484
9470
|
});
|
|
9485
9471
|
} else {
|
|
9486
9472
|
const menuItem = menuElement.querySelector(`#menu-${item.key}`);
|
|
@@ -9489,7 +9475,8 @@ const _sfc_main$1 = {
|
|
|
9489
9475
|
const handleClick = () => {
|
|
9490
9476
|
emit("contextMenuClick", {
|
|
9491
9477
|
...item,
|
|
9492
|
-
selectedComponents
|
|
9478
|
+
selectedComponents,
|
|
9479
|
+
selectedComponentsData
|
|
9493
9480
|
});
|
|
9494
9481
|
hideContextMenu();
|
|
9495
9482
|
menuItem.removeEventListener("click", handleClick);
|
|
@@ -9497,16 +9484,19 @@ const _sfc_main$1 = {
|
|
|
9497
9484
|
menuItem.addEventListener("click", handleClick);
|
|
9498
9485
|
}
|
|
9499
9486
|
};
|
|
9500
|
-
const attachContextMenuEvents = (menuElement, selectedComponents) => {
|
|
9487
|
+
const attachContextMenuEvents = (menuElement, selectedComponents, selectedComponentsData) => {
|
|
9501
9488
|
if (!selectedComponents.length || !app.value)
|
|
9502
9489
|
return;
|
|
9503
9490
|
props.extraContextMenu.forEach((item) => {
|
|
9504
|
-
attachMenuItemEvents(menuElement, item, selectedComponents);
|
|
9491
|
+
attachMenuItemEvents(menuElement, item, selectedComponents, selectedComponentsData);
|
|
9505
9492
|
});
|
|
9506
9493
|
};
|
|
9507
9494
|
const showContextMenu = (appInstance) => {
|
|
9508
9495
|
const viewer = appInstance.getViewer();
|
|
9509
9496
|
const selectedComponents = viewer.getModel().getSelectedComponents();
|
|
9497
|
+
const selectedComponentsData = selectedComponents.map((id) => {
|
|
9498
|
+
return viewer.getModel().getObjectDataById(id);
|
|
9499
|
+
});
|
|
9510
9500
|
if (!selectedComponents.length)
|
|
9511
9501
|
return;
|
|
9512
9502
|
console.log("\u5F53\u524D\u9009\u62E9\u7684\u6784\u5EFAId", selectedComponents);
|
|
@@ -9523,7 +9513,7 @@ const _sfc_main$1 = {
|
|
|
9523
9513
|
const menuElement = createContextMenu();
|
|
9524
9514
|
targetMenu.appendChild(menuElement);
|
|
9525
9515
|
nextTick(() => {
|
|
9526
|
-
attachContextMenuEvents(menuElement, selectedComponents);
|
|
9516
|
+
attachContextMenuEvents(menuElement, selectedComponents, selectedComponentsData);
|
|
9527
9517
|
});
|
|
9528
9518
|
};
|
|
9529
9519
|
const hideContextMenu = () => {
|
|
@@ -9707,7 +9697,7 @@ const _sfc_main$1 = {
|
|
|
9707
9697
|
};
|
|
9708
9698
|
}
|
|
9709
9699
|
};
|
|
9710
|
-
const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
9700
|
+
const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-40d12144"]]);
|
|
9711
9701
|
const DwgViewer_vue_vue_type_style_index_0_scoped_ab9c8ebd_lang = "";
|
|
9712
9702
|
const _sfc_main = {
|
|
9713
9703
|
__name: "DwgViewer",
|