beisen-phoenix-fork-mobile-action-sheet
TypeScript icon, indicating that this package has built-in type declarations

0.0.21 • Public • Published

移动端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] });
  });
}

Readme

Keywords

none

Package Sidebar

Install

npm i beisen-phoenix-fork-mobile-action-sheet

Weekly Downloads

1

Version

0.0.21

License

ISC

Unpacked Size

325 kB

Total Files

20

Last publish

Collaborators

  • beisencorp