[Improvement] Dialog: add setDefaultOptions method (#539)

This commit is contained in:
neverland
2018-01-17 18:54:12 +08:00
committed by GitHub
parent 567db144be
commit b7282356ee
3 changed files with 24 additions and 3 deletions

View File

@@ -59,6 +59,8 @@ export default {
|-----------|-----------|-----------|-------------|
| 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 |
### Options