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 🙏

© 2026 – Pkg Stats / Ryan Hefner

intro-vue-simple

v1.0.3

Published

a vue2 plugin for intro

Downloads

16

Readme

用户引导

一个 vue2 插件

简单上手

#安装 install
npm install intro-vue2
<!-- 标记 mark -->
<div data-intro="1"></div>
//插件方式
import introVue2 from 'intro-vue2';

Vue.use(introVue2);


this.$intro({
    options: {
        domAttrFlag: "data-intro",
        targetClickEnable: true,
        clickTargetNext: true,
        scrollToTarget: true,
        tipCls: "",
        showBtn: true,
        nextLabel: "下一步",
        prevLable: "上一步",
        skipLable: "跳过",
        exitLable: "完成",
        autoNext: true,
        autoNextTime: 5,
    },
    steps: [
        {
            step: "1",
            tip: "点击这里1",
            afterEnter(updateTip){
                updateTip('2','更改了第二步提示')
            },
            beforeNext(next) {
                next("2");
            }
        },
        {
            step: "2",
            tip: "点击这里2",
            afterEnter(updateTip){
                updateTip('3','更改了第三步的提示')
            },
        },
        {
            step: "3",
            tip: "点击这里3",
            targetClickEnable: false
        },
        {
            step: "4",
            tip: "点击这里4",
            clickTargetNext: false
        }
    ]
})

//直接引入
import {intro} from 'intro-vue2';

intro({...})

注意: 要在dom渲染之后调用 例如:mounted

API

| 参数 | 说明 | 类型 | 默认值 | | ------- | -------- | ------ | ------ | | options | 配置参数 | Object | {} | | steps | 步骤 | Array | [] |

options

| 参数 | 说明 | 类型 | 默认值 | | ----------------- | ---------------------------- | ------- | ------------ | | domAttrFlag | dom 标记 | String | 'data-intro' | | targetClickEnable | 目标区域是否可以点击 | Boolean | true | | clickTargetNext | 点击目标区域自动执行下一步 | Boolean | true | | scrollToTarget | 滚动到目标区域 | Boolean | true | | tipCls | 自定义提示框样式 | String | '' | | showBtn | 是否显示按钮 | Boolean | true | | nextLabel | 下一步文案 | String | '下一步' | | prevLable | 上一步文案 | String | '上一步' | | skipLable | 跳过文案(最后一步之前展示) | String | '跳过' | | exitLable | 最后一步结束文案 | String | '完成' | | autoNext | 是否自动下一步 | Boolean | true | | autoNextTime | 自动下一步时间(秒) | Number | 5 |

step

| 参数 | 说明 | 类型 | 默认值 | | ----------------- | ----------------------------------------- | -------------- | --------- | | step | 步骤 key | String | undefined | | tip | 提示文案,支持 html 片段 | String | undefined | | targetClickEnable | 目标区域是否可以点击 | Boolean | true | | clickTargetNext | 点击目标区域自动执行下一步 | Boolean | true | | afterEnter | 进入某一步之后回调 | Function | undefined | | beforeNext | 进入下一步之前拦截,调用 next() 执行下一步 | Function(next) | undefined |