vant/src/calendar/README.md
2019-12-26 19:59:08 +08:00

48 lines
742 B
Markdown

# Calendar
### Install
``` javascript
import Vue from 'vue';
import { Calendar } from 'vant';
Vue.use(Calendar);
```
## Usage
### Basic Usage
```html
<van-calendar v-model="checked" />
```
## API
### Props
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
### Props
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
### Events
| Event | Description | Parameters |
|------|------|------|
### Slots
| Name | Description | SlotProps |
|------|------|------|
### Methods
Use [ref](https://vuejs.org/v2/api/#ref) to get Canlendar instance and call instance methods
| Name | Description | Attribute | Return value |
|------|------|------|------|