docs(Dialog): update demo (#7007)

This commit is contained in:
neverland
2020-08-14 20:27:02 +08:00
committed by GitHub
parent 4f9eeec752
commit b6e42d2344
4 changed files with 80 additions and 101 deletions
+17 -17
View File
@@ -30,6 +30,23 @@ Dialog.alert({
});
```
### Confirm dialog
Used to confirm some messages, including a confirm button and a cancel button.
```js
Dialog.confirm({
title: 'Title',
message: 'Content',
})
.then(() => {
// on confirm
})
.catch(() => {
// on cancel
});
```
### Round Button Style
Use round button style.
@@ -51,23 +68,6 @@ Dialog.alert({
});
```
### Confirm dialog
Used to confirm some messages, including a confirm button and a cancel button.
```js
Dialog.confirm({
title: 'Title',
message: 'Content',
})
.then(() => {
// on confirm
})
.catch(() => {
// on cancel
});
```
### Asnyc Close
```js