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

v-fast-ui

v1.0.1

Published

vue ui工具集合,包含移动端提示Toast,全局加载Indicator,六位密码数据等

Readme

v-fast-ui

GitHub 仓库地址

github地址>

DEMO演示地址

Demo演示地址>

安装

npm install --save v-fast-ui

使用

全局引入

在项目的main.js中添加下面的代码

import 'v-fast-ui/lib/v-fast-ui.css';
import VFastUi from 'v-fast-ui';

Vue.use(VFastUi);

Toast 全局提示

this.$toast('提示内容');

Indicator 全局加载

this.$indicator.open('loading...'); // 打开加载动画
setTimeout(() => {
  this.$indicator.close(); // 关闭加载动画
}, 2000);

SixNumber六位密码输入控件

props
  • type : 组件内文本框的样式类型 “line” 下划线样式 “rect” 矩形框样式 默认:“line”
  • input-type: 组件内文本框的原生type属性 一般为“number” 或者“password” 默认:"number"

说明

指令
  • v-model : 与父组件对应数据的绑定 字符串类型
methods
  • focus(index) : 手动触发聚焦到某一个文本框,index为文本框的序号(从0开始)如果index大于文本框总数减一则会聚焦到最后要一个。
event事件
  • on-finish : 当最后一个文本框输入内容完成时触发。参数 data 此时的内容字符串。
<template>
  <div v-wqd-title="'修改支付密码'" class="reset-paypwd">
    <div class="rpg">
      <label>输入原6位数字支付密码,完成身份验</label>
      <six-number ref="firstSixNumber" @on-finish="$refs['secondSixNumber'].focus()" 
        v-model="formData.oldPwd" type="rect" input-type="password"></six-number>
    </div>
    <div class="rpg">
    <label>请输入6位数字的新支付密码</label>
    <six-number @on-finish="$refs['thirdSixNumber'].focus()" ref="secondSixNumber" 
      v-model="formData.newPwd" type="rect" input-type="password"></six-number>
    </div>
    <div class="rpg">
    <label>请再次输入6位数字的新支付密码</label>
    <six-number ref="thirdSixNumber" v-model="formData.renewPwd" type="rect" input-type="password"></six-number>
    </div>
  </div>
</template>
<script>
export default {
  name: 'resetPayPassword',
  data() {
    return {
      formData: {
        oldPwd: '',
        newPwd: '',
        renewPwd: ''
      }
    };
  },
  components: {
    SixNumber
  }
};
</script>
<style lang="scss" scoped>
  .reset-paypwd{
    padding: px2rem(60) px2rem(40);
    .rpg{
      margin-bottom: px2rem(80);
      label{
        display: block;
        margin-bottom: px2rem(20);
        font-size: px2rem(28)
      }
    }
  }
</style>

按需引入

  • 首先还是在main.js里面加载我们的公共样式文件
import 'v-fast-ui/lib/v-fast-ui.css';
  • 在需要使用的地方手动加载组件使用

Toast和Indicator

<script>
import { Toast, Indicator } from 'v-fast-ui';
export default {
  data() {
    return {};
  },
  mounted() {
    Toast('你好呀');
    Indicator.open('loading...'); // 打开加载动画
    setTimeout(() => {
      Indicator.close(); // 关闭加载动画
    }, 2000);
  }
}
</script>

SixNumber六位密码输入控件

import { SixNumber } from 'v-fast-ui';
export default {
  data() {
    return {};
  },
  components: {
    SixNumber
  }
}
// 其他同全局引入