Browse Source

Pull request #2270: 无JIAR任务 换一种写法

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '41a5ee08418801c9c8e75532639a2ae1c19f178c':
  换一种写法
es6
guy 3 years ago
parent
commit
0e2601089d
  1. 2
      src/core/wrapper/layout.js

2
src/core/wrapper/layout.js

@ -240,7 +240,7 @@ BI.Layout = BI.inherit(BI.Widget, {
var w = this._newElement(newIndex, item);
// 需要有个地方临时存一下新建的组件,否则如果直接使用newIndex的话,newIndex位置的元素可能会被用到
this._children[this._getChildName(newIndex) + "-temp"] = w;
var nextSibling = del.element[0].nextSibling;
var nextSibling = del.element.next();
if (nextSibling) {
BI.Widget._renderEngine.createElement(nextSibling).before(w.element);
} else {

Loading…
Cancel
Save