Skip to content

Commit

Permalink
fix(select): remove showSearchPlaceHolder params
Browse files Browse the repository at this point in the history
  • Loading branch information
vvpvvp committed Jul 4, 2018
1 parent 455c2f2 commit 643f72a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/select/select.vue
Expand Up @@ -12,7 +12,7 @@
@keyup="handle"
@blur="blurHandle"
@keypress.enter="enterHandle"
:placeholder="showSearchPlaceHolder" />
:placeholder="showPlaceholder" />
</div>
<div v-if="!hasValue&&!filterable" class="h-select-placeholder">{{showPlaceholder}}</div>
</template>
Expand All @@ -23,7 +23,7 @@
@blur="blurHandle"
@keypress.enter="enterHandle"
class="h-select-search-input h-select-single-search-input" v-model="searchInput"
:placeholder="hasValue?'':showSearchPlaceHolder" />
:placeholder="hasValue?'':showPlaceholder" />
<div class="h-select-value-single" v-if="hasValue" v-show="!searchInput">{{objects[title]}}</div>
<div v-else-if="!filterable" class="h-select-placeholder">{{showPlaceholder}}</div>
</template>
Expand Down Expand Up @@ -99,9 +99,9 @@ export default {
placeholder: {
type: String,
},
searchPlaceHolder: {
type: String,
},
// searchPlaceHolder: {
// type: String,
// },
emptyContent: {
type: String,
},
Expand Down Expand Up @@ -355,9 +355,9 @@ export default {
showPlaceholder() {
return this.placeholder || this.t('h.select.placeholder');
},
showSearchPlaceHolder() {
return this.searchPlaceHolder || this.t('h.select.searchPlaceHolder');
},
// showSearchPlaceHolder() {
// return this.searchPlaceHolder || this.t('h.select.searchPlaceHolder');
// },
selectCls() {
let autosize = this.autosize || !!this.noBorder;
return {
Expand Down

0 comments on commit 643f72a

Please sign in to comment.