update Select

This commit is contained in:
梁灏 2019-09-09 15:02:12 +08:00
parent bb27d72574
commit 1badfd0937
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@
type: Boolean
},
// 4.0.0
showNotFoundLabel: {
showCreateItem: {
type: Boolean
}
},
@ -225,7 +225,7 @@
this.$emit('on-input-focus');
},
onInputBlur () {
if (this.allowCreate && this.query !== '') return;
if (!this.showCreateItem) return;
if (!this.values.length) this.query = ''; // #5155
this.$emit('on-input-blur');
},

View file

@ -44,7 +44,7 @@
:max-tag-count="maxTagCount"
:max-tag-placeholder="maxTagPlaceholder"
:allow-create="allowCreate"
:show-not-found-label="showNotFoundLabel"
:show-create-item="showCreateItem"
@on-query-change="onQueryChange"
@on-input-focus="isFocused = true"