[Doc] new theme

This commit is contained in:
陈嘉涵
2019-05-15 20:53:04 +08:00
parent 3cae4288f2
commit d0f4169c86
130 changed files with 1460 additions and 1147 deletions
+9 -7
View File
@@ -1,4 +1,4 @@
## Dialog
# Dialog
### Install
@@ -8,9 +8,9 @@ import { Dialog } from 'vant';
Vue.use(Dialog);
```
### Usage
## Usage
#### Alert dialog
### Alert dialog
Used to prompt for some messages, only including one confirm button
@@ -29,7 +29,7 @@ Dialog.alert({
});
```
#### Confirm dialog
### Confirm dialog
Used to confirm some messages, including a confirm button and a cancel button
@@ -44,7 +44,7 @@ Used to confirm some messages, including a confirm button and a cancel button
});
```
#### Asnyc Close
### Asnyc Close
```js
function beforeClose(action, done) {
@@ -62,7 +62,7 @@ Dialog.confirm({
});
```
#### $dialog Method
### $dialog Method
After import the Dialog component, the $dialog method is automatically mounted on Vue.prototype, making it easy to call within a vue component.
@@ -76,7 +76,7 @@ export default {
}
```
#### Advanced Usage
### Advanced Usage
If you need to render vue components within a dialog, you can use dialog component.
@@ -100,6 +100,8 @@ export default {
}
```
## API
### Methods
| Name | Attribute | Return value | Description |