feature fixed #5327

This commit is contained in:
mo.duan 2019-11-22 15:07:09 +08:00
parent 87f01c5dab
commit 00d6aaf477
2 changed files with 5 additions and 1 deletions

View file

@ -27,8 +27,10 @@
<Button @click="handleReset('formValidate')" style="margin-left: 8px">Reset</Button>
</FormItem>
</Form>
<h2 style="margin-top:20px">#5327 feature</h2>
<Select v-model='test' filterable clearable>
<Option v-for='item in list' :value='item.value' :label="item.name" :key="item.value"></Option>
<div slot="empty">2222</div>
</Select>
<h2 style="margin-top:20px">#5216</h2>
<Select v-model="model11" filterable clearable>

View file

@ -63,7 +63,9 @@
:transfer="transfer"
v-transfer-dom
>
<ul v-show="showNotFoundLabel" :class="[prefixCls + '-not-found']"><li>{{ localeNotFoundText }}</li></ul>
<ul v-show="showNotFoundLabel && !$slots.empty" :class="[prefixCls + '-not-found']"><li>{{ localeNotFoundText }}</li></ul>
<!--feature #5327-->
<ul v-if="showNotFoundLabel && $slots.empty" :class="[prefixCls + '-not-found']" @mousedown.prevent><li><slot name="empty"></slot></li></ul>
<ul :class="prefixCls + '-dropdown-list'">
<functional-options
v-if="(!remote) || (remote && !loading)"