Browse Source

Pull request #2114: 无JIAR任务 整理代码

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

* commit 'eb0ac796ef78f1d367858b0d2db0ffe8b56a12ea':
  整理代码
es6
guy 3 years ago
parent
commit
1a2e8deedb
  1. 4
      examples/dev.html
  2. 1
      src/core/wrapper/layout.js

4
examples/dev.html

@ -34,8 +34,8 @@
text: 1 text: 1
}, { }, {
type: "bi.label", type: "bi.label",
key: "2", key: "123",
text: 2 text: "start"
}]) }])
} }
}, { }, {

1
src/core/wrapper/layout.js

@ -486,6 +486,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function addNode (vnode, index) { function addNode (vnode, index) {
var opt = self._getOptions(vnode); var opt = self._getOptions(vnode);
var key = opt.key == null ? index : opt.key; var key = opt.key == null ? index : opt.key;
delete self._children[self._getChildName(index)];
return children[key] = self._addElement(index, vnode); return children[key] = self._addElement(index, vnode);
} }

Loading…
Cancel
Save