1.0.3 • Published 6 years ago

rc-list-framework v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

listFramework


React antd list-framework

NPM version build status Test coverage gemnasium deps npm download

Screenshots

Feature

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

install

list-framework

API

ListFramework props

namedescriptiontypedefault
classNameadditional css class of root dom nodeString''
childrenButtonsIn front of the list of additional action buttonArray[]
dataThe list of the original dataArray[]
loadingThe data load stateBooleanfalse
childrenAdditional content in front of the listAny
tableForm the configuration of the description, specific see the table belowTableProps[]-
paginationPaging the configuration of the description, specific see the table belowPaginationProps[]-
modalModal the configuration of the description, specific see the table belowModalProps[]-
initDataPreload data functionFunc() => {}
loadDataHandleLoad the data processing functionFun() => {}

Table props

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