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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pcy-ui-1999

v1.0.6

Published

"仿element写的组件库"

Readme

pcy-ui

安装

npm install pcy-ui-1999;

使用

main.js

import pcyUi from "pcy-ui-1999" //引入包
import "pcy-ui-1999/pcy-ui.css" //引入样式
Vue.use(pcyUi)//使用

Pcy-button

<pcy-button @click="xxx" size="mini" type="sucess">默认按钮</pcy-button>

button Attributes

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | :-------- | --------------- | ------- | -------------------------------------------------- | ------ | | size | 按钮大小 | string | medium / small / mini | ----- | | type | 类型 | string | text / primary / success / warning / info / danger | ----- | | icon | 图标 | string | 我icon引入的可以用 | ------ | | disabled | 是否禁用 | Boolean | —————— | false | | round | 是否圆角 | Boolean | —————— | false | | circle | 是否圆 | Boolean | —————— | false | | loading | 是否显示loading | Boolean | —————— | false | | autofocus | 是否自动聚焦 | Boolean | —————— | false | | plain | 是否缕空 | string | —————— | false |

//还增加了 水波纹效果 防抖/节流 划过特殊样式 不过没有融入组件内

Pcy-input

<pcy-input 
  v-model="input" 
  placeholder="请输入内容" 
  @focus="handle_focus" 
  @blur="handle_blur"
  @input="handle_input"
  @change="handle_change"、
  type="text/textarea"
	clearable  //是否可清除
  disabled	//是都可选
  show-password	//是否展示密码框框
	suffix-icon="xxx"	//后置icon  属性的方式 也可以通过插槽的形式
	prefix-icon="xxx"	//前置icon
	autosize //text == textarea 的时候 
  size="mini" //大小
	show-word-limit //是否显示长度显示
	maxlength="30"//最大长度 配合showwordlimit一起使用
></pcy-input>

input Attributes

| 属性 | 说明 | 类型 | 可选值 | 默认值 | | --------------- | ------------------------------------------------------ | ---------------- | --------------------- | ------ | | type | input类型 | String | text / textarea | Text | | size | input框大小 type==textarea不生效 | String | medium / small / mini | — | | disabled | 是否禁用 | Boolean | ————— | false | | clearable | 是否可清楚 | Boolean | ————— | false | | show-pass-word | 是否显示密码框 | Boolean | ————— | false | | suffixIcon | 后置icon | string | 在icon库里的可用 | false | | prefixicon | 前置icon | String | 在icon库里的可用 | false | | autosize | textarea高度自适应 对象如: { minRows: 2, maxRows: 6 } | Boolean / object | —————— | — | | show-word-limit | 显示长度显示 | Boolean | —————— | false | | maxlength | 最大长度 搭配show-word-limit 原生属性 | String | —————— | false | | value/v-mode | input的绑定值 | string/number | —— | — | | placeholder | 默认提示 | string | —— | — | | autofocus | 原生属性 自动获取焦点 | Boolean | —— | false |

input slots

| name | 说明 | | ------- | ----------------------------- | | prefix | 前置icon | | suffix | 后置icon | | prepend | 前置元素 组合input的时候 使用 | | append | 后置元素 组合input的时候 使用 |

input event

| 事件名称 | 说明 | 回调 | | -------- | ---------------------------------------------- | --------------- | | input | 输入框发现变化时 | (event: Event) | | change | 输入框失去焦点 且发生变化 | (event: Event) | | focus | 获取焦点 | (value: string) | | blur | 失去焦点 | (value: string) | | clear | 当属性clearable为true时 点击清除按钮触发的事件 | —— |