scrollbar-react-ie8
v1.1.1
Published
react scrollbar component compat IE8
Downloads
5
Maintainers
Readme
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')
);