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

rs-grid

v0.1.2

Published

## 功能

Downloads

5

Readme

React Salt - Grid

功能

  • 展示行列数据
  • 单元格数据格式化
  • 增、删、查、改
  • 分页
  • 全选
  • 排序
  • 额外信息展示

Tips

  • If u do not need Pagination, just prevent 'offset\limit\total'
  • When using 'renderer', Grid will offer u current value in td, current line Data, info about this td

API

Props属性如下

props | 说明 | 类型 | 默认值 | 备选 ------------ |--------------- | ------------- | ------------- | ------------- columns | 列的定义 | array | [] | rows | 数据列表 | array | [] | offset | 分页码、不设置相关属性则不会产生分页组件 | number | -1 | total | 总页数 | number | 0 | limit | 每页数量 | number | 20 | renderKey | key,需要自定义绑定到一个key,如果数据没有唯一的key,将会自定采用index | string | enableSelection | 使用全选功能 | boolean | false | className | 自定义容器的类名 | string | table-responsive | heightControl | 高度限制 | string | ‘’ | TableStyle | 表格风格 | array | ['bordered'] | bordered\triped\condensed myHeadStyle | 表格头风格 | string | active | active\success\info\warning\danger batch | 自定义绑定多选功能的按钮 | array | [] |

  • 每一行都可以单独设定divStyle、className, className可以直接传递字符串

  • 每一单元格可以单独设定divStyle、className、orderBy、renderer

  • 行的回调参数是line info

  • 单元格的回调参数分别是value line info