[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
+8 -6
View File
@@ -1,4 +1,4 @@
## ImagePreview
# ImagePreview
### Install
@@ -8,9 +8,9 @@ import { ImagePreview } from 'vant';
Vue.use(ImagePreview);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
```javascript
ImagePreview([
@@ -19,7 +19,7 @@ ImagePreview([
]);
```
#### Custom config
### Custom config
```javascript
ImagePreview({
@@ -34,7 +34,7 @@ ImagePreview({
});
```
#### Async Close
### Async Close
```javascript
const instance = ImagePreview({
@@ -50,7 +50,7 @@ setTimeout(() => {
}, 1000);
```
#### Component Call
### Component Call
```html
<van-image-preview
@@ -83,6 +83,8 @@ export default {
}
```
## API
### Options
| Attribute | Description | Type | Default |