feat(Calendar): add select event

This commit is contained in:
陈嘉涵
2019-12-26 19:59:08 +08:00
committed by neverland
parent 43a0aed8c9
commit c447152be9
4 changed files with 22 additions and 9 deletions
+6 -2
View File
@@ -24,17 +24,21 @@ Vue.use(Calendar);
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| v-model | 选中的日期 | `Date` | - | - |
| type | 选择类型,`single`为选择单日,`range`为选择日期区间 | `string` | `single` | - |
| title | 日历标题 | `string` | - | - |
| min-date | 最小日期 | `Date` | 当前时间 | - |
| max-date | 最大日期 | `Date` | 当前时间的六个月后 | - |
### Events
| 事件名 | 说明 | 回调参数 |
|------|------|------|
| select | 选择日期时触发 | value: Date |
### Slots
| 名称 | 说明 | SlotProps |
|------|------|------|
| 名称 | 说明 |
|------|------|
### 方法