mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-08 07:42:27 +03:00
feat: add argument event for open event (#457)
This commit is contained in:
@@ -270,7 +270,7 @@ Set fixed time list to select;
|
||||
| --------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
||||
| input | When the value change(v-model event) | date |
|
||||
| change | When the value change(same as input) | date, type('date'\|'hour'\|'minute'\|'second'\|'ampm |
|
||||
| open | When panel opening | |
|
||||
| open | When panel opening | event |
|
||||
| close | When panel closing | |
|
||||
| confirm | When click 'confirm' button | date |
|
||||
| clear | When click 'clear' button | |
|
||||
|
||||
+1
-1
@@ -267,7 +267,7 @@ data() {
|
||||
| --------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
|
||||
| input | 当选择日期的事件触发 | date |
|
||||
| change | 当选择日期的事件触发 | date, type('date'\|'hour'\|'minute'\|'second'\|'ampm |
|
||||
| open | 当弹出层打开时候 | |
|
||||
| open | 当弹出层打开时候 | event |
|
||||
| close | 当弹出层关闭时候 | |
|
||||
| confirm | 当点击确认按钮 | date |
|
||||
| clear | 当点击清除按钮 | |
|
||||
|
||||
+3
-3
@@ -399,10 +399,10 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
openPopup() {
|
||||
openPopup(evt) {
|
||||
if (this.popupVisible) return;
|
||||
this.defaultOpen = true;
|
||||
this.$emit('open');
|
||||
this.$emit('open', evt);
|
||||
this.$emit('update:open', true);
|
||||
},
|
||||
closePopup() {
|
||||
@@ -459,7 +459,7 @@ export default {
|
||||
this.$emit('blur', evt);
|
||||
},
|
||||
handleInputFocus(evt) {
|
||||
this.openPopup();
|
||||
this.openPopup(evt);
|
||||
this.$emit('focus', evt);
|
||||
},
|
||||
hasSlot(name) {
|
||||
|
||||
Reference in New Issue
Block a user