Select: fix input height resetting in default size

* dropdown 组件 新增触发下拉框显示隐藏时, 触发visible事件,传递当前下拉框显示状态

* Dropdown 修改事件名称,新增文档

* Dropdown 统一事件名称,修改文档

* Dropdown 统一事件名称,修改文档

* 完善form表单prop字段介绍

* Repair of multiple height calculation bug
pull/8320/head
Lengxu 2017-11-16 02:02:41 -06:00 committed by 杨奕
parent 217b48338f
commit 6f1fc76e30
1 changed files with 1 additions and 1 deletions

View File

@ -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');