将指定元素滚动到可视区域顶部、底部或中间 this.$refs.xx.scrollIntoView() 示例
element.scrollIntoView();
element.scrollIntoView(false);
element.scrollIntoView({ block: "end" });
element.scrollIntoView({ behavior: "smooth", block: "end", inline: "nearest" });
注意
取决于其他元素的布局情况,此元素可能不会完全滚动到顶端或底端。