
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
vue-picflow
Advanced tools
一个简单的 vue 的瀑布流组件
1. 支持百分比宽度,vw
2. 支持瀑布流的惰性填充
3. 暂不支持 resize
4. 暂不支持重排序
yarn add vue-picflow
or
npm install vue-picflow
import { Waterfall, WaterfallSlot } from 'vue-picflow'
components: {
Waterfall,
WaterfallSlot
}
<template>
<waterfall
line-width="50%"
:line-count="2"
:margin-bottom="10"
:margin-right="10"
:extra-height="40"
:vw-viewport="375"
:max-height="300"
>
<waterfall-slot
v-for="item in items"
:key="item.index"
:index="item.index"
:width="item.width"
:height="item.height"
transition="fade"
>
<div class="demo">
<div
:style="{
backgroundColor: item.style.color,
backgroundImage: `url(${item.style.image})`,
paddingTop: `${(item.height / item.width) * 100}%`
}"
class="image"
/>
<div class="panel">{{ item.index }}</div>
</div>
</waterfall-slot>
</waterfall>
</template>
| key | value | meaning | required |
|---|---|---|---|
| line-width | Number, px, %, vw | 每行的宽度 | Y |
| line-count | Number, >= 2 | 瀑布流的行数 | Y |
| margin-bottom | Number, >= 0 | 每个块的上下间距 | N |
| margin-right | Number, >= 0 | 每行的间距 | N |
| extra-height | Number, >= 0 | 出去图片外的 DOM 的高度 | N |
| vw-viewport | Number, >= 0 | vw 模式下的视口宽度 | N |
| max-height | Number, >= 0 | 每个块的最大高度 | N |
| lazy-scale | Number, >= 1 | 懒加载的比率 | N |
| key | value | meaning | required |
|---|---|---|---|
| width | Number, >= 0 | 图片的宽度 | Y |
| height | Number, >= 0 | 图片的高度 | Y |
| index | Number, >=0 | 图片的 index | Y |
| transition | String | 每个块的渐变动画 | N |
yarn install
yarn run dev
yarn run build
yarn run lint
yarn run test:unit
FAQs
一个简单的 vue 的瀑布流组件
The npm package vue-picflow receives a total of 0 weekly downloads. As such, vue-picflow popularity was classified as not popular.
We found that vue-picflow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.