Commit 294e2412e91c486359bfd24ba0f1dfd8c66ff5a8
1 parent
3ea230f7
update Select component
update Select component
Showing
2 changed files
with
7 additions
and
3 deletions
Show diff stats
components/select/select.vue
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | :class="[`${prefixCls}-selection`]" | 4 | :class="[`${prefixCls}-selection`]" |
| 5 | v-el:reference | 5 | v-el:reference |
| 6 | @click="toggleMenu"> | 6 | @click="toggleMenu"> |
| 7 | - <div class="ivu-tag" v-if="multiple" v-for="item in selectedMultiple"> | 7 | + <div class="ivu-tag" v-for="item in selectedMultiple"> |
| 8 | <span class="ivu-tag-text">{{ item.label }}</span> | 8 | <span class="ivu-tag-text">{{ item.label }}</span> |
| 9 | <Icon type="ios-close-empty" @click.stop="removeTag($index)"></Icon> | 9 | <Icon type="ios-close-empty" @click.stop="removeTag($index)"></Icon> |
| 10 | </div> | 10 | </div> |
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | <Icon type="arrow-down-b" :class="[`${prefixCls}-arrow`]"></Icon> | 25 | <Icon type="arrow-down-b" :class="[`${prefixCls}-arrow`]"></Icon> |
| 26 | </div> | 26 | </div> |
| 27 | <Dropdown v-show="visible" transition="slide-up" v-ref:dropdown> | 27 | <Dropdown v-show="visible" transition="slide-up" v-ref:dropdown> |
| 28 | - <ul v-show="notFound" :class="[`${prefixCls}-not-found`]"><li>未找到</li></ul> | 28 | + <ul v-show="notFound" :class="[`${prefixCls}-not-found`]"><li>{{ notFoundText }}</li></ul> |
| 29 | <ul v-else :class="[`${prefixCls}-dropdown-list`]"><slot></slot></ul> | 29 | <ul v-else :class="[`${prefixCls}-dropdown-list`]"><slot></slot></ul> |
| 30 | </Dropdown> | 30 | </Dropdown> |
| 31 | </div> | 31 | </div> |
| @@ -77,6 +77,10 @@ | @@ -77,6 +77,10 @@ | ||
| 77 | labelInValue: { | 77 | labelInValue: { |
| 78 | type: Boolean, | 78 | type: Boolean, |
| 79 | default: false | 79 | default: false |
| 80 | + }, | ||
| 81 | + notFoundText: { | ||
| 82 | + type: String, | ||
| 83 | + default: '无匹配数据' | ||
| 80 | } | 84 | } |
| 81 | }, | 85 | }, |
| 82 | data () { | 86 | data () { |
package.json
| 1 | { | 1 | { |
| 2 | "name": "iview", | 2 | "name": "iview", |
| 3 | - "version": "0.9.4rc-1", | 3 | + "version": "0.9.4rc-2", |
| 4 | "title": "iView", | 4 | "title": "iView", |
| 5 | "description": "A high quality UI components Library with Vue.js", | 5 | "description": "A high quality UI components Library with Vue.js", |
| 6 | "homepage": "http://www.iviewui.com", | 6 | "homepage": "http://www.iviewui.com", |