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

@ctsy/element

v0.0.6

Published

## Project setup

Downloads

20

Readme

element

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

倒计时组件-局部组件

基于 ElementUI el-button 二次封装

import TimeOut from "../Base/TimeOutButton.vue";

<TimeOut></TimeOut>;

Component({
  components: {
    TimeOut,
  },
});

| 参数 | 说明 | | :--------- | ------------------------------------------------------: | | Time | 倒计时时间,默认 60 秒,传入的时间为数字且不能小于等于 0 | | Size | 按钮大小,参考 elementUIel-button Size。默认 small | | type | 按钮类型,参考 elementUIel-button Type, 默认 suceess | | disabled | 是否禁用按钮,默认 false | | ButtonText | 按钮文字 | | @TimeEnd | 监听倒计时结束 @TimeEnd='方法名' |

表单校验库

  • 校验库中的方法:基于自定义的一套验证方法
  • 校验库中的正则:基于自定义的正则库
  • 注意:此校验库只适用于 ElementUI Form 校验
  • 引入:import ElementFormRules from "@/lib/ElementFormRules/index";
  • 使用:const ERules = ElementFormRules.defalultRules;

忘记密码组件-全局组件

  • 说明:集成 ElementUI form 表单 Rule 校验
slot:{
    default:默认插槽 可自定义
    email:具名插槽
}

Props:{
 Size: 输入框大小 参考 elementui
}

emit:{
    cancel:返回 fasle 隐藏dialog
success:找回密码成功之后的回调
error:找回密码失败之后的回调
}

<CtsyForget></CtsyForget>

登录组件-全局组件

  • 说明:集成 ElementUI form 表单 Rule 校验
prop:{
    Size:输入框大小 参考elementui

}

emit:{
    cancel:返回 fasle 隐藏dialog
    success:登录成功之后的回调 返回登录成功之后的信息
    error:登录失败之后的回调
}

<CtsyLogin></CtsyLogin>

注册组件-全局组件

  • 说明:集成 ElementUI form 表单 Rule 校验
slot{
    default:默认 可以自定义
    avatar:头像
    button:底部按钮块
}

props:{
    Size:输入框大小 参考elementui
registerProps:{  //是否显示头像上传 电话号码验证 邮箱验证
    Avatar: false,
    IsPhone: true,
    IsEmail: false

    }
}

emit:{
    cancel:返回 fasle 隐藏dialog
    success:注册成功之后的回调 ,
  error:注册失败后的回调
}
<CtsyRegister></CtsyRegister>

集成 login,register,forget 组件 -全局组件

    props:{
        visible:是否显示dialog
    }

    emit{
        input:返回dialog viseble 状态
    }


<CtsyUserModule></CtsyUserModule>