From c426ad3a5db1dd79e4b06d7cb569a036e9d5c17f Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 22 Jul 2020 13:49:00 +0800 Subject: [PATCH] =?UTF-8?q?BI-69168=20fix:=20grid=5Fview=E4=B8=AD=E7=9A=84?= =?UTF-8?q?item=E7=9A=84unmont=E4=B8=8D=E6=89=A7=E8=A1=8C=E4=BD=BF?= =?UTF-8?q?=E5=BE=97title=E4=B8=80=E7=9B=B4=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + src/base/grid/grid.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index db9203c9e..4555f53da 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-07) +- 修复了grid_view执行_unMount时不调用子组件的_unMount的问题 - combo新增belowMouse属性,允许popup在点击处弹出 - combo新增hideWhenAnotherComboOpen属性,开启则其他combo下拉时当前combo收起 - 修复了datePicker在setValue的时候没有动态刷新可用月份的问题 diff --git a/src/base/grid/grid.js b/src/base/grid/grid.js index b6ff6d65a..056983b23 100644 --- a/src/base/grid/grid.js +++ b/src/base/grid/grid.js @@ -150,7 +150,8 @@ BI.GridView = BI.inherit(BI.Widget, { if (this.renderedCells[index]._top !== rowDatum.offset + verticalOffsetAdjustment) { this.renderedCells[index].el.element.css("top", (rowDatum.offset + verticalOffsetAdjustment) + "px"); } - renderedCells.push(child = this.renderedCells[index]); + child = this.renderedCells[index].el; + renderedCells.push(this.renderedCells[index]); } else { child = BI.createWidget(BI.extend({ type: "bi.label",