Skip to content

chenweihuan/el-table-roll

Repository files navigation

el-table-roll

基于element的table滚动效果

实现效果图(录制gif图有点卡帧)

使用方法

  1. 实例化Roll
this.roll = new Roll()
  1. 限定el-table的外层节点,注意,暂时每个组件只能使用一个el-table
this.roll.componentWrapperEl = this.$el
  1. 传入数据
this.roll.setData(this.tableData)
  1. 离开页面时销毁
beforeDestroy(){
  this.roll && this.roll.dispose()
}

About

基于element的table滚动效果

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published