universal-alert 
Alert component for feedback.
Support
Install
$ npm install universal-alert --save
Usage
import Alert from 'universal-alert';
// How to use it in quickapp
// import Alert from 'universal-alert/lib/quickapp;
Alert({
title: 'alert title',
content: 'alert content',
buttonText: 'button text,default value is confirm'
}).then(() => {
console.log('confirm');
});
Methods
Alert(options)
Arguments
| Property | Type | Description | Default | Supported |
|---|---|---|---|---|
| options | object |
alert arguments | - | |
| options.title | string |
alert title,support only in mini app | - | |
| options.content | string |
alert content | - | |
| options.buttonText | string |
alert button text,web environments are not supported | - |
Attention
Options that only supported by WeChat MiniProgram like confirmColor can also be passed but will not effect in other miniapp platforms.