Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-waterfall

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-waterfall

A waterfall component for react

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

rc-waterfall

Build Status

demo

Install

rc-waterfall

Development

# install
npm install --save rc-waterfall

# run
npm run dev

# build
npm run build

Example

local: http://localhost:3002/

online: http://mapleliu.com/rc-waterfall/

Usage demo

import Waterfall from 'rc-waterfall';

API

参数说明类型默认值可选值
source图片资源列表array<string>--
columnWidth单列宽度【单位px】number210-
isOnlyImg是否只根据图片高度进行排版booleanfalsetrue false
renderItem渲染瀑布流块元素,回调参数ci:列中位置,si:source中位置,url:图片urlfunction(ci:number,si:number,url:string):ReactNode(ci,si,url)=><img src={url}/>-
getTarget设置需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数function():HTMLElement()=>window-

Keywords

FAQs

Package last updated on 15 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc