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

cf-custom-ui

v1.1.1

Published

### 长风自定义组件说明-2024.04.02 #### 1. changPsw - 说明:强制更改密码组件(应用:登录密码超过30天未修改,强制跳转到此界面) - 用法: 执行安装命令 ``` npm install cf-custom-ui ``` 然后再main.js引用全局注册 ``` import cf-custom-ui from 'cf-custom-ui'

Readme

cf-custom-ui

长风自定义组件说明-2024.04.02

1. changPsw

  • 说明:强制更改密码组件(应用:登录密码超过30天未修改,强制跳转到此界面)

  • 用法: 执行安装命令

    npm install cf-custom-ui

    然后再main.js引用全局注册

    import cf-custom-ui from 'cf-custom-ui'
       
    Vue.use(cf-custom-ui)

    然后再需要使用的页面使用即可

    <cf-change-psw :show="showDialog" @close="closeDialog"></cf-change-psw>
  • 参数说明:

    参数 | 说明|类型| 可选值| 默认值 -------- | -----| -----| -----| ----- show | 弹框显隐初始化|boolean||false theme | 主题样式(内置了两个颜色主题:白色、蓝色)|string|primary/white|white loginInfo | 用户登录信息,需包含一下信息{username: "",password: "",pswDay: ""}|object|| validImg | 验证码图片值|string||

  • 方法说明: 方法 | 说明|参数| -------- | -----| -----| changePassword |提交更改密码 |(username,oldPassword,newPassword)三个参数:用户名,旧密码,新密码 updateValid|刷新验证码 |1 (定值不变) close |关闭弹窗事件 |

  • 组件效果 alt text

打包到npm步骤

1. 打包

 npm run package

执行npm run package 命令进行打包,执行成功后会在目录下生成一个文件 alt text alt text

2. 生成配置文件

 cd cf-custom-ui
 npm init -y

进入刚才生成的文件夹,进入命令 cd cf-custom-ui , 执行初始化命令 npm init -y ,会生成package.json, 在package.json可以写一些配置。

优化,只保留我们需要的文件,并新建 readme.md 写上组件使用说明。

3. npm账号登录

使用npm adduser 命令添加npm账号,如果没有自行到npm注册一个账号即可

4. 上传插件

npm publish

alt text 在打包目录下使用 npm publish,上传插件到npm平台

5. 版本更新

如果更新组件,需要修改version版本号,版本号要比上次的大,否则无法上传 alt text

参考博客:封装vue公共组件,并发布npm平台,让所有人都可以下载使用