render-core 1.0.11 → 1.0.13

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.
@@ -3,6 +3,7 @@ var Controller = /** @class */ (function () {
3
3
  function Controller() {
4
4
  this.link = new Map();
5
5
  this.to = [];
6
+ this.raw_data = {};
6
7
  }
7
8
  //接收器
8
9
  Controller.prototype.receiver = function (method) {
@@ -50,7 +50,7 @@ export function post_render(proto, parent, child, link, tagTemplate) {
50
50
  //复制原始数据对象到控制对象
51
51
  controller.raw_data = Object.create(proto.getData());
52
52
  //向raw_data中注入元数据
53
- // inject(controller,tagTemplate);
53
+ inject(controller, tagTemplate);
54
54
  //保持数据代理对象
55
55
  controller.proxyForMethods = getProxyObject(controller.raw_data, controller);
56
56
  //注入commit
@@ -112,7 +112,6 @@ export function raw_render(proto, parent, child, link, tagTemplate) {
112
112
  //afterRender
113
113
  var afterRender = proto.getAfterRender().bind(controller.raw_data);
114
114
  afterRender();
115
- link.to.push(controller);
116
115
  //深度渲染
117
116
  findComponent(controller.root.children, controller);
118
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "The router for render-js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",