0.1.1 • Published 7 years ago

milkui-actionsheet v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

milkui-actionsheet

从底部弹出的模态框,提供和当前场景相关的 2 个以上的操作动作,也支持提供标题和描述。内置固定的展示样式、不支持特别灵活的修改。

Overview

image

Example

import ActionSheet from 'milkui-actionsheet';

const { show } = this.state;
const actions = [
  { label: '控制台打印1', onClick: () => { console.info('1'); } },
  { label: '控制台打印2', onClick: () => { console.info('2'); } },
];

<ActionSheet show={show} actions={actions} />

Properties

PropertyTypeDescriptionDefault
classNameString自定义的 class 类名''
actionsArray动作项数组,label 属性必填[]
onHideSheetFunction关闭动作面板时的回调函数false
showBoolean是否显示false

Develop

cnpm i milk-dev -g    # dev tool

cnpm install

npm start

Links