[new feature] Dialog: add close-on-popstate prop (#3709)

This commit is contained in:
neverland
2019-07-01 17:00:33 +08:00
committed by GitHub
parent 2df51f5aef
commit e4ce6137bf
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -128,6 +128,7 @@ export default {
| confirmButtonText | Confirm button text | `String` | `Confirm` |
| confirmButtonColor | Confirm button color | `String` | `#1989fa` |
| overlay | Whether to show overlay | `Boolean` | `true` |
| closeOnPopstate | Whether to close when popstate | `Boolean` | `false` |
| closeOnClickOverlay | Whether to close when click overlay | `Boolean` | `false` |
| lockScroll | Whether to lock body scroll | `Boolean` | `true` |
| beforeClose | Callback before close,<br>call done() to close dialog,<br>call done(false) to cancel loading | (action: string, done: function) => void | - |