sctj-components 1.0.64 → 1.0.65
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 +20 -11
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1660,6 +1660,11 @@ const _sfc_main$m = {
|
|
|
1660
1660
|
type: Array,
|
|
1661
1661
|
default: () => []
|
|
1662
1662
|
},
|
|
1663
|
+
valueFormat: {
|
|
1664
|
+
type: String,
|
|
1665
|
+
default: "string",
|
|
1666
|
+
validator: (value) => ["array", "string"].includes(value)
|
|
1667
|
+
},
|
|
1663
1668
|
valueProp: {
|
|
1664
1669
|
type: String,
|
|
1665
1670
|
default: "value"
|
|
@@ -1674,10 +1679,21 @@ const _sfc_main$m = {
|
|
|
1674
1679
|
const props = __props;
|
|
1675
1680
|
const checkBoxValue = computed$1({
|
|
1676
1681
|
get() {
|
|
1677
|
-
|
|
1682
|
+
if (Array.isArray(props.modelValue)) {
|
|
1683
|
+
return props.modelValue;
|
|
1684
|
+
} else if (typeof props.modelValue === "string") {
|
|
1685
|
+
return props.modelValue.split(",").filter((item) => item !== "");
|
|
1686
|
+
} else if (props.modelValue != null && props.modelValue !== void 0) {
|
|
1687
|
+
return [props.modelValue];
|
|
1688
|
+
}
|
|
1689
|
+
return [];
|
|
1678
1690
|
},
|
|
1679
1691
|
set(val) {
|
|
1680
|
-
|
|
1692
|
+
if (props.valueFormat === "array") {
|
|
1693
|
+
emit("update:modelValue", Array.isArray(val) ? val : val ? [val] : []);
|
|
1694
|
+
} else {
|
|
1695
|
+
emit("update:modelValue", Array.isArray(val) ? val.join(",") : val != null ? val : "");
|
|
1696
|
+
}
|
|
1681
1697
|
}
|
|
1682
1698
|
});
|
|
1683
1699
|
return (_ctx, _cache) => {
|
|
@@ -9594,7 +9610,7 @@ const _sfc_main$3 = {
|
|
|
9594
9610
|
}
|
|
9595
9611
|
};
|
|
9596
9612
|
const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-d0bea808"]]);
|
|
9597
|
-
const
|
|
9613
|
+
const index_vue_vue_type_style_index_0_scoped_1b9d0361_lang = "";
|
|
9598
9614
|
const _hoisted_1$1 = { class: "controls" };
|
|
9599
9615
|
const _sfc_main$2 = {
|
|
9600
9616
|
__name: "index",
|
|
@@ -9736,18 +9752,11 @@ const _sfc_main$2 = {
|
|
|
9736
9752
|
});
|
|
9737
9753
|
map.value.add([polyline.value, startMarker.value, endMarker.value, moveMarker.value, passedPolyline.value]);
|
|
9738
9754
|
map.value.setFitView();
|
|
9739
|
-
let lastUpdateTime = 0;
|
|
9740
|
-
const throttleInterval = 100;
|
|
9741
9755
|
moveMarker.value.on("moving", (e) => {
|
|
9742
9756
|
if (!isPlayed.value) {
|
|
9743
9757
|
isPlayed.value = true;
|
|
9744
9758
|
}
|
|
9745
9759
|
passedPolyline.value.setPath(e.passedPath);
|
|
9746
|
-
const now = Date.now();
|
|
9747
|
-
if (now - lastUpdateTime >= throttleInterval) {
|
|
9748
|
-
map.value.setCenter(e.target.getPosition(), false);
|
|
9749
|
-
lastUpdateTime = now;
|
|
9750
|
-
}
|
|
9751
9760
|
});
|
|
9752
9761
|
};
|
|
9753
9762
|
const startPlay = () => {
|
|
@@ -9901,7 +9910,7 @@ const _sfc_main$2 = {
|
|
|
9901
9910
|
};
|
|
9902
9911
|
}
|
|
9903
9912
|
};
|
|
9904
|
-
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
9913
|
+
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1b9d0361"]]);
|
|
9905
9914
|
const BimViewer_vue_vue_type_style_index_0_scoped_89f55b38_lang = "";
|
|
9906
9915
|
const _withScopeId = (n) => (pushScopeId("data-v-89f55b38"), n = n(), popScopeId(), n);
|
|
9907
9916
|
const _hoisted_1 = {
|