render-core 1.0.131 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/proxy/getProxy.js
CHANGED
|
@@ -19,6 +19,10 @@ export function getProxyObject(obj, updater) {
|
|
|
19
19
|
*/
|
|
20
20
|
export function getSetter(data, updater) {
|
|
21
21
|
var setter = function (obj, prop, value) {
|
|
22
|
+
if (this.mode !== "box") {
|
|
23
|
+
console.log("Not box element can not to update data!");
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
22
26
|
//检查是否有watcher
|
|
23
27
|
try {
|
|
24
28
|
this.watcher[prop](obj[prop], value);
|