# b-app-table

> b-app-table

Latest version **1.2.8** (published 2020-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install b-app-table
pnpm add b-app-table
yarn add b-app-table
bun add b-app-table
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.8 |
| Published | 2020-03-11 |
| First published | 2019-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 37 |
| Unpacked size | 390.8 KB |
| Known vulnerabilities | 0 (+8 in 3 direct dependencies) |
| Install scripts | no |
| Author | 123 |
| Maintainers | method123 |
| Keywords | react, npm, publish, react demo |

## Links

- npm: https://www.npmjs.com/package/b-app-table
- npm.io page: https://npm.io/package/b-app-table

## Dependencies (37)

- [antd](https://npm.io/package/antd.md) ^3.22.0
- [mobx](https://npm.io/package/mobx.md) ^5.13.0
- [react](https://npm.io/package/react.md) ^16.8.6
- [webpack](https://npm.io/package/webpack.md) ^4.35.2
- [gh-pages](https://npm.io/package/gh-pages.md) ^2.0.1
- [node-sass](https://npm.io/package/node-sass.md) ^4.12.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.8.6
- [@babel/cli](https://npm.io/package/@babel/cli.md) ^7.5.0
- [css-loader](https://npm.io/package/css-loader.md) ^3.0.0
- [mobx-react](https://npm.io/package/mobx-react.md) ^6.1.3
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.5.0
- [sass-loader](https://npm.io/package/sass-loader.md) ^7.1.0
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.3.5
- [@types/ramda](https://npm.io/package/@types/ramda.md) ^0.25.40
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^9.6.1
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^10.0.1
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.0.6
- [style-loader](https://npm.io/package/style-loader.md) ^0.23.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.5.1
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^3.0.0
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.4.4
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.5.0
- [babel-plugin-ramda](https://npm.io/package/babel-plugin-ramda.md) ^1.6.3
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^3.7.2
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.0.0
- [babel-plugin-import](https://npm.io/package/babel-plugin-import.md) ^1.11.0
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^3.2.0
- [clean-webpack-plugin](https://npm.io/package/clean-webpack-plugin.md) ^3.0.0
- [babel-plugin-date-fns](https://npm.io/package/babel-plugin-date-fns.md) ^0.2.1
- [postcss-flexbugs-fixes](https://npm.io/package/postcss-flexbugs-fixes.md) ^4.1.0
- [extract-text-webpack-plugin](https://npm.io/package/extract-text-webpack-plugin.md) ^4.0.0-beta.0
- [@babel/plugin-transform-runtime](https://npm.io/package/@babel/plugin-transform-runtime.md) ^7.5.0
- [@babel/plugin-proposal-decorators](https://npm.io/package/@babel/plugin-proposal-decorators.md) ^7.1.2
- [optimize-css-assets-webpack-plugin](https://npm.io/package/optimize-css-assets-webpack-plugin.md) ^5.0.3
- [@babel/plugin-syntax-dynamic-import](https://npm.io/package/@babel/plugin-syntax-dynamic-import.md) ^7.0.0
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.5.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.2.8 (latest) — 2020-03-11
- 1.2.7 — 2020-03-11
- 1.2.6 — 2020-03-11
- 1.2.5 — 2020-03-11
- 1.2.4 — 2020-03-11
- 1.2.3 — 2020-03-11
- 1.2.2 — 2020-03-11
- 1.2.1 — 2020-03-11
- 1.2.0 — 2020-03-11
- 1.1.3 — 2019-08-26
- 1.1.2 — 2019-08-26
- 1.1.1 — 2019-08-26
- 1.1.0 — 2019-08-26
- 1.0.8 — 2019-08-21
- 1.0.7 — 2019-08-21
- … 6 more at https://npm.io/package/b-app-table/versions

## README

基于 antd table 的二次封装

#Example

`yarn start`

---

#Used

`import AppTable from "b-app-table"`

`...`

```javascript
<AppTable
  ref={ref => (this.tableRef = ref)}
  page={1}
  rowKey="id"
  columns={this.columns}
  options={this.state.filterOptions}
  tableOptions={this.state.tableOptions}
  request={this.getList}
/>
```

指定一个 col 的 sorter,设置其 type 为'sort', options 设置排序参数,此排序为后端排序.

options 是 table 查询条件,对象.

tableOptions 是 table 状态,包括 page,size,sort 等,对象.

getList 是请求 dataSource 的接口函数,接收一个当前查询条件为参数,返回为:

```JavaScript
 {
   list:[],//table data
   total:100
 }
```

---

#Publish

`yarn publish`

---
_Source: https://npm.io/package/b-app-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
