diff --git a/.gitignore b/.gitignore index c5cfd2b4..5d1bfef3 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ npm-debug.log examples/dist/ dist/ yarn-error.log -test/unit/coverage \ No newline at end of file +test/unit/coverage +.vscode \ No newline at end of file diff --git a/src/components/input/input.vue b/src/components/input/input.vue index e51beccd..db74a691 100644 --- a/src/components/input/input.vue +++ b/src/components/input/input.vue @@ -141,17 +141,17 @@ } }, methods: { - handleEnter () { - this.$emit('on-enter'); + handleEnter (event) { + this.$emit('on-enter', event); }, - handleIconClick () { - this.$emit('on-click'); + handleIconClick (event) { + this.$emit('on-click', event); }, - handleFocus () { - this.$emit('on-focus'); + handleFocus (event) { + this.$emit('on-focus', event); }, - handleBlur () { - this.$emit('on-blur'); + handleBlur (event) { + this.$emit('on-blur', event); if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) { this.dispatch('FormItem', 'on-form-blur', this.currentValue); } diff --git a/src/index.js b/src/index.js index cb755f64..38c99f99 100644 --- a/src/index.js +++ b/src/index.js @@ -84,6 +84,7 @@ const iview = { Message, Modal, Notice, + Option: Option, iOption: Option, OptionGroup, Page,