Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@teamix/data-summary

Package Overview
Dependencies
Maintainers
20
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teamix/data-summary

数据概览,数据展示

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-80%
Maintainers
20
Weekly downloads
 
Created
Source

数据概览_spacex

@teamix/data-summary

数据概览,数据展示

API

参数名说明必填类型默认值备注
dataSource数据项IDataItem 或者 IDataItem[],参考 IDataItem 定义
title标题React.ReactNode
subTitle副标题React.ReactNode
loading加载中状态Booleanfalse
noBorder没有边框Booleanfalse默认带边框
noPadding没有内边距Booleanfalse默认带内边距,无边距的情况下也没有边框
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

Keywords

FAQs

Package last updated on 24 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc