1.0.4 • Published 4 years ago

@aligov/mobile-c-toast v1.0.4

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

@aligov/mobile-c-toast

Install

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

Usage

import MobileComponentToast from '@aligov/mobile-c-toast';

API

Props

nametypedefaultdescribe
visibleBoolfalse是否展示
typeString'text'可选值:text,longtext,success,error,warning,nonetwork,loading
contentString''文本内容
durationNumber1500多久后消失
imageString''显示图标

Function

nameparamreturndescribe
onHideFunc() => {}需要关闭是的回调

Example

import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import MobileComponentToast from '@aligov/mobile-c-toast';

render(<MobileComponentToast />, document.body, { driver: DriverUniversal });