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`]"
|
:class="[`${prefixCls}-selection`]"
|
||||||
v-el:reference
|
v-el:reference
|
||||||
@click="toggleMenu">
|
@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>
|
<span class="ivu-tag-text">{{ item.label }}</span>
|
||||||
<Icon type="ios-close-empty" @click.stop="removeTag($index)"></Icon>
|
<Icon type="ios-close-empty" @click.stop="removeTag($index)"></Icon>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
<Icon type="arrow-down-b" :class="[`${prefixCls}-arrow`]"></Icon>
|
<Icon type="arrow-down-b" :class="[`${prefixCls}-arrow`]"></Icon>
|
||||||
</div>
|
</div>
|
||||||
<Dropdown v-show="visible" transition="slide-up" v-ref:dropdown>
|
<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>
|
<ul v-else :class="[`${prefixCls}-dropdown-list`]"><slot></slot></ul>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,6 +77,10 @@
|
||||||
labelInValue: {
|
labelInValue: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
notFoundText: {
|
||||||
|
type: String,
|
||||||
|
default: '无匹配数据'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iview",
|
"name": "iview",
|
||||||
"version": "0.9.4rc-1",
|
"version": "0.9.4rc-2",
|
||||||
"title": "iView",
|
"title": "iView",
|
||||||
"description": "A high quality UI components Library with Vue.js",
|
"description": "A high quality UI components Library with Vue.js",
|
||||||
"homepage": "http://www.iviewui.com",
|
"homepage": "http://www.iviewui.com",
|
||||||
|
|
Loading…
Add table
Reference in a new issue