1.0.6 • Published 5 years ago

@aligov/mobile-c-dialog v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@aligov/mobile-c-dialog

Install

$ npm install @aligov/mobile-c-dialog --save

Usage

import MobileComponentDialog from '@aligov/mobile-c-dialog';

API

Props

nametypedefaultdescribe
visibleBoolfalse是否展示
titleString''标题
iconString''对话框的图标,支持传入图标名称或图片 url
iconColorString''可选值: success,notice,warning,error,normal
messageString''对话框文字内容
buttonsArray[]对话框底部按钮

Function

nameparamreturndescribe
onOKFunc()=>{}System Dialog 点击确认回调
onCancelFunc()=>{}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 });