mirror of https://github.com/ElemeFE/element
Select: fix input height of mini size
parent
877718099e
commit
5d172ad5cf
|
@ -540,7 +540,7 @@
|
||||||
let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
|
let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
|
||||||
const tags = this.$refs.tags;
|
const tags = this.$refs.tags;
|
||||||
input.style.height = this.selected.length === 0 && this.selectSize === 'mini'
|
input.style.height = this.selected.length === 0 && this.selectSize === 'mini'
|
||||||
? sizeMap[this.selectSize]
|
? sizeMap[this.selectSize] + 'px'
|
||||||
: Math.max(tags ? (tags.clientHeight + 10) : 0, sizeMap[this.selectSize] || 40) + 'px';
|
: Math.max(tags ? (tags.clientHeight + 10) : 0, sizeMap[this.selectSize] || 40) + 'px';
|
||||||
if (this.visible && this.emptyText !== false) {
|
if (this.visible && this.emptyText !== false) {
|
||||||
this.broadcast('ElSelectDropdown', 'updatePopper');
|
this.broadcast('ElSelectDropdown', 'updatePopper');
|
||||||
|
|
Loading…
Reference in New Issue