From 29264399e4b28cdce70bfc290d90f1a535488059 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Fri, 12 May 2017 09:49:36 +0800 Subject: [PATCH] update Select --- src/components/select/select.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 97a8776..a97ce9e 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -26,7 +26,7 @@ -
  • {{ localeNotFoundText }}
+
  • {{ localeNotFoundText }}
    {{ localeLoadingText }}
@@ -199,6 +199,10 @@ const options = this.$slots.default || []; if (!this.loading && this.remote && this.query === '' && !options.length) status = false; return this.visible && status; + }, + notFountShow () { + const options = this.$slots.default || []; + return (this.notFound && !this.remote) || (this.remote && !this.loading && !options.length); } }, methods: { -- libgit2 0.21.4