# @beisen/beisen-scroll-bar

> beisen-scroll-bar

Latest version **1.0.37** (published 2019-10-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen/beisen-scroll-bar
pnpm add @beisen/beisen-scroll-bar
yarn add @beisen/beisen-scroll-bar
bun add @beisen/beisen-scroll-bar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.37 |
| Published | 2019-10-22 |
| First published | 2016-09-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xuhaibin |
| Maintainers | beisencorp |
| Keywords | beisen, react-component, es6, karma, jasmine |

## Links

- npm: https://www.npmjs.com/package/@beisen/beisen-scroll-bar
- Repository: git@gitlab.beisen.co:xhbisme/beisen-scroll-bar
- npm.io page: https://npm.io/package/@beisen/beisen-scroll-bar

## Dependencies (3)

- [line-height](https://npm.io/package/line-height.md) ^0.1.1
- [react-motion](https://npm.io/package/react-motion.md) ^0.5.0
- [has-passive-events](https://npm.io/package/has-passive-events.md) ^1.0.0

## Recent versions

- 1.0.37 (latest) — 2019-10-22
- 1.0.36 — 2019-02-20
- 1.0.35 — 2019-02-20
- 1.0.34 — 2018-09-14
- 1.0.33 — 2017-11-20
- 1.0.32 — 2017-11-20
- 0.0.1-59 — 2017-07-06
- 0.0.1-58 — 2017-07-06
- 0.0.1-57 — 2017-07-06
- 0.0.1-56 — 2017-07-06
- 0.0.1-55 — 2017-07-06
- 1.0.29 — 2017-07-06
- 0.0.1-54 — 2017-05-25
- 0.0.1-53 — 2017-05-22
- 0.0.1-51 — 2016-11-28
- … 2 more at https://npm.io/package/@beisen/beisen-scroll-bar/versions

## README

# beisen-scroll-bar

### 功能

```
BeisenScrollBar 
```

### 使用方法

  ```
  import React, {Component, PropTypes} from 'react'
  import {render} from 'react-dom'
  import BeisenScrollBar from './src/index';
  //引入必须的依赖之后，我们引入要嵌入的组件或者html，和样式文件。
  import Containner from './src/outerComponent/containner';
  import './src/style/componentClass.scss'

  class Demo extends Component{

    handleScroll(scrollData){
        //这里我们可以获得坐标数据
        console.log(scrollData);
    }

    render () {

      //style可以设置滚动区域的整体样式。
      //当然支持手动加一个类，通过类名来控制样式（推荐）
      //contentClassName：为被包裹的内部页面套一个div，这里可以控制整个被嵌对象的样式。
      //handleScroll：回调函数，滚动时，实时获得滚动信息。
      //verticalScrollbarStyle：垂直滚动条的样式。
      //horizontalScrollbarStyle：水平滚动条的样式。

      let style = {'width':'300px','height':'300px'};
      let scrollbarStyles = {borderRadius: 5};
      return (
        <div>
            <BeisenScrollBar style={style} 
            className={'area'}
            contentClassName={'scrollContent'}
            handleScroll={this.handleScroll}
            verticalScrollbarStyle={scrollbarStyles}
            horizontalScrollbarStyle={scrollbarStyles}>
            
              <Containner />

            </BeisenScrollBar >
        </div>
      )
    }
  }
  render(<Demo />, document.getElementById('content'));

  ```

### 参考资料

* [北森前端TalentUI开发文档](http://book.beisen.co/ui/TalentUI/_book/index.html)  

* [React官方文档](https://facebook.github.io/react/)  

* [ES6语法](http://es6.ruanyifeng.com/#docs/intro)

* [Jasmine行为驱动测试官方文档](http://jasmine.github.io/edge/introduction.html)

---
_Source: https://npm.io/package/@beisen/beisen-scroll-bar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
