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

rc-list-framework

v1.0.3

Published

基于antd的列表业务组件

Downloads

6

Readme

listFramework


React antd list-framework

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![gemnasium deps][gemnasium-image]][gemnasium-url] [![npm download][download-image]][download-url]

Screenshots

Feature

  • support ie8,ie8+,chrome,firefox,safari

install

list-framework

API

ListFramework props

| name | description | type | default | |----------|----------------|----------|--------------| | className | additional css class of root dom node | String | '' | | childrenButtons | In front of the list of additional action button | Array | [] | | data | The list of the original data | Array | [] | | loading | The data load state | Boolean | false | | children | Additional content in front of the list | Any | | | table | Form the configuration of the description, specific see the table below | TableProps[] | - | | pagination | Paging the configuration of the description, specific see the table below | PaginationProps[] | - | | modal | Modal the configuration of the description, specific see the table below | ModalProps[] | - | | initData | Preload data function | Func | () => {} | | loadDataHandle | Load the data processing function | Fun | () => {} |

Table props

| name | description | type | default | |----------|----------------|----------|--------------| | bordered | 是否展开外边框和列边框 | boolean | false| | colums | 表格列的配置描述,具体详见 | ColumnProps[] |-| | components | 覆盖默认的table元素 | object | - | |dataSource| 数据数组 | any[] || | defaultExpandAllRows | 初始时,是否展开所有行 | boolean | false | | defaultExpandedRowKeys | 默认展开的行 | string[] | - | | expandedRowKeys | 展开的行,控制属性 | string[] | - | | expandRowByClick | 通过点击行来展开子行 | boolean | false | | expandedRowRender | expandedRowRender|Function(record):ReactNode|| |expandRowByClick|expandRowByClick|boolean|false| |footer|表格尾部|Function(currentPageData) || |indentSize|展示树形数据时,每层缩进的宽度,以 px 为单位|number|15| |loading|loading|boolean|object (更多) |false| |locale|默认文案设置,目前包括排序、过滤、空数据文案|object|filterConfirm: '确定' filterReset: '重置' emptyText: '暂无数据' 默认值| |pagination|分页器,配置项参考 pagination,设为 false 时不展示和进行分页|object|| |rowClassName|表格行的类名|Function(record, index):string || |rowKey|表格行 key 的取值,可以是字符串或一个函数|string|Function(record):string |'key'| |rowSelection|rowSelection|object|null| |scroll|横向或纵向支持滚动,也可用于指定滚动区域的宽高度:{{ x: true, y: 300 }}|object|-| |showHeader|是否显示表头|boolean|true| |size|正常或迷你类型,default or small|string|default| |title|表格标题|Function(currentPageData)|| |onChange|分页、排序、筛选变化时触发|Function(pagination, filters, sorter)|| |onExpand|点击展开图标时触发|Function(expanded, record)|| |onExpandedRowsChange|展开的行变化时触发|Function(expandedRows)|| |onHeaderRow|设置头部列属性|Function(column, index)|| |onRow|设置列属性|Function(record, index)|||