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

t1-ui

v1.3.5

Published

内部组件库 t1-UI组件

Readme

UI

发布

npm publish

自动改变版本

npm version patch

属性的命名

组件属性大多数都是 xxBgType xxType xxSize xxStyle 这样的格式

  • bgType 对应的是背景主题;
  • type 对应的是颜色主题;
  • size 对应的是尺寸主题;
  • style 是自定义样式;

title 标题 width 宽度 height 高度 bordered 是否展示边框 size 尺寸 style 是自定义样式; color 颜色 icon 自定义图标 text 文本

required: true 是否必须

为了减少页面代码 请将t-base.scss 引入全局css

Vue 组件命名

组件的命名需遵从以下原则:

  • “t-” 开头

  • 有意义的 : 不过于具体,也不过于抽象

  • 简短 : 2 到 3 个单词

  • 具有可读性 : 以便于沟通交流

    package.json

  • version:当前发布的版本号,项目每次改动后需要修改版本后再发布, 我一开始用1.0.0就不行, 默认要0.0.1开始才能上传

  • name: 包名只能小写, 不能和npm所有的的包名重复,我一开始用tool-cli,发现上传失败,别人占用了就不行了。

  • main:主入口文件,定义你的包入口文件

  • 项目这边准备完毕之后需要到 npm 官网 注册一个账号,记住你的 username 和 email,注册完毕之后会给你的邮箱发送一封验证邮件,需要点击一下。完毕之后登录一下,就可以进行下面的上传工作了。

npm install t1-ui

登录

npm login svipc wxdbngt... [email protected]

自动改变版本

npm version <update_type> 具体体现为: 对于"version":"x.y.z" 修复bug,小改动,增加z 变为1.0.1 npm version patch

 增加了新特性,但仍能向后兼容,增加y 变为1.1.0
 npm version minor
 
 有很大的改动,无法向后兼容,增加x 变为2.0.0
 npm version major