Browse Source

支持自动watch

es6
guy 3 years ago
parent
commit
51491fb094
  1. 9
      src/core/wrapper/layout.js

9
src/core/wrapper/layout.js

@ -31,6 +31,15 @@ BI.Layout = BI.inherit(BI.Widget, {
deep: true deep: true
}); });
} }
if (BI.isFunction(o.rowSize)) {
var rowSizeFn = o.rowSize;
o.rowSize = this.__watch(rowSizeFn, function (context, newValue) {
o.rowSize = newValue;
self.resize();
}, {
deep: true
});
}
}, },
_init4Margin: function () { _init4Margin: function () {

Loading…
Cancel
Save