New:Socket for Asana Is Now Available.Learn more
Get Started

nw-toast

Package Overview
Dependencies
Maintainers
8
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nw-toast

> toast组件

latest
npmnpm
Version
1.17.0
Version published
Weekly downloads
5
66.67%
Maintainers
8
Weekly downloads
 
Created
Source

nw-toast

toast组件

安装

$ yarn add nw-toast

API

import toast from 'nw-toast';

toast(options)

显示toast

  • options: required Object 选项
    • text: required String 内容
    • delay: required Number 多久后隐藏,单位为毫秒,默认2000
import toast from 'nw-toast';

toast({
    text: '你好',
    delay: 3000
});
import Toast from 'nw-toast/es/toast';

Toast类,可以继承后再做自定义

FAQs

Package last updated on 30 May 2018

Related posts