0.0.21 • Published 5 years ago

beisen-phoenix-fork-mobile-action-sheet v0.0.21

Weekly downloads
4
License
ISC
Repository
gitlab
Last release
5 years ago

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

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago