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 | 4 | :class="[`${prefixCls}-selection`]" |
5 | 5 | v-el:reference |
6 | 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 | 8 | <span class="ivu-tag-text">{{ item.label }}</span> |
9 | 9 | <Icon type="ios-close-empty" @click.stop="removeTag($index)"></Icon> |
10 | 10 | </div> |
... | ... | @@ -25,7 +25,7 @@ |
25 | 25 | <Icon type="arrow-down-b" :class="[`${prefixCls}-arrow`]"></Icon> |
26 | 26 | </div> |
27 | 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 | 29 | <ul v-else :class="[`${prefixCls}-dropdown-list`]"><slot></slot></ul> |
30 | 30 | </Dropdown> |
31 | 31 | </div> |
... | ... | @@ -77,6 +77,10 @@ |
77 | 77 | labelInValue: { |
78 | 78 | type: Boolean, |
79 | 79 | default: false |
80 | + }, | |
81 | + notFoundText: { | |
82 | + type: String, | |
83 | + default: '无匹配数据' | |
80 | 84 | } |
81 | 85 | }, |
82 | 86 | data () { | ... | ... |