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/
dist/
yarn-error.log
test/unit/coverage
test/unit/coverage
.vscode

View file

@ -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);
}

View file

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