render-core 1.2.2 → 1.2.4
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.
|
@@ -22,8 +22,7 @@ export function post_render(proto, parent, child, link, tagTemplate) {
|
|
|
22
22
|
//控制对象预处理
|
|
23
23
|
controllerCycleTypeTwo(controller, proto, child, link, tagTemplate);
|
|
24
24
|
//beforeRender
|
|
25
|
-
|
|
26
|
-
beforeRender();
|
|
25
|
+
proto.getBeforeRender().call(controller.raw_data);
|
|
27
26
|
//解析指令
|
|
28
27
|
cmdUtility(tagTemplate, proto, controller);
|
|
29
28
|
//mount
|
|
@@ -34,8 +33,7 @@ export function post_render(proto, parent, child, link, tagTemplate) {
|
|
|
34
33
|
//后处理
|
|
35
34
|
afterMethodsTypeOne(controller, child, link);
|
|
36
35
|
//afterRender
|
|
37
|
-
|
|
38
|
-
afterRender();
|
|
36
|
+
proto.getAfterRender().call(controller.proxyForMethods);
|
|
39
37
|
//深度渲染
|
|
40
38
|
findComponent(controller.root.children, controller);
|
|
41
39
|
if (proto.getMode() === "insert") {
|
package/core/render/rawRender.js
CHANGED
|
@@ -22,8 +22,7 @@ export function raw_render(proto, parent, child, link, tagTemplate) {
|
|
|
22
22
|
//控制对象预处理
|
|
23
23
|
controllerCycleTypeTwo(controller, proto, child, link, tagTemplate);
|
|
24
24
|
//beforeRender,可以获取数据而不触发更新
|
|
25
|
-
|
|
26
|
-
beforeRender();
|
|
25
|
+
proto.getBeforeRender().call(controller.raw_data);
|
|
27
26
|
//解析指令(模板处理)
|
|
28
27
|
cmdUtility(tagTemplate, proto, controller);
|
|
29
28
|
//mount
|
|
@@ -35,8 +34,7 @@ export function raw_render(proto, parent, child, link, tagTemplate) {
|
|
|
35
34
|
//后处理(数据渲染)
|
|
36
35
|
afterMethodsTypeTwo(controller, child, link);
|
|
37
36
|
//afterRender,可以操作渲染后的dom
|
|
38
|
-
|
|
39
|
-
afterRender();
|
|
37
|
+
proto.getAfterRender().call(controller.proxyForMethods);
|
|
40
38
|
//深度渲染
|
|
41
39
|
findComponent(controller.root.children, controller);
|
|
42
40
|
if (proto.getMode() === "insert") {
|