1.0.3-rc.25 • Published 4 years ago

platform-standard-datatable v1.0.3-rc.25

Weekly downloads
3
License
ISC
Repository
gitlab
Last release
4 years ago

平台标准数据列表组件 - pagebuilder 专用

基于@beisen-platform/ux-standard-table 标准组件,默认调用/api/v2/UI/IndexPage/GetTableList获取列表描述信息;调用接口 /api/v2/UI/TableList 获取表格渲染数据。可通过getTableListUrl属性修改获取列表描述信息请求接口,可通过tableListUrl属性修改或表格渲染数据接口。

属性说明

属性说明类型默认值
mainObjectContext上下文信息,包含PObjectDataID,parentDataId,parentMetaObjNameobject-
loadingtable组件loading状态boolfalse
singleCheckedtable是否是单选boolfalse
selectedDatatable默认选中数据的idsarray[]
onSelecttable行选中之后的回调函数,selectedItems:table选中行的所有数据,与metadata中的biz_data中行记录结构一致,outsideSelectedIds是selectedData的子集,排除了table操作过程中取消选中的那部分selectedData的数据function (selectedItems, outsideSelectedIds) {}-
reloadData重新加载table列表数据function (tableMetaData, reloadReson) {}[]
onCrossPageSelectChangedtable跨页全选点击回调function (isActive) {}bool
tableSizetable组件的渲染的模式,stretch: 自动充满父容器,滚动条在table内部。Auto: table根据自身高度渲染,滚动条出现在外部stringAuto
tableContainer配置tableSize为stretch的时候使用,父容器的DOMDOMtable组件所在的parentElement
containerHeight给table一个计算好的显式高度int-
containerWidth给table一个计算好的显式宽度int-
ext_genColDef重写某个列function (colData, index, column) {}-
ext_getColumns重写列(拿到所有的列)function (columns) {}-
isDisableRowCheck是否禁用选择当前行boolean或者function(dataId, currentRow){};当为boolean时,针对所有行有效;当为函数时,只针对当前行生效-
columnConfigUrl获取表格编辑显示字段接口URLstring/api/v2/UI/CustomListView
defaultExpandKeys默认展开行的key数组array[]
expandColumnKeys可点击展开列的字段名数组array[]
expandedRowRender设置展开的行渲染内容function(rowData, rowIndex)如果是可展开,此项是必填
tableListUrl获取表格数据接口URLstring/api/v2/UI/TableList
getTableListUrl获取表格配置接口URLstring/api/v2/UI/IndexPage/GetTableList
customParam自定义请求接口参数object{}
ellipsis内容超过单元格宽度是否显示...,默认为false,也就是会换行booleanfalse强烈建议不要设置为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