diff --git a/src/core/wrapper/layout/layout.card.js b/src/core/wrapper/layout/layout.card.js index 962bfc2a7..5ca2bec63 100644 --- a/src/core/wrapper/layout/layout.card.js +++ b/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); }, diff --git a/src/core/wrapper/layout/layout.grid.js b/src/core/wrapper/layout/layout.grid.js index 9b95f03e5..97ad39862 100644 --- a/src/core/wrapper/layout/layout.grid.js +++ b/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); }, diff --git a/src/core/wrapper/layout/layout.td.js b/src/core/wrapper/layout/layout.td.js index c7c99d712..ba5b2adef 100644 --- a/src/core/wrapper/layout/layout.td.js +++ b/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); }, diff --git a/src/core/wrapper/layout/layout.window.js b/src/core/wrapper/layout/layout.window.js index ca6df6362..7094bb7ee 100644 --- a/src/core/wrapper/layout/layout.window.js +++ b/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); },