@aligov/mobile-component-dialog
v1.0.0
Published
政务移动端基础组件dialog
Downloads
4
Readme
@aligov/mobile-component-dialog
Install
$ npm install @aligov/mobile-component-dialog --save
Usage
import MobileComponentDialog from '@aligov/mobile-component-dialog';
API
Props
| name | type | default | describe | | :-------- | :----- | :------ | :------------------------------------------- | | visible | Bool | false | 是否展示 | | title | String | '' | 标题 | | icon | String | '' | 对话框的图标,支持传入图标名称或图片 url | | iconColor | String | '' | 可选值: success,notice,warning,error,normal | | message | String | '' | 对话框文字内容 | | buttons | Array | [] | 对话框底部按钮 |
Function
| name | param | return | describe | | :------- | :---- | :----- | :------------------------- | | onOK | Func | ()=>{} | System Dialog 点击确认回调 | | onCancel | Func | ()=>{} | System Dialog 点击取消回调 |
Example
import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import MobileComponentDialog from '@aligov/mobile-component-dialog';
render(<MobileComponentDialog />, document.body, { driver: DriverUniversal });