1.1.3 • Published 7 months ago

element-scroll v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

vue environment. element-table

This package applies only to the element table.(Only silde. No mouse events)

requestAnimationFrame poor compatibility, mouse events will be updated later

Install

npm i element-scroll -S

Feature

Use H5-API requestAnimationFrame. Good performance, stable

Better than setTimeout/setInterval

Example

 import { scrollElement } from 'element-scroll';
 <el-table  height="300"ref="crud" stripe>
 </el-table>
  // vue2.0
  // You are advised not to use a function when determining the data length is small
  carousel() {
    const table = this.$refs.crud.bodyWrapper;
    const stopScroll = scrollElement(table, 1); // element step
    //stopScroll()  stop rolling...
    this.$once('hook:beforeDestroy', () => {
      stopScroll(); // Stop rolling when the component is about to be destroyed
    }); 
  },
  //  vue3.0 ...

Development

  • github is not configured.
  • This package is a test package
1.1.1

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.0

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago