update Select component
update Select component
This commit is contained in:
parent
3ea230f7d3
commit
294e2412e9
2 changed files with 7 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
:class="[`${prefixCls}-selection`]"
|
||||
v-el:reference
|
||||
@click="toggleMenu">
|
||||
<div class="ivu-tag" v-if="multiple" v-for="item in selectedMultiple">
|
||||
<div class="ivu-tag" v-for="item in selectedMultiple">
|
||||
<span class="ivu-tag-text">{{ item.label }}</span>
|
||||
<Icon type="ios-close-empty" @click.stop="removeTag($index)"></Icon>
|
||||
</div>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<Icon type="arrow-down-b" :class="[`${prefixCls}-arrow`]"></Icon>
|
||||
</div>
|
||||
<Dropdown v-show="visible" transition="slide-up" v-ref:dropdown>
|
||||
<ul v-show="notFound" :class="[`${prefixCls}-not-found`]"><li>未找到</li></ul>
|
||||
<ul v-show="notFound" :class="[`${prefixCls}-not-found`]"><li>{{ notFoundText }}</li></ul>
|
||||
<ul v-else :class="[`${prefixCls}-dropdown-list`]"><slot></slot></ul>
|
||||
</Dropdown>
|
||||
</div>
|
||||
|
@ -77,6 +77,10 @@
|
|||
labelInValue: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
notFoundText: {
|
||||
type: String,
|
||||
default: '无匹配数据'
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iview",
|
||||
"version": "0.9.4rc-1",
|
||||
"version": "0.9.4rc-2",
|
||||
"title": "iView",
|
||||
"description": "A high quality UI components Library with Vue.js",
|
||||
"homepage": "http://www.iviewui.com",
|
||||
|
|
Loading…
Add table
Reference in a new issue