mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-28 11:52:46 +08:00
修复某些情况下编排界面自动滚动的BUG
This commit is contained in:
parent
c32b08758a
commit
c6d03a1a98
@ -2,7 +2,7 @@
|
||||
<div class="composer-flow">
|
||||
<ChainStyles ref="chainStyles" :commands="commands" />
|
||||
|
||||
<q-scroll-area class="command-scroll">
|
||||
<q-scroll-area class="command-scroll" ref="scrollArea">
|
||||
<div
|
||||
class="command-flow-container"
|
||||
@dragover.prevent="onDragOver"
|
||||
@ -541,6 +541,12 @@ export default defineComponent({
|
||||
this.$emit("update:modelValue", newCommands);
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 当高度超过1000时,会出现非预期的自动滚动,暂时找不到原因,先强制滚动到顶部
|
||||
this.$nextTick(() => {
|
||||
this.$refs.scrollArea.setScrollPosition("vertical", 0);
|
||||
});
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user