mirror of https://github.com/ElemeFE/element
Select: fix input height resetting in default size
* dropdown 组件 新增触发下拉框显示隐藏时, 触发visible事件,传递当前下拉框显示状态 * Dropdown 修改事件名称,新增文档 * Dropdown 统一事件名称,修改文档 * Dropdown 统一事件名称,修改文档 * 完善form表单prop字段介绍 * Repair of multiple height calculation bugpull/8320/head
parent
217b48338f
commit
6f1fc76e30
|
@ -556,7 +556,7 @@
|
|||
let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
|
||||
const tags = this.$refs.tags;
|
||||
input.style.height = this.selected.length === 0
|
||||
? sizeMap[this.selectSize] + 'px'
|
||||
? sizeMap[this.selectSize] || 40 + 'px'
|
||||
: Math.max(tags ? (tags.clientHeight + 10) : 0, sizeMap[this.selectSize] || 40) + 'px';
|
||||
if (this.visible && this.emptyText !== false) {
|
||||
this.broadcast('ElSelectDropdown', 'updatePopper');
|
||||
|
|
Loading…
Reference in New Issue