Browse Source

childContext替换成provide

es6
guy 3 years ago
parent
commit
35dbe38b52
  1. 1
      changelog.md
  2. 3
      dist/fix/fix.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2021-12)
- childContext废弃,替换成provide
- 支持BI.useContext获取上下文环境
- BI.Msg.alert支持message传json格式
- 支持BI.config(function(){})进行系统配置

3
dist/fix/fix.js vendored

@ -1420,12 +1420,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var context = this.context;
var inject = this.inject;
var childContext = this.childContext;
var provide = this.provide;
var watch$$1 = this.watch;
var actions = this.actions;
var keys = _.keys(this.$$model).concat(_.keys(state)).concat(_.keys(computed)).concat(inject || []).concat(context || []);
var mixins = this.mixins;
defineProps(this, keys);
// deprecated
childContext && defineContext(this, childContext);
provide && defineContext(this, provide);
this.$$model && (this.model.__ob__ = this.$$model.__ob__);
initMixins(this, mixins);
this.init();

Loading…
Cancel
Save