# @aligov/components-table-actions

> 表格操作单元格容器

Latest version **2.1.0** (published 2020-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @aligov/components-table-actions
pnpm add @aligov/components-table-actions
yarn add @aligov/components-table-actions
bun add @aligov/components-table-actions
```

## 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 | 2.1.0 |
| Published | 2020-11-09 |
| First published | 2019-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 471.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | leezq, baizhao, zhaojian6516, daip, ccs0118, zhangcong52, zwhu, guoliang.hgl, mo.zhou, zhousufa, jerrywang12, xiazhiqiang, liunian, itrip, tao1991123 |
| Keywords | ice, react, component |

## Links

- npm: https://www.npmjs.com/package/@aligov/components-table-actions
- Homepage: https://unpkg.com/@aligov/components-table-actions@2.1.0/build/index.html
- npm.io page: https://npm.io/package/@aligov/components-table-actions

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8
- [@alifd/next](https://npm.io/package/@alifd/next.md) ^1.17.12

## 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

- 2.1.0 (latest) — 2020-11-09
- 2.0.1 — 2020-08-07
- 2.0.0 — 2020-08-06
- 1.0.2 — 2019-11-04
- 1.0.1 — 2019-11-02
- 1.0.0 — 2019-10-14

## README

# 表格操作单元格容器

@aligov/components-table-actions

表格操作单元格容器。

用于表格的操作列内容渲染，直接写内容，容器给内部的元素添加空白间隔。

从 `2.0.0` 版本开始，添加了超过指定数量后将收起放到「更多」下拉菜单里的功能。下拉菜单默认和触发元素右对齐，可根据实际场景来做调整。

## 用法

```jsx
<TableActions>
  <Button type="primary" text={true}>Button型文字</Button>
  <Button type="primary">按钮</Button>
  <a href="//taobao.com">链接</a>
  <span>普通文本</span>
</TableActions>
```

## API

| 参数名        | 说明                                          | 必填 | 类型   | 默认值   | 备注              |
|---------------|-----------------------------------------------|------|--------|----------|-------------------|
| moreThreshold | 子元素超过该数量后，将出现下拉菜单            | N    | number | 3        | 自 `2.0.0` 版本起 |
| moreText      | 下拉菜单展示文案                              | N    | string | `"更多"` | 自 `2.0.0` 版本起 |
| moreProps     | 下拉菜单 props，详见 [MenuButton][MenuButton] | N    | object | `{}`     | 自 `2.0.0` 版本起 |
| popupProps    | 下拉弹层 props，详见 [Overlay][Overlay]       | N    | object | `{}`     | 自 `2.0.0` 版本起 |




[MenuButton]: https://fusion.design/gov/component/basic/menu-button
[Overlay]: https://fusion.design/gov/component/basic/overlay

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