From 3b5fd7dd126538342aab85bf6f4eebed1d6e4d16 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 28 Feb 2021 14:33:08 +0800 Subject: [PATCH] update --- src/base/single/single.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/base/single/single.js b/src/base/single/single.js index 2ad590597..5e1cc53f5 100644 --- a/src/base/single/single.js +++ b/src/base/single/single.js @@ -199,7 +199,10 @@ BI.Single = BI.inherit(BI.Widget, { return this.options.value; }, - update: function (props) { + update: function (props, shouldUpdate) { + if (BI.isObject(shouldUpdate)) { + props = shouldUpdate; + } if ("value" in props) { this.setValue(props.value); }