@aligov/mobile-c-toast

1.0.4 • Public • Published

@aligov/mobile-c-toast

Install

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

Usage

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

API

Props

name type default describe
visible Bool false 是否展示
type String 'text' 可选值:text,longtext,success,error,warning,nonetwork,loading
content String '' 文本内容
duration Number 1500 多久后消失
image String '' 显示图标

Function

name param return describe
onHide Func () => {} 需要关闭是的回调

Example

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

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

Readme

Keywords

Package Sidebar

Install

npm i @aligov/mobile-c-toast

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

244 kB

Total Files

15

Last publish

Collaborators

  • wanyi.css
  • jasoncapricorn
  • qingkaili
  • huguoxin
  • shenyu.wsy
  • liunian
  • tao1991123
  • itrip
  • xiazhiqiang
  • mo.zhou
  • guoliang.hgl
  • daip
  • baizhao