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

lvuetools

v0.1.2

Published

> TODO: description

Downloads

19

Readme

lvuetools

这是一个vue3自定义指令的工具库,只需要简单的操作就可以完成你想要做的事儿

使用方法

注意:参数具有严格的顺序要求,如果您想传入后续参数,那么请尽量传入前置参数,否则可能会发生意料之外的错误

v-style-change:在style发生变化的时候做点什么!

传入一个函数,第一个参数为object,里面会包含被绑定元素的位置属性。类型为:StyleChangeType,如果被绑定元素的style发生改变,则会触发传入的函数,您还可以自定义防抖函数的wait,默认为300ms

使用wait:写法如下

v-style-change:800

这样您就将防抖间隔时间修改为了800ms

v-appearance:开场!

完整参数传入如下

v-appearance:customize:700:fromTo.update="{ from:{y :500},to:{y:0}} "

customize为自定义动画名称name,请保证其唯一性,否则可能会发生意料之外的错误

700为防抖函数的wait,如果开启了update更新,则此参数可能会对您有用,您可以自己决定wait,默认为300ms

fromTo为动画方式,详情可以参考gsap的from和fromTo

.update为开启被绑定元素更新时再次重新进行开场,会采用之前传入的wait作为防抖的wait

v-etoolscharts 图表!集成了Echarts

完整参数传入如下

v-etoolscharts:dark:svg="options"

dark为主题名称,可以参考echarts,可选light

svg为渲染方式,可选canvas

v-wh 在被绑定元素宽高改变时做点什么!

完整传入参数如下

v-wh:300="tt"

300为防抖函数wait

tt为传入的函数,函数接收第一个参数为改变宽高附带的信息,类型为ResizeObserverEntry[]