1.1.1 • Published 1 year ago

scrollbar-react-ie8 v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

scrollbar-react--ie8 自定义滚动条组件

更多API请看 react-custom-scrollbars

install dependencies

npm install

开发环境

npm start

打包命令

npm run build

API

参数说明类型默认值

react组件方式调用示例

import Scrollbar from 'scrollbar-react-ie8';
import 'scrollbar-react-ie8/lib/scrollbar.css'

class App extends Component{
  constructor(){
    super();
  }
  
  render(){
    return <div>
      <Scrollbar
        style={
            {
            width: 200,
            height: 100,
            marginLeft: 500,
            background: "#3ffb3f"
            }
        }
        thumbStyle={
            {
            background: "#bbb"
            }
        }
        trackStyle={
            {
            background: "#eee",
            }
        }
        onScroll = {this.handleScroll.bind(this)}
        >
            <div>此处是动态加载的内容</div>
        </Scrollbar>
    </div>
  }
}

ReactDOM.render(<App />,
  document.getElementById('app')
);
1.1.1

1 year ago