sctj-components 1.0.91 → 1.0.93
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 +9 -11
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1827,7 +1827,7 @@ const _sfc_main$n = {
|
|
|
1827
1827
|
};
|
|
1828
1828
|
}
|
|
1829
1829
|
};
|
|
1830
|
-
const
|
|
1830
|
+
const index_vue_vue_type_style_index_0_scoped_12d0117a_lang = "";
|
|
1831
1831
|
const _hoisted_1$h = { class: "time-line-slider-container" };
|
|
1832
1832
|
const _hoisted_2$c = { class: "time-line-slider-wrapper" };
|
|
1833
1833
|
const _sfc_main$m = {
|
|
@@ -1845,7 +1845,7 @@ const _sfc_main$m = {
|
|
|
1845
1845
|
default: void 0
|
|
1846
1846
|
}
|
|
1847
1847
|
},
|
|
1848
|
-
emits: ["update:modelValue"],
|
|
1848
|
+
emits: ["update:modelValue", "change"],
|
|
1849
1849
|
setup(__props, { emit }) {
|
|
1850
1850
|
const props = __props;
|
|
1851
1851
|
const selectDate = computed$1({
|
|
@@ -1863,12 +1863,14 @@ const _sfc_main$m = {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
});
|
|
1866
|
-
const
|
|
1866
|
+
const scrollIntoView = async () => {
|
|
1867
1867
|
await nextTick();
|
|
1868
1868
|
setTimeout(() => {
|
|
1869
1869
|
const sliderButton = document.querySelector(".el-slider__button-wrapper");
|
|
1870
|
+
console.log("sliderButton", sliderButton);
|
|
1870
1871
|
if (sliderButton) {
|
|
1871
1872
|
const scrollContainer = document.querySelector(".time-line-slider-wrapper");
|
|
1873
|
+
console.log("scrollContainer", scrollContainer);
|
|
1872
1874
|
if (scrollContainer) {
|
|
1873
1875
|
const buttonRect = sliderButton.getBoundingClientRect();
|
|
1874
1876
|
const containerRect = scrollContainer.getBoundingClientRect();
|
|
@@ -1877,12 +1879,6 @@ const _sfc_main$m = {
|
|
|
1877
1879
|
left: scrollLeft,
|
|
1878
1880
|
behavior: "smooth"
|
|
1879
1881
|
});
|
|
1880
|
-
} else {
|
|
1881
|
-
sliderButton.scrollIntoView({
|
|
1882
|
-
behavior: "smooth",
|
|
1883
|
-
block: "center",
|
|
1884
|
-
inline: "center"
|
|
1885
|
-
});
|
|
1886
1882
|
}
|
|
1887
1883
|
}
|
|
1888
1884
|
}, 100);
|
|
@@ -2066,6 +2062,9 @@ const _sfc_main$m = {
|
|
|
2066
2062
|
},
|
|
2067
2063
|
{ deep: true }
|
|
2068
2064
|
);
|
|
2065
|
+
watch(() => props.modelValue, () => {
|
|
2066
|
+
scrollIntoView();
|
|
2067
|
+
}, { immediate: true });
|
|
2069
2068
|
watch(selectValue, (val) => {
|
|
2070
2069
|
const index2 = Math.round(val);
|
|
2071
2070
|
const emitValue = getValueFromIndex(index2);
|
|
@@ -2097,7 +2096,6 @@ const _sfc_main$m = {
|
|
|
2097
2096
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(selectDate) ? selectDate.value = $event : null),
|
|
2098
2097
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
2099
2098
|
filterable: "",
|
|
2100
|
-
onChange: selectChange,
|
|
2101
2099
|
style: { "width": "auto" }
|
|
2102
2100
|
}, {
|
|
2103
2101
|
default: withCtx(() => [
|
|
@@ -2115,7 +2113,7 @@ const _sfc_main$m = {
|
|
|
2115
2113
|
};
|
|
2116
2114
|
}
|
|
2117
2115
|
};
|
|
2118
|
-
const SCTJTimeLineSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
2116
|
+
const SCTJTimeLineSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-12d0117a"]]);
|
|
2119
2117
|
const index_vue_vue_type_style_index_0_scoped_0e809a5c_lang = "";
|
|
2120
2118
|
const _hoisted_1$g = { class: "table-container" };
|
|
2121
2119
|
const _sfc_main$l = {
|