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

starport-vue

v1.0.5

Published

Vue Share Element

Downloads

9

Readme

用法

想要体验的小伙伴可以试一试 写了一个十分简单的动画,有兴趣的伙伴可以重写动画 ,他们分别是ThroughGoThroughBack,代表着进入路由的动画和离开路由的动画

npm install starport-vue
  • 在入口文件中引入 如果有小伙伴使用了ts ,需要新建一个.d.ts声明一下
import StarPort from "starport-vue"
import "starport-vue/style.css"
app.use(StarPort)
  • 在组件中使用
  • 建议您为元素绑定好选择器,内部在工作的时候需要知道起点和落点,这能确保它正确的工作
<div>
	<div v-for="(item, index) in data" :class="'homeWrapper' + index">
		<StarPort
			start="/home"
			:startEl="'.homeWrapper' + index"
			end="/about"
			:key="index"
			endEl=".aboutWrapper"
			:id="index + 'asd'"
		>
			<img :src="item" />
		</StarPort>
	</div>
</div>

| 参数 | 说明 | 类型 | | ----- | --------------------------------------------------- | ------ | | end | 到达的路由 | string | | endEl | 到达的元素,是一个选择器,标签、类、id 选择器都可以 | string | | start | 开始的路由 | string |