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

z-ui-pc

v1.1.4

Published

适用于pc端的前端组件库

Readme

z-ui-pc

适用于pc端的前端组件库

开发注意事项

  • !!!组件不要使用 useTemplateRef 否者打包出来部分代码会有警告:Set operation on key "value" failed: target is readonly
  • 因为 vite-plugin-dts 启用了 @microsoft/api-extractor 合并声明文件所以不支持 export default xxx 语法,所以如果有导出默认需求的,请使用
const defaultExportData = {
  test: "test",
};
/**
 * 使用 export default xxx 会导致编译失败:The "default" symbol has a ts.SyntaxKind.ExportAssignment declaration which is not (yet?) supported by API Extractor
 * 下面两种方式选一种即可。
 */
export { defaultExportData as default };
// or
export default defaultExportData;

快速开始

安装依赖

  npm i

本地开发

  # dev 跑的话是跑 monorepo 打包出来的,play下所有的组件指向的都是dist目录下的内容,跑 dev 需要先跑 build:dev
  npm run dev
  # dev:local 跑的话是直接指向源码,即 src 下目录的组件
  npm run dev:local

打包代码

  npm run build

查找、修复代码问题

  z run eslint
  # 或者
  z r e

格式化代码

  z run prettier
  # 或者
  z r p

检测类型问题

  z run type-check
  # 或者
  z r tc

检测依赖更新

  z run dependency-check
  # 或者
  z r dc

常见问题

列出开发中常见的问题和解决方案

了解更多

在此处放入飞书文档链接。请在组件手册中按照分类新建文档。