[Improvement] Toast: add setDefaultOptions method (#541)

This commit is contained in:
neverland
2018-01-18 09:41:38 +08:00
committed by GitHub
parent b7282356ee
commit 307113bc6b
5 changed files with 31 additions and 7 deletions
+4 -3
View File
@@ -57,9 +57,10 @@ export default {
| Name | Attribute | Return value | Description |
|-----------|-----------|-----------|-------------|
| Dialog.alert | options | `Promise` | Show alert dialog |
| Dialog.confirm | options | `Promise` | Show confim dialog |
| Dialog.setDefaultOptions | options | `void` | Set default options of all dialogs |
| Dialog | `options` | `Promise` | Show dialog |
| Dialog.alert | `options` | `Promise` | Show alert dialog |
| Dialog.confirm | `options` | `Promise` | Show confim dialog |
| Dialog.setDefaultOptions | `options` | `void` | Set default options of all dialogs |
| Dialog.resetDefaultOptions | - | `void` | Reset default options of all dialogs |
| Dialog.close | - | `void` | Close dialog |