feat(Calendar): add basic files

This commit is contained in:
陈嘉涵
2019-12-26 19:59:08 +08:00
committed by neverland
parent 3a22162912
commit 49781a5e15
11 changed files with 252 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
# Calendar 日历
### 引入
``` javascript
import Vue from 'vue';
import { Calendar } from 'vant';
Vue.use(Calendar);
```
## 代码演示
### 基础用法
```html
<van-calendar />
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| v-model | 选中的日期 | `Date` | - | - |
| title | 日历标题 | `string` | - | - |
### Events
| 事件名 | 说明 | 回调参数 |
|------|------|------|
### Slots
| 名称 | 说明 | SlotProps |
|------|------|------|
### 方法
通过 [ref](https://cn.vuejs.org/v2/api/#ref) 可以获取到 Calendar 实例并调用实例方法
| 方法名 | 说明 | 参数 | 返回值 |
|------|------|------|------|