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

platform-standard-datatable

v1.0.3-rc.25

Published

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

Downloads

12

Readme

平台标准数据列表组件 - 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,会导致性能问题(数据量过大) |