feat(Calendar): add select event
This commit is contained in:
@@ -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 |
|
||||
|------|------|------|
|
||||
| 名称 | 说明 |
|
||||
|------|------|
|
||||
|
||||
### 方法
|
||||
|
||||
|
||||
Reference in New Issue
Block a user