We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91e7433 commit 05d700aCopy full SHA for 05d700a
packages/components/src/components/BubbleList/index.vue
@@ -50,7 +50,7 @@ const emits = defineEmits(["onComplete"]);
50
51
const props = withDefaults(defineProps<BubbleListProps<T>>(), {
52
maxHeight: "500px",
53
-})
+});
54
55
/* 在底部时候自动滚动 开始 */
56
// 滚动容器的引用
@@ -82,6 +82,8 @@ watch(
82
83
// 父组件的触发方法,直接让滚动容器滚动到顶部
84
function scrollToTop() {
85
+ // 处理在滚动时候,无法回到顶部的问题
86
+ wasOver.value = true;
87
nextTick(() => {
88
// 自动滚动到最顶部
89
scrollContainer.value!.scrollTop = 0;
0 commit comments