- 授权协议: MIT
- 开发语言: JavaScript HTML/CSS
- 操作系统: 跨平台
- 软件首页: https://github.com/monsterooo/react-infinite-loading
- 软件文档: https://github.com/monsterooo/react-infinite-loading/blob/master/README.md
- 官方下载: https://www.npmjs.com/package/react-infinite-loading
软件介绍
react-infinite-loading
基于浏览器的 React 无限滚动插件
安装
react-infinite-loading 要求 React 15 或更高版本
install --save-dev react-infinite-loading
使用
import Infinite from 'react-infinite-loading';
<Infinite handleLoading={this.handleLoading} loading={this.state.loading}>
{/* scrolled element */}
</Infinite>参数
一些控制参数,用在组件的属性中
Infinite.propTypes = {
// control the current status. loading = true the animation is displayed and no longer triggers handleLoading event
loading: PropTypes.bool,
// whether to display the loading animation
isLoading: PropTypes.bool,
// load animation components
asLoading: PropTypes.node,
// if true, scroll range as a current component on the contrary scroll range as a window
elementScroll: PropTypes.bool,
// set the height of the scroll container, scrollHeight={300} or scrollHeight="calc(100% - 100px)"
scrollHeight: PropTypes.any.isRequired,
// trigger handleLoading event threshold
scrollThreshold: PropTypes.num,
// scroll to the bottom event
handleLoading: PropTypes.func,
// sisplayed content
children: PropTypes.node
}
1024·人与机器共同进化
东西文库 / 译言·东西文库/电子工业出版社 / 2013-12-20 / 55元
《1024》:国内第一本专注于科技文化的mook。 本期创刊号将目光定焦在“人与机器”这个超热点领域。 如果把机器获得思维能力看作是一种进化, 那人类具备不朽之躯同样也是一种进化。 这是一个野心勃勃但又充满不确定性的未来。 在我们一厢情愿地猜测机器将在不远的将来赶超自己而惶惶不可终日时,人类其实还有一个机会——变得更像机器。这并非科幻小说,而是正在发生的现实。人类创造......一起来看看 《1024·人与机器共同进化》 这本书的介绍吧!
