Merge pull request #398 from muei/2.0

Improve v2
This commit is contained in:
Aresn 2017-03-16 12:43:01 +08:00 committed by GitHub
commit 02ece5df26
3 changed files with 11 additions and 9 deletions

3
.gitignore vendored
View file

@ -18,4 +18,5 @@ npm-debug.log
examples/dist/ examples/dist/
dist/ dist/
yarn-error.log yarn-error.log
test/unit/coverage test/unit/coverage
.vscode

View file

@ -141,17 +141,17 @@
} }
}, },
methods: { methods: {
handleEnter () { handleEnter (event) {
this.$emit('on-enter'); this.$emit('on-enter', event);
}, },
handleIconClick () { handleIconClick (event) {
this.$emit('on-click'); this.$emit('on-click', event);
}, },
handleFocus () { handleFocus (event) {
this.$emit('on-focus'); this.$emit('on-focus', event);
}, },
handleBlur () { handleBlur (event) {
this.$emit('on-blur'); this.$emit('on-blur', event);
if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) { if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) {
this.dispatch('FormItem', 'on-form-blur', this.currentValue); this.dispatch('FormItem', 'on-form-blur', this.currentValue);
} }

View file

@ -84,6 +84,7 @@ const iview = {
Message, Message,
Modal, Modal,
Notice, Notice,
Option: Option,
iOption: Option, iOption: Option,
OptionGroup, OptionGroup,
Page, Page,