Browse Source

整理代码

es6
guy 3 years ago
parent
commit
d4bba46510
  1. 8
      src/core/wrapper/layout/layout.card.js
  2. 8
      src/core/wrapper/layout/layout.grid.js
  3. 4
      src/core/wrapper/layout/layout.td.js
  4. 4
      src/core/wrapper/layout/layout.window.js

8
src/core/wrapper/layout/layout.card.js

@ -19,10 +19,6 @@ BI.CardLayout = BI.inherit(BI.Layout, {
this.populate(this.options.items);
},
resize: function () {
// console.log("Card布局不需要resize");
},
stroke: function (items) {
var self = this, o = this.options;
this.showIndex = void 0;
@ -48,6 +44,10 @@ BI.CardLayout = BI.inherit(BI.Layout, {
});
},
resize: function () {
// console.log("Card布局不需要resize");
},
update: function (opt) {
return this.forceUpdate(opt);
},

8
src/core/wrapper/layout/layout.grid.js

@ -18,10 +18,6 @@ BI.GridLayout = BI.inherit(BI.Layout, {
this.populate(this.options.items);
},
resize: function () {
// console.log("grid布局不需要resize")
},
addItem: function () {
throw new Error("不能添加子组件");
},
@ -101,6 +97,10 @@ BI.GridLayout = BI.inherit(BI.Layout, {
}
},
resize: function () {
// console.log("grid布局不需要resize")
},
update: function (opt) {
return this.forceUpdate(opt);
},

4
src/core/wrapper/layout/layout.td.js

@ -172,6 +172,10 @@ BI.TdLayout = BI.inherit(BI.Layout, {
this.element.append(this.$table);
},
resize: function () {
// console.log("td布局不需要resize");
},
update: function (opt) {
return this.forceUpdate(opt);
},

4
src/core/wrapper/layout/layout.window.js

@ -167,6 +167,10 @@ BI.WindowLayout = BI.inherit(BI.Layout, {
}
},
resize: function () {
// console.log("window布局不需要resize");
},
update: function (opt) {
return this.forceUpdate(opt);
},

Loading…
Cancel
Save