1.0.3-rc.25 • Published 4 years ago
platform-standard-datatable v1.0.3-rc.25
平台标准数据列表组件 - pagebuilder 专用
基于@beisen-platform/ux-standard-table 标准组件,默认调用/api/v2/UI/IndexPage/GetTableList
获取列表描述信息;调用接口 /api/v2/UI/TableList
获取表格渲染数据。可通过getTableListUrl
属性修改获取列表描述信息请求接口,可通过tableListUrl
属性修改或表格渲染数据接口。
属性说明
属性 | 说明 | 类型 | 默认值 | ||
---|---|---|---|---|---|
mainObjectContext | 上下文信息,包含PObjectDataID,parentDataId,parentMetaObjName | object | - | ||
loading | table组件loading状态 | bool | false | ||
singleChecked | table是否是单选 | bool | false | ||
selectedData | table默认选中数据的ids | array | [] | ||
onSelect | table行选中之后的回调函数,selectedItems:table选中行的所有数据,与metadata中的biz_data中行记录结构一致,outsideSelectedIds是selectedData的子集,排除了table操作过程中取消选中的那部分selectedData的数据 | function (selectedItems, outsideSelectedIds) {} | - | ||
reloadData | 重新加载table列表数据 | function (tableMetaData, reloadReson) {} | [] | ||
onCrossPageSelectChanged | table跨页全选点击回调 | function (isActive) {} | bool | ||
tableSize | table组件的渲染的模式,stretch: 自动充满父容器,滚动条在table内部。Auto: table根据自身高度渲染,滚动条出现在外部 | string | Auto | ||
tableContainer | 配置tableSize为stretch的时候使用,父容器的DOM | DOM | table组件所在的parentElement | ||
containerHeight | 给table一个计算好的显式高度 | int | - | ||
containerWidth | 给table一个计算好的显式宽度 | int | - | ||
ext_genColDef | 重写某个列 | function (colData, index, column) {} | - | ||
ext_getColumns | 重写列(拿到所有的列) | function (columns) {} | - | ||
isDisableRowCheck | 是否禁用选择当前行 | boolean或者function(dataId, currentRow){} ;当为boolean时,针对所有行有效;当为函数时,只针对当前行生效 | - | ||
columnConfigUrl | 获取表格编辑显示字段接口URL | string | /api/v2/UI/CustomListView | ||
defaultExpandKeys | 默认展开行的key数组 | array | [] | 否 | |
expandColumnKeys | 可点击展开列的字段名 数组 | array | [] | 否 | |
expandedRowRender | 设置展开的行渲染内容 | function(rowData, rowIndex) | 无 | 否 | 如果是可展开,此项是必填 |
tableListUrl | 获取表格数据接口URL | string | /api/v2/UI/TableList | ||
getTableListUrl | 获取表格配置接口URL | string | /api/v2/UI/IndexPage/GetTableList | ||
customParam | 自定义请求接口参数 | object | {} | ||
ellipsis | 内容超过单元格宽度是否显示...,默认为false,也就是会换行 | boolean | false | 否 | 强烈建议不要设置为true,会导致性能问题(数据量过大) |
1.0.3-rc.25
4 years ago
1.0.3-rc.24
4 years ago
1.0.3-rc.23
4 years ago
1.0.3-rc.22
4 years ago
1.0.3-rc.21
4 years ago
1.0.3-rc.19
4 years ago
1.0.3-rc.18
4 years ago
1.0.3-rc.17
4 years ago
1.0.3-rc.16
4 years ago
1.0.3-rc.15
4 years ago
1.0.3-rc.14
4 years ago
1.0.3-rc.13
4 years ago
1.0.3-rc.12
4 years ago
1.0.3-rc.11
4 years ago
1.0.3-rc.10
4 years ago
1.0.3-rc.9
4 years ago
1.0.3-rc.8
4 years ago
1.0.3-rc.7
4 years ago
1.0.3-rc.6
4 years ago
1.0.3-rc.5
4 years ago
1.0.3-rc.4
4 years ago
1.0.3-rc.3
5 years ago
1.0.3-rc.2
5 years ago
1.0.3-rc.1
5 years ago
1.0.3
5 years ago
1.0.1-rc.10
5 years ago
1.0.1-rc.9
5 years ago
1.0.1-rc.8
5 years ago
1.0.1-rc.7
5 years ago
1.0.1-rc.6
5 years ago
1.0.1-rc.5
5 years ago
1.0.1-rc.4
5 years ago
1.0.1-rc.3
5 years ago
1.0.1-rc.1
5 years ago
1.0.0-rc1.0.16
5 years ago
1.0.0-rc1.0.15
5 years ago
1.0.0-rc1.0.14
5 years ago
1.0.0-rc1.0.13
5 years ago
1.0.0-rc1.0.12
5 years ago
1.0.0-rc1.0.11
5 years ago
1.0.0-rc1.0.10
5 years ago
1.0.0-rc1.0.9
5 years ago
1.0.0-rc1.0.8
5 years ago
1.0.0-rc1.0.7
5 years ago
1.0.0-rc1.0.6
5 years ago
1.0.0-rc1.0.5
5 years ago
1.0.0-rc1.0.4
5 years ago
1.0.0-rc1.0.3
5 years ago
1.0.0-rc1.0.2
5 years ago
1.0.0-rc1.0.1
5 years ago
1.0.0-rc1.0.0
5 years ago