Message: display in stack mode (#15639)

This commit is contained in:
Zhi Cun
2019-05-28 18:45:39 +08:00
committed by iamkun
parent 714a2a9b7b
commit 384c56381c
7 changed files with 34 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ Displays at the top, and disappears after 3 seconds.
open() {
this.$message('This is a message.');
},
openVn() {
const h = this.$createElement;
this.$message({
@@ -210,6 +210,7 @@ In this case you should call `Message(options)`. We have also registered methods
| showClose | whether to show a close button | boolean | — | false |
| center | whether to center the text | boolean | — | false |
| onClose | callback function when closed with the message instance as the parameter | function | — | — |
| offset | set the distance to the top of viewport | number | — | 20 |
### Methods
`Message` and `this.$message` returns the current Message instance. To manually close the instance, you can call `close` on it.