Browse Source

支持BI.useContext

es6
guy 3 years ago
parent
commit
b513d35871
  1. 9
      src/core/4.widget.js

9
src/core/4.widget.js

@ -794,19 +794,16 @@
}));
}
}
if (vm._widget) {
vm._widget._watchers || (vm._widget._watchers = []);
vm._widget._watchers = vm._widget._watchers.concat(watchers);
}
// vm中一定有_widget
vm._widget._watchers || (vm._widget._watchers = []);
vm._widget._watchers = vm._widget._watchers.concat(watchers);
return;
}
if (BI.Widget.current) {
handler = watch;
watch = vm;
BI.Widget.current.$watchDelayCallbacks || (BI.Widget.current.$watchDelayCallbacks = []);
BI.Widget.current.$watchDelayCallbacks.push([watch, handler]);
}
};

Loading…
Cancel
Save