el-table是一个表格组件,用于展示数据并支持排序、筛选和分页等功能。 在el-table中,如果表格的数据过多,可能会出现滚动条。为了控制滚动条的位置,element plus提供了setScrollTop方法,用于设置滚动条的垂直偏移量。 使用setScrollTop方法,首先需要获取到el-table的实例。可以通过ref属性给el-table组件指定一个名称,...
首先,需要明确的是,Vue 3和Element Plus(Element UI的Vue 3版本)中的el-table组件并没有直接提供setScrollTop方法。因此,如果您尝试使用类似tableRef.value.setScrollTop(255)的代码,这很可能是不生效的原因。 对于Element Plus中的el-table,如果需要设置滚动条的位置,通常需要通过操作DOM元素来实现。您可以通过ref...
changed the title[Component] [tabs, table] ElTabls多页签下的隐藏的ElTable组件,强制重渲染后,依然不会触发滚动条重置到表格顶部[Component] [tabs, table] ElTabls多页签下的隐藏的ElTable组件,无法通过 setScrollTop(0) 重置滚动到表格顶部on Jun 25, 2024 ...
🎉 A Vue.js 3 UI Library made by Element team. Contribute to element-plus/element-plus development by creating an account on GitHub.
Bug Type: Component Environment Vue Version: 3.2.31 Element Plus Version: 2.0.2 Browser / OS: Edge/windows Build Tool: Vite Reproduction Related Component el-table Reproduction Link Element Plus Playground Steps to reproduce In Reproduct...
[Component] [tabs, table] ElTabls多页签下的隐藏的ElTable组件,无法通过 setScrollTop(0) 重置滚动到表格顶部 #23259 Sign in to view logs Summary Jobs mark-duplicate Run details Usage Workflow file Triggered via issue June 26, 2024 01:12 webvs2 commented on #17322 c1fcf9e Status Success...