From d4bba4651065b0dd84f49177cdcea5db2be4c53b Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 19 Aug 2021 16:24:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout/layout.card.js | 8 ++++---- src/core/wrapper/layout/layout.grid.js | 8 ++++---- src/core/wrapper/layout/layout.td.js | 4 ++++ src/core/wrapper/layout/layout.window.js | 4 ++++ 4 files changed, 16 insertions(+), 8 deletions(-) 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); },