@aligov/mobile-c-dialog
v1.0.6
Published
政务移动端基础组件dialog
Downloads
13
Readme
@aligov/mobile-c-dialog
Install
$ npm install @aligov/mobile-c-dialog --save
Usage
import MobileComponentDialog from '@aligov/mobile-c-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-c-dialog';
render(<MobileComponentDialog />, document.body, { driver: DriverUniversal });