# beisen-phoenix-fork-mobile-action-sheet

> ``` import React from 'react'; import ActionSheet from '../../src'; export default () => { return ( 显示 ) } function showActionSheet() { const BUTTONS = [{ text: '全部待办', value: 100, }, { te

Latest version **0.0.21** (published 2019-09-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install beisen-phoenix-fork-mobile-action-sheet
pnpm add beisen-phoenix-fork-mobile-action-sheet
yarn add beisen-phoenix-fork-mobile-action-sheet
bun add beisen-phoenix-fork-mobile-action-sheet
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 0.0.21 |
| Published | 2019-09-16 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 317.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | beisencorp |

## Links

- npm: https://www.npmjs.com/package/beisen-phoenix-fork-mobile-action-sheet
- Repository: git@gitlab.beisencorp.com:zhangyang/mobile-action-sheet
- npm.io page: https://npm.io/package/beisen-phoenix-fork-mobile-action-sheet

## Dependencies (7)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [rc-animate](https://npm.io/package/rc-animate.md) 2.x
- [rmc-dialog](https://npm.io/package/rmc-dialog.md) 1.0.1
- [rmc-feedback](https://npm.io/package/rmc-feedback.md) ^2.0.0
- [@types/classnames](https://npm.io/package/@types/classnames.md) ^2.2.7
- [react-transition-group](https://npm.io/package/react-transition-group.md) ^4.0.0
- [@beisen-phoenix/mobile-style-token](https://npm.io/package/@beisen-phoenix/mobile-style-token.md) ^1.0.20

## Recent versions

- 0.0.21 (latest) — 2019-09-16
- 0.0.20 — 2019-09-16
- 0.0.19 — 2019-09-12
- 0.0.17 — 2019-09-12
- 0.0.16 — 2019-09-10
- 0.0.15 — 2019-09-10
- 0.0.14 — 2019-09-10
- 0.0.13 — 2019-09-10
- 0.0.12 — 2019-09-10
- 0.0.11 — 2019-09-06

## README

# 移动端ActionSheet组件

```
import React from 'react';
import ActionSheet from '../../src';
export default () => {
  return (
    <button onClick={showActionSheet}>显示</button>
  )
}
function showActionSheet() {
  const BUTTONS = [{
    text: '全部待办',
    value: 100,
  }, {
    text: '审批',
    value: 99,
  }, {
    text: '会议室预定',
    value: 98,
    disabled: true,
  }, {
    text: '招聘',
    value: 97,
  }];
  ActionSheet.show({
    items: BUTTONS,
    showCancel: true,
    // message: '辅助说明文字两行打点辅助说明文字两行打点辅助说明文字两行打点',
    maskClosable: true
  },
  (buttonIndex) => {
    // alert(buttonIndex);
    // this.setState({ clicked: BUTTONS[buttonIndex] });
  });
}

```

---
_Source: https://npm.io/package/beisen-phoenix-fork-mobile-action-sheet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
