Select: fix an emptyText visibility bug (#9969)

pull/9640/merge
杨奕 2018-03-02 12:23:09 +08:00 committed by GitHub
parent f5aefcdb78
commit c5d76d7910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -115,7 +115,12 @@
</el-option>
<slot></slot>
</el-scrollbar>
<p class="el-select-dropdown__empty" v-if="emptyText && (allowCreate && options.length === 0 || !allowCreate)">{{ emptyText }}</p>
<p
class="el-select-dropdown__empty"
v-if="emptyText &&
(!allowCreate || loading || (allowCreate && options.length === 0 ))">
{{ emptyText }}
</p>
</el-select-menu>
</transition>
</div>