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

fe-fullpage-vue

v1.0.0

Published

vue3版的全屏滚动组件

Downloads

17

Readme

安装

npm i fe-fullpage-vue -S

使用

//import fullpage from "fe-fullpage-vue/fe-fullpage-ts.vue";
import fullpage from "fe-fullpage-vue/fe-fullpage.vue";

<fullpage>
    <div></div>
    <div></div>
    <div></div>
</fullpage>

说明

  • fe-fullpage-vue是根据x-fullpage-vue修改而来,主要修复了滚动标签太多时的高度偏移问题

使用需注意

  • 建议子标签的数量在2个以上
  • fullpage标签下的子标签直接为要全屏滚动的元素
  • fullpage 自动计算每个子标签的高度,因此可以给定高度,也可以不用给定高度
  • overflowY 移动端浏览器打开向上滚动,导致移动偏移,因此需要隐藏

参数

| 参数 | 类型 | 默认值 | 备注 | | ---- | ---- | ---- | ---- | | skip | Number | 0 | 跳转指定页面 | 当前页码 (从0开始计数) | overflowY | Boolean | false | 是否允许横向滚动 (仅PC设备生效) | width | String | 1920px | overflowY=true生效 | abs | Number | 1 | 间隔页面 | 与isTransition配合使用 | isTransition | Boolean | true | 一次性跳转多个页面的时候,是否显示过渡 | devices | Number | 800 | 设备最小宽度 | 主要是区分手机与pc,之后重新计算节点信息

方法

| 方法名 | 参数 | 备注 | | ---- | ---- | ---- | | scroll | page | 当前页码 (从0开始计数) | mousemove | direction | 滚动方向 | init | nodesInfo | 所有节点信息集合