Skip to content

Commit a6887d9

Browse files
committed
feat: calendar 组件添加 choose-click事件 #363
1 parent 838861f commit a6887d9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/packages/calendar/calendar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ export default {
270270
if (this.isAutoBackFill && !isFirst) {
271271
this.confirm();
272272
}
273+
this.$emit('choose-click', this.chooseData);
273274
}
274275
},
275276

src/packages/calendar/doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,5 @@ export default {
117117
| 字段 | 说明 | 回调参数
118118
|----- | ----- | -----
119119
| choose | 选择之后或是点击确认按钮触发 | 日期数组(包含年月日和星期)
120+
| choose-click | 点击日期事件触发 | 日期数组(包含年月日和星期)
120121
| close | 关闭时触发 | -

0 commit comments

Comments
 (0)