sctj-components 1.0.63 → 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 +22 -11
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1629,6 +1629,8 @@ const _sfc_main$n = {
|
|
|
1629
1629
|
modelValue: unref(selectValue),
|
|
1630
1630
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectValue) ? selectValue.value = $event : null),
|
|
1631
1631
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
1632
|
+
"collapse-tags": "",
|
|
1633
|
+
"collapse-tags-tooltip": "",
|
|
1632
1634
|
multiple: __props.multiple,
|
|
1633
1635
|
filterable: "",
|
|
1634
1636
|
clearable: ""
|
|
@@ -1658,6 +1660,11 @@ const _sfc_main$m = {
|
|
|
1658
1660
|
type: Array,
|
|
1659
1661
|
default: () => []
|
|
1660
1662
|
},
|
|
1663
|
+
valueFormat: {
|
|
1664
|
+
type: String,
|
|
1665
|
+
default: "string",
|
|
1666
|
+
validator: (value) => ["array", "string"].includes(value)
|
|
1667
|
+
},
|
|
1661
1668
|
valueProp: {
|
|
1662
1669
|
type: String,
|
|
1663
1670
|
default: "value"
|
|
@@ -1672,10 +1679,21 @@ const _sfc_main$m = {
|
|
|
1672
1679
|
const props = __props;
|
|
1673
1680
|
const checkBoxValue = computed$1({
|
|
1674
1681
|
get() {
|
|
1675
|
-
|
|
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 [];
|
|
1676
1690
|
},
|
|
1677
1691
|
set(val) {
|
|
1678
|
-
|
|
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
|
+
}
|
|
1679
1697
|
}
|
|
1680
1698
|
});
|
|
1681
1699
|
return (_ctx, _cache) => {
|
|
@@ -9592,7 +9610,7 @@ const _sfc_main$3 = {
|
|
|
9592
9610
|
}
|
|
9593
9611
|
};
|
|
9594
9612
|
const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-d0bea808"]]);
|
|
9595
|
-
const
|
|
9613
|
+
const index_vue_vue_type_style_index_0_scoped_1b9d0361_lang = "";
|
|
9596
9614
|
const _hoisted_1$1 = { class: "controls" };
|
|
9597
9615
|
const _sfc_main$2 = {
|
|
9598
9616
|
__name: "index",
|
|
@@ -9734,18 +9752,11 @@ const _sfc_main$2 = {
|
|
|
9734
9752
|
});
|
|
9735
9753
|
map.value.add([polyline.value, startMarker.value, endMarker.value, moveMarker.value, passedPolyline.value]);
|
|
9736
9754
|
map.value.setFitView();
|
|
9737
|
-
let lastUpdateTime = 0;
|
|
9738
|
-
const throttleInterval = 100;
|
|
9739
9755
|
moveMarker.value.on("moving", (e) => {
|
|
9740
9756
|
if (!isPlayed.value) {
|
|
9741
9757
|
isPlayed.value = true;
|
|
9742
9758
|
}
|
|
9743
9759
|
passedPolyline.value.setPath(e.passedPath);
|
|
9744
|
-
const now = Date.now();
|
|
9745
|
-
if (now - lastUpdateTime >= throttleInterval) {
|
|
9746
|
-
map.value.setCenter(e.target.getPosition(), false);
|
|
9747
|
-
lastUpdateTime = now;
|
|
9748
|
-
}
|
|
9749
9760
|
});
|
|
9750
9761
|
};
|
|
9751
9762
|
const startPlay = () => {
|
|
@@ -9899,7 +9910,7 @@ const _sfc_main$2 = {
|
|
|
9899
9910
|
};
|
|
9900
9911
|
}
|
|
9901
9912
|
};
|
|
9902
|
-
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
9913
|
+
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1b9d0361"]]);
|
|
9903
9914
|
const BimViewer_vue_vue_type_style_index_0_scoped_89f55b38_lang = "";
|
|
9904
9915
|
const _withScopeId = (n) => (pushScopeId("data-v-89f55b38"), n = n(), popScopeId(), n);
|
|
9905
9916
|
const _hoisted_1 = {
|