mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-09-26 12:29:56 +08:00
48 lines
742 B
Markdown
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 |
|
|
|------|------|------|------|
|