update Select
This commit is contained in:
parent
bb27d72574
commit
1badfd0937
2 changed files with 3 additions and 3 deletions
|
@ -108,7 +108,7 @@
|
||||||
type: Boolean
|
type: Boolean
|
||||||
},
|
},
|
||||||
// 4.0.0
|
// 4.0.0
|
||||||
showNotFoundLabel: {
|
showCreateItem: {
|
||||||
type: Boolean
|
type: Boolean
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -225,7 +225,7 @@
|
||||||
this.$emit('on-input-focus');
|
this.$emit('on-input-focus');
|
||||||
},
|
},
|
||||||
onInputBlur () {
|
onInputBlur () {
|
||||||
if (this.allowCreate && this.query !== '') return;
|
if (!this.showCreateItem) return;
|
||||||
if (!this.values.length) this.query = ''; // #5155
|
if (!this.values.length) this.query = ''; // #5155
|
||||||
this.$emit('on-input-blur');
|
this.$emit('on-input-blur');
|
||||||
},
|
},
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
:max-tag-count="maxTagCount"
|
:max-tag-count="maxTagCount"
|
||||||
:max-tag-placeholder="maxTagPlaceholder"
|
:max-tag-placeholder="maxTagPlaceholder"
|
||||||
:allow-create="allowCreate"
|
:allow-create="allowCreate"
|
||||||
:show-not-found-label="showNotFoundLabel"
|
:show-create-item="showCreateItem"
|
||||||
|
|
||||||
@on-query-change="onQueryChange"
|
@on-query-change="onQueryChange"
|
||||||
@on-input-focus="isFocused = true"
|
@on-input-focus="isFocused = true"
|
||||||
|
|
Loading…
Add table
Reference in a new issue