A directive for Element(Vue@2.x) to sticky el-table when scrolling.
Element UI 库表格表头固定指令。
Another brother directive 这个工具还有个兄弟 element-table-scroll
-
Install 安装
npm i element-table-sticky
-
Register 注册指令
import ElTableSticky from 'element-table-sticky'; Vue.directive('table-sticky', ElTableSticky);
-
Using 使用
<el-table v-table-sticky ... > ... </el-table>