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

titans-react

v0.4.26

Published

**普通查询组件**

Downloads

23

Readme

CommonTableList

普通查询组件

参数说明:

| 参数 | 类型 | 说明 | | :----------------- | :------- | :--------------------------------------------- | | config | object | 配置信息 | | dispatch | function | dispatch方法 | | modelState | object | 使用该组件的业务页面state对象 | | addInitValue | array | 【可选参数】新增弹出框初始化数据 | | addExtraParan | object | 【可选参数】调用新增保存接口时附加传参 | | dictAddBlackOption | object | 【可选参数】下拉框添加空白选项的字段数组 | | languageId | string | 【可选参数】国际化标识,接口调用时附加参数 | | searchInitValue | object | 【可选参数】普通查询栏初始化表单数据 | | importInitValue | object | 【可选参数】导入excel时附加传参 | | unShowImportData | boolean | 【可选参数】是否显示导入excel数据,默认是 | | pageAble | boolean | 【可选参数】表格是否显示分页,默认显示(true) | | tableColsWidth | object | 【可选参数】表格自定义显示列宽 |

说明:

1、buttonDisabled

// 下面buttonDisabled参数定义了当字段moduleCode值为“uaa”时,按钮update不可用
const buttonDisabled = {
    update: {
        moduleCode: '/^uaa$/'
    }
}

TableSearch

普通查询组件

参数说明:

| 参数 | 类型 | 说明 | | :-------------- | :------- | :----------------------------------------- | | config | object | 配置信息 | | dispatch | function | dispatch方法 | | dicts | array | 字典数据 | | columns | array | 查询列信息(通过解析器解析后的列信息格式) | | searchInitValue | object | 【可选参数】普通查询栏初始化表单数据 | | form | | | | languageId | string | 【可选参数】国际化标识,接口调用时附加参数 |

StandardTable

antd表格组件

参数说明:

| 参数 | 类型 | 说明 | | :-------------- | :------- | :--------------------------------------------------------- | | config | object | 配置信息 | | dispatch | function | dispatch方法 | | dicts | array | 字典数据 | | columns | array | 表格列信息(通过解析器解析后的列信息格式) | | loading | boolean | 表格loading显隐标识 | | data | object | 表格数据信息对象,包含list数据信息,pagination分页信息 | | form | | | | id | array | 【可选参数】表格的id字段,可设置多个字段,默认为['id'] | | selectedRows | array | 【可选参数】表格勾选数据,表格可勾选时传入 | | tableButtons | array | 【可选参数】表格按钮信息(通过解析器解析后的表格按钮格式) | | tableColsWidth | object | 【可选参数】表格自定义显示列宽 | | defaultColWidth | number | 【可选参数】表格默认列宽 | | pageAble | boolean | 【可选参数】表格是否显示分页,默认显示(true) |

CommonOperation

操作栏组件

参数说明:

| 参数 | 类型 | 说明 | | :--------------- | :------- | :----------------------------------------------- | | config | object | 配置信息 | | dispatch | function | dispatch方法 | | dicts | array | 字典数据 | | columns | array | 表格列信息(通过解析器解析后的列信息格式) | | loading | boolean | 按钮禁用控制标识,true时禁用 | | form | | | | id | array | 表格的id字段,可设置多个字段 | | selectedRows | array | 表格勾选数据 | | buttons | array | 操作栏按钮信息(通过解析器解析后的表格按钮格式) | | publicPath | string | web url,导入api url部分 | | importInitValue | any | 【可选参数】导入excel时附加传参 | | unShowImportData | boolean | 【可选参数】是否显示导入excel数据,默认是 |

CommonAdd

新增弹出框组件

参数说明:

| 参数 | 类型 | 说明 | | :----------------- | :------- | :--------------------------------------------- | | config | object | 配置信息 | | dispatch | function | dispatch方法 | | dicts | array | 字典数据 | | columns | array | 新增字段列信息(通过解析器解析后的列信息格式) | | showAdd | boolean | 新增弹出框显隐 | | addInitValue | object | 【可选参数】新增弹出框初始化数据 | | addExtraParan | object | 【可选参数】调用新增保存接口时附加传参 | | dictAddBlackOption | array | 【可选参数】下拉框添加空白选项的字段数组 |

CommonUpdate

修改弹出框组件

参数说明:

| 参数 | 类型 | 说明 | | :----------------- | :------- | :--------------------------------------------- | | config | object | 配置信息 | | dispatch | function | dispatch方法 | | dicts | array | 字典数据 | | columns | array | 修改字段列信息(通过解析器解析后的列信息格式) | | showUpdate | boolean | 修改弹出框显隐 | | addExtraParan | object | 表格字段列信息(通过解析器解析后的列信息格式) | | dictAddBlackOption | array | 【可选参数】下拉框添加空白选项的字段数组 |