Commit 02ece5df268d7018c569b423680d437bf4b23d32

Authored by Aresn
Committed by GitHub
2 parents 62a40f4f 57737d74

Merge pull request #398 from muei/2.0

Improve v2
.gitignore
... ... @@ -18,4 +18,5 @@ npm-debug.log
18 18 examples/dist/
19 19 dist/
20 20 yarn-error.log
21   -test/unit/coverage
22 21 \ No newline at end of file
  22 +test/unit/coverage
  23 +.vscode
23 24 \ No newline at end of file
... ...
src/components/input/input.vue
... ... @@ -141,17 +141,17 @@
141 141 }
142 142 },
143 143 methods: {
144   - handleEnter () {
145   - this.$emit('on-enter');
  144 + handleEnter (event) {
  145 + this.$emit('on-enter', event);
146 146 },
147   - handleIconClick () {
148   - this.$emit('on-click');
  147 + handleIconClick (event) {
  148 + this.$emit('on-click', event);
149 149 },
150   - handleFocus () {
151   - this.$emit('on-focus');
  150 + handleFocus (event) {
  151 + this.$emit('on-focus', event);
152 152 },
153   - handleBlur () {
154   - this.$emit('on-blur');
  153 + handleBlur (event) {
  154 + this.$emit('on-blur', event);
155 155 if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) {
156 156 this.dispatch('FormItem', 'on-form-blur', this.currentValue);
157 157 }
... ...
src/index.js
... ... @@ -84,6 +84,7 @@ const iview = {
84 84 Message,
85 85 Modal,
86 86 Notice,
  87 + Option: Option,
87 88 iOption: Option,
88 89 OptionGroup,
89 90 Page,
... ...