npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ecej-v3-waterfull

v0.3.2

Published

基于vue3商城类自定义结构瀑布流

Downloads

28

Readme

Ecej-V3-Watrefull

基于 Vue 3 + TypeScript + Vite 构建的瀑布流组件

  • 自定义插槽类商城结构瀑布流
  • 自定义瀑布流展示列数,默认两列
  • 自定义瀑布流行列间距,默认 20px
  • 自定义瀑布流行列间距单位
  • 支持动态 dom 渲染

安装

npm i  ecej-v3-waterfull
//or
yarn add  ecej-v3-waterfull

使用

// main.ts 引入
import waterfull from "ecej-v3-waterfull";
const app = createApp(App);
app.use(waterfull);
app.mount("#app");
//组件中使用,waterFull名称不能修改
 <waterFull v-slot="slotProps" :fullDatas="dataLists" :column="2">
    <!-- content... -->
  </waterFull>

属性

| 属性名 | 类型 | 默认值 | 必填 | 说明 | | :------------ | :----- | :----: | ---: | ---------- | | fullDatas | array | - | 是 | 瀑布流数据 | | column | number | 2 | 否 | 列数 | | columnSpacing | number | 20 | 否 | 列间距 | | rowSpacing | number | 20 | 否 | 行间距 | | unit | string | px | 否 | 间距单位 |

  • 间距自定义单位,默认 px 可设置 rem,%
  • (用于部分移动端项目使用 rem 忽略 node_modules 文件 px2rem 时)

更新

  • 0.3.x 版本后支持动态 dom 瀑布流加载(分页长列表)
  • 修复了 0.2.x 版本数据在 tab 切换情况下使用插件 dom 不更新的 bug

插槽

  • v-slot="slotProps",插槽提供 item 及 index 两个参数