From 1badfd09375b1b028658119e9ce93e0a9612a327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Mon, 9 Sep 2019 15:02:12 +0800 Subject: [PATCH] update Select --- src/components/select/select-head.vue | 4 ++-- src/components/select/select.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/select/select-head.vue b/src/components/select/select-head.vue index 42ae3d1e..10d6df89 100644 --- a/src/components/select/select-head.vue +++ b/src/components/select/select-head.vue @@ -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'); }, diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 166e3a1d..6627bb4e 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -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"