sctj-components 1.0.85 → 1.0.87
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 +33 -8
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ const _sfc_main$v = {
|
|
|
130
130
|
};
|
|
131
131
|
const index$2 = "";
|
|
132
132
|
const index$1 = "";
|
|
133
|
-
const
|
|
133
|
+
const index_vue_vue_type_style_index_0_scoped_9fdf9efd_lang = "";
|
|
134
134
|
const index_vue_vue_type_style_index_1_lang = "";
|
|
135
135
|
const _hoisted_1$m = { class: "upload-file" };
|
|
136
136
|
const _hoisted_2$f = { class: "el-upload__tip" };
|
|
@@ -159,7 +159,7 @@ const _sfc_main$u = {
|
|
|
159
159
|
},
|
|
160
160
|
fileType: {
|
|
161
161
|
type: Array,
|
|
162
|
-
default: () => ["docx", "xlsx", "doc", "xls", "ppt", "txt", "pdf", "png", "jpg", "jpeg", "pptx", "zip"]
|
|
162
|
+
default: () => ["docx", "xlsx", "doc", "xls", "ppt", "txt", "pdf", "png", "jpg", "jpeg", "pptx", "zip", "mp4"]
|
|
163
163
|
},
|
|
164
164
|
isShowTip: {
|
|
165
165
|
type: Boolean,
|
|
@@ -331,7 +331,7 @@ const _sfc_main$u = {
|
|
|
331
331
|
const fileExt = fileName.split(".").pop().toLowerCase();
|
|
332
332
|
const link = document.createElement("a");
|
|
333
333
|
link.style.display = "none";
|
|
334
|
-
link.target = fileExt === "pdf" ? "_blank" : "_self";
|
|
334
|
+
link.target = fileExt === "pdf" || fileExt === "mp4" ? "_blank" : "_self";
|
|
335
335
|
link.href = file.url;
|
|
336
336
|
link.download = fileName;
|
|
337
337
|
document.body.appendChild(link);
|
|
@@ -622,7 +622,7 @@ const _sfc_main$u = {
|
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
|
-
const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
625
|
+
const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-9fdf9efd"]]);
|
|
626
626
|
const index_vue_vue_type_style_index_0_scoped_672e5149_lang = "";
|
|
627
627
|
const _hoisted_1$l = { class: "component-upload-image" };
|
|
628
628
|
const _hoisted_2$e = {
|
|
@@ -10140,8 +10140,8 @@ const _sfc_main$3 = {
|
|
|
10140
10140
|
}
|
|
10141
10141
|
};
|
|
10142
10142
|
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-87a3abe5"]]);
|
|
10143
|
-
const
|
|
10144
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
10143
|
+
const BimViewer_vue_vue_type_style_index_0_scoped_df9e6d60_lang = "";
|
|
10144
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-df9e6d60"), n = n(), popScopeId(), n);
|
|
10145
10145
|
const _hoisted_1$1 = {
|
|
10146
10146
|
key: 0,
|
|
10147
10147
|
class: "error-overlay"
|
|
@@ -10161,7 +10161,7 @@ const _sfc_main$2 = {
|
|
|
10161
10161
|
default: () => []
|
|
10162
10162
|
}
|
|
10163
10163
|
},
|
|
10164
|
-
emits: ["contextMenuClick"],
|
|
10164
|
+
emits: ["contextMenuClick", "selectionChanged", "componentClick"],
|
|
10165
10165
|
setup(__props, { expose, emit }) {
|
|
10166
10166
|
const props = __props;
|
|
10167
10167
|
const loading = ref$1(true);
|
|
@@ -10276,6 +10276,14 @@ const _sfc_main$2 = {
|
|
|
10276
10276
|
rightMenu.style.display = "none";
|
|
10277
10277
|
}
|
|
10278
10278
|
};
|
|
10279
|
+
const handleSelectionChanged = (data) => {
|
|
10280
|
+
emit("selectionChanged", data);
|
|
10281
|
+
};
|
|
10282
|
+
const handleComponentsSelectionChanged = (data) => {
|
|
10283
|
+
if (data.objectType === "Component" && data.objectId) {
|
|
10284
|
+
emit("componentClick", data);
|
|
10285
|
+
}
|
|
10286
|
+
};
|
|
10279
10287
|
const handleViewAdded = () => {
|
|
10280
10288
|
if (!viewer3D.value)
|
|
10281
10289
|
return;
|
|
@@ -10311,6 +10319,15 @@ const _sfc_main$2 = {
|
|
|
10311
10319
|
Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,
|
|
10312
10320
|
handleViewAdded
|
|
10313
10321
|
);
|
|
10322
|
+
console.log("Glodon.Bimface.Viewer.Viewer3DEvent", Glodon.Bimface.Viewer.Viewer3DEvent);
|
|
10323
|
+
viewer3D.value.addEventListener(
|
|
10324
|
+
Glodon.Bimface.Viewer.Viewer3DEvent.SelectionChanged,
|
|
10325
|
+
handleSelectionChanged
|
|
10326
|
+
);
|
|
10327
|
+
viewer3D.value.addEventListener(
|
|
10328
|
+
Glodon.Bimface.Viewer.Viewer3DEvent.ComponentsSelectionChanged,
|
|
10329
|
+
handleComponentsSelectionChanged
|
|
10330
|
+
);
|
|
10314
10331
|
viewer3D.value.addEventListener(
|
|
10315
10332
|
Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,
|
|
10316
10333
|
handleContextMenu
|
|
@@ -10365,6 +10382,14 @@ const _sfc_main$2 = {
|
|
|
10365
10382
|
Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,
|
|
10366
10383
|
handleContextMenu
|
|
10367
10384
|
);
|
|
10385
|
+
viewer3D.value.removeEventListener(
|
|
10386
|
+
Glodon.Bimface.Viewer.Viewer3DEvent.SelectionChanged,
|
|
10387
|
+
handleSelectionChanged
|
|
10388
|
+
);
|
|
10389
|
+
viewer3D.value.removeEventListener(
|
|
10390
|
+
Glodon.Bimface.Viewer.Viewer3DEvent.ComponentsSelectionChanged,
|
|
10391
|
+
handleComponentsSelectionChanged
|
|
10392
|
+
);
|
|
10368
10393
|
} catch (error) {
|
|
10369
10394
|
console.warn("\u6E05\u7406\u4E8B\u4EF6\u76D1\u542C\u5668\u5931\u8D25:", error);
|
|
10370
10395
|
}
|
|
@@ -10489,7 +10514,7 @@ const _sfc_main$2 = {
|
|
|
10489
10514
|
};
|
|
10490
10515
|
}
|
|
10491
10516
|
};
|
|
10492
|
-
const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
10517
|
+
const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-df9e6d60"]]);
|
|
10493
10518
|
const DwgViewer_vue_vue_type_style_index_0_scoped_ab9c8ebd_lang = "";
|
|
10494
10519
|
const _sfc_main$1 = {
|
|
10495
10520
|
__name: "DwgViewer",
|