el-table-autoscroll
v1.0.3
Published
基于elementUI的自动滚动表格插件
Downloads
3
Readme
el-table-autoscroll
基于elementui,需先安装并导入elementUI
安装
npm install el-table-autoscroll
在main.js引入
import elTableAutoScroll from 'el-table-autoscroll'
Vue.use(elTableAutoScroll)
示例
将el-table标签替换为el-table-autoscroll,加入speed值,控制滚动的速度(默认30), 其它与el-table的写法一致
<el-table-autoscroll :data="tableData" :height="260" :speed="30">
<el-table-column prop="id" label="排序" width="180"> </el-table-column>
<el-table-column prop="date" label="日期" width="180"> </el-table-column>
<el-table-column prop="name" label="姓名" width="180"> </el-table-column>
<el-table-column prop="address" label="地址"> </el-table-column>
</el-table-autoscroll>