render-core 1.0.38 → 1.0.39
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Controller } from "../../class/controller/controller";
|
|
2
2
|
import { controllerCycleTypeOne } from "../../library/lifecycle/controllerCycle";
|
|
3
|
-
import { cmd } from "../../library/cmd/cmd";
|
|
3
|
+
import { afterCmd, cmd } from "../../library/cmd/cmd";
|
|
4
4
|
import { mount } from "../../library/lifecycle/mount";
|
|
5
5
|
import { injectRefs } from "../inject/inject";
|
|
6
6
|
import { afterMethodsTypeOne } from "../../library/lifecycle/afterMethods";
|
|
@@ -30,6 +30,7 @@ export function init_render(proto, parent, child, link, tagTemplate) {
|
|
|
30
30
|
mount(controller, proto, parent, child, tagTemplate);
|
|
31
31
|
//获取
|
|
32
32
|
injectRefs(controller, tagTemplate);
|
|
33
|
+
afterCmd(tagTemplate, proto, controller);
|
|
33
34
|
//afterRender
|
|
34
35
|
var afterRender = proto.getAfterRender().bind(controller.proxyForMethods);
|
|
35
36
|
afterRender();
|
package/core/render/rawRender.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Controller } from "../../class/controller/controller";
|
|
2
2
|
import { controllerCycleTypeTwo } from "../../library/lifecycle/controllerCycle";
|
|
3
|
-
import { cmd } from "../../library/cmd/cmd";
|
|
3
|
+
import { afterCmd, cmd } from "../../library/cmd/cmd";
|
|
4
4
|
import { mount } from "../../library/lifecycle/mount";
|
|
5
5
|
import { injectRefs } from "../inject/inject";
|
|
6
6
|
import { afterMethodsTypeTwo } from "../../library/lifecycle/afterMethods";
|
|
@@ -29,6 +29,7 @@ export function raw_render(proto, parent, child, link, tagTemplate) {
|
|
|
29
29
|
//mount
|
|
30
30
|
mount(controller, proto, parent, child, tagTemplate);
|
|
31
31
|
injectRefs(controller, tagTemplate);
|
|
32
|
+
afterCmd(tagTemplate, proto, controller);
|
|
32
33
|
//afterRender
|
|
33
34
|
var afterRender = proto.getAfterRender().bind(controller.raw_data);
|
|
34
35
|
afterRender();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bindModelForUpdater } from "../utility/miscUtility";
|
|
2
|
-
import { cmdForUpdate } from "../../library/cmd/cmd";
|
|
2
|
+
import { afterCmd, cmdForUpdate } from "../../library/cmd/cmd";
|
|
3
3
|
import { injectRefs } from "../inject/inject";
|
|
4
4
|
import { findComponent } from "./delivery";
|
|
5
5
|
import { getTemplate } from "../utility/templateUtility";
|
|
@@ -32,6 +32,7 @@ export function update_Render(controller) {
|
|
|
32
32
|
controller.root.appendChild(tagTemplate.firstChild);
|
|
33
33
|
}
|
|
34
34
|
injectRefs(controller, tagTemplate);
|
|
35
|
+
afterCmd(tagTemplate, controller.proto, controller);
|
|
35
36
|
//afterRender
|
|
36
37
|
var afterRender = controller.proto.getAfterRender().bind(controller.raw_data);
|
|
37
38
|
afterRender();
|
package/library/cmd/cmd.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import { Controller } from "../../class/controller/controller";
|
|
|
3
3
|
import { ApiController } from "../../class/controller/apiController";
|
|
4
4
|
import ApiComponent from "../../class/component/apiComponent";
|
|
5
5
|
export declare function cmd(tagTemplate: Element, proto: Component | ApiComponent, controller: Controller | ApiController): void;
|
|
6
|
+
export declare function afterCmd(tagTemplate: Element, proto: Component | ApiComponent, controller: Controller | ApiController): void;
|
|
6
7
|
export declare function cmdForUpdate(tagTemplate: Element, proto: Component, controller: Controller | ApiController): void;
|
package/library/cmd/cmd.js
CHANGED
|
@@ -19,6 +19,8 @@ export function cmd(tagTemplate, proto, controller) {
|
|
|
19
19
|
resolver_model(tagTemplate.children, controller.proxyForMethods);
|
|
20
20
|
//渲染属性
|
|
21
21
|
resolver_bind(tagTemplate.children, controller.proxyForMethods);
|
|
22
|
+
}
|
|
23
|
+
export function afterCmd(tagTemplate, proto, controller) {
|
|
22
24
|
//v-show
|
|
23
25
|
resolver_show(tagTemplate.children, controller.proxyForMethods);
|
|
24
26
|
//v-render
|