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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@teamix/data-summary

v2.0.1

Published

数据概览,数据展示

Downloads

27

Readme

数据概览_spacex

@teamix/data-summary

数据概览,数据展示

API

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | | ------ | ---- | ---- | ---- | ------ | ---- | | dataSource | 数据项 | 是 | IDataItem 或者 IDataItem[],参考 IDataItem 定义 | | | | title | 标题 | 否 | React.ReactNode | | | | subTitle | 副标题 | 否 | React.ReactNode | | | | loading | 加载中状态 | 否 | Boolean | false | | | noBorder | 没有边框 | 否 | Boolean | false | 默认带边框 | | noPadding | 没有内边距 | 否 | Boolean | false | 默认带内边距,无边距的情况下也没有边框 | | backgroundState | 背景色状态 | 否 | 'normal', 'success', 'error', 'warning', 'help', 'grey' | |想定制背景色可通过style属性指定| | increase | 增减百分比,正数表示增加,负数表示减少 | 否 | number | | | | increaseUnit | 增减单位 | 否 | string | % | | | progress | 进度 | 否 | number | | | | progressState | 进度条状态,可快捷设置进度条颜色,当 progress 不为空时有效 | 否 | 'normal', 'success', 'error' | | 对应 Progress 的 state 属性 | | progressColor | 进度条颜色,当 progress 不为空时有效 | 否 | string | | 对应 Progress 的 color 属性 | | style | 自定义样式 | 否 | React.CSSProperties | | | | action | 自定义操作区 | 否 | React.ReactNode | | | | extra | 自定义扩展区 | 否 | React.ReactNode | | | | footer | 自定义底部内容 | 否 | React.ReactNode | | | | prefixType | 卡片前缀状态,当设置 prefix 或 prefixIcon 后生效 | 否 | 'inner', 'outer' | 'inner' | | | prefix | 卡片前缀文案 | 否 | React.ReactNode | | | | prefixIcon | 卡片前缀图标 | 否 | string | | 对应 Icon 的 type 属性 | | prefixState | 卡片前缀状态 | 否 | 'normal', 'success', 'warning', 'error' | | | | onDataItemClick | 点击回调函数 | 否 | Function | | |

IDataItem

数据项

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | | ------ | ---- | ---- | ---- | ------ | ---- | | data | 数据 | 是 | number | | | | description | 描述文案 | 是 | React.ReactNode | | | | icon | 图标 | 否 | string | | 对应 Icon 的 type 属性 | | unit | 数据单位 | 否 | string | | 如 '%', '个', '℃' | | align | 数据项水平对齐 | 否 | 'center', 'left', 'right' | 'left' | | | status | 数据状态 | 否 | 'success', 'error' | | | | dataAlign | 数值水平对齐 | 否 | 'center', 'left', 'right' | 'left' | | | url | 跳转地址 | 否 | string | | | | onClick | 点击回调函数 | 否 | Function | | |