From 3b8c8347e6d4713ae0034bdcd51a423910e95ba5 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 2 Mar 2021 17:10:36 +0800 Subject: [PATCH] update --- src/base/single/single.js | 12 ------------ src/core/wrapper/layout.js | 6 +++--- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/base/single/single.js b/src/base/single/single.js index c4d15291d..97b2591a7 100644 --- a/src/base/single/single.js +++ b/src/base/single/single.js @@ -200,18 +200,6 @@ BI.Single = BI.inherit(BI.Widget, { return this.options.value; }, - update: function (props, shouldUpdate) { - if (BI.isObject(shouldUpdate)) { - props = shouldUpdate; - } - if ("value" in props) { - this.setValue(props.value); - } - if ("text" in props) { - this.setText && this.setText(props.text); - } - }, - destroyed: function () { if (BI.isNotNull(this.showTimeout)) { clearTimeout(this.showTimeout); diff --git a/src/core/wrapper/layout.js b/src/core/wrapper/layout.js index 6b10e753d..871b56aeb 100644 --- a/src/core/wrapper/layout.js +++ b/src/core/wrapper/layout.js @@ -366,9 +366,9 @@ BI.Layout = BI.inherit(BI.Widget, { return child._update(this._getOptions(vnode), shouldUpdate); } if (shouldUpdate === null && !this._compare(oldVnode, vnode)) { - if (child.update) { - return child.update(this._getOptions(vnode)); - } + // if (child.update) { + // return child.update(this._getOptions(vnode)); + // } return this.updateItemAt(index, vnode); } },