render-core 1.0.128 → 1.0.130

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,5 @@
1
1
  export declare class ContextController {
2
2
  private fileds;
3
- private mixinData;
4
3
  constructor();
5
4
  saveFileds(fileds: {}): void;
6
5
  loadFileds(): void;
@@ -16,9 +15,4 @@ export declare class ContextController {
16
15
  * @param filed
17
16
  */
18
17
  getFiled(filed: string): any;
19
- /**
20
- * 混入数据
21
- * @param mix
22
- */
23
- mixin(mix: {}): void;
24
18
  }
@@ -3,7 +3,6 @@ import { status_read, status_write } from "render-status";
3
3
  import { reloadStyle } from "../../core/utility/styleUtility";
4
4
  var ContextController = /** @class */ (function () {
5
5
  function ContextController() {
6
- this.mixinData = {};
7
6
  this.fileds = {
8
7
  system_theme: {
9
8
  data: "default",
@@ -83,13 +82,6 @@ var ContextController = /** @class */ (function () {
83
82
  return null;
84
83
  }
85
84
  };
86
- /**
87
- * 混入数据
88
- * @param mix
89
- */
90
- ContextController.prototype.mixin = function (mix) {
91
- this.mixinData = mix;
92
- };
93
85
  return ContextController;
94
86
  }());
95
87
  export { ContextController };
@@ -4,12 +4,10 @@ export declare class PageController {
4
4
  private currentTag;
5
5
  solt: Map<string, any>;
6
6
  raw_data: {};
7
- private mixinData;
8
7
  to: ComponentController[];
9
8
  link: Map<string, {}>;
10
9
  constructor();
11
10
  receiver(method: string, ...args: any[]): void;
12
- mixin(mix: {}): void;
13
11
  set crtTag(element: Element);
14
12
  get crtTag(): Element;
15
13
  }
@@ -7,7 +7,6 @@ var PageController = /** @class */ (function () {
7
7
  this.to = Array();
8
8
  this.crtTag = null;
9
9
  this.solt = new Map();
10
- this.mixinData = {};
11
10
  }
12
11
  //接收器
13
12
  PageController.prototype.receiver = function (method) {
@@ -17,9 +16,6 @@ var PageController = /** @class */ (function () {
17
16
  }
18
17
  this.methods[method].call(window, args);
19
18
  };
20
- PageController.prototype.mixin = function (mix) {
21
- this.mixinData = mix;
22
- };
23
19
  Object.defineProperty(PageController.prototype, "crtTag", {
24
20
  //返回当前页面的渲染元素
25
21
  get: function () {
@@ -2,6 +2,4 @@ export interface RenderTip {
2
2
  use(callable: any): void;
3
3
  configApp(config: {}): void;
4
4
  configContext(cinfig: {}): void;
5
- contextMixin(mix: {}): void;
6
- pageMixin(mix: {}): any;
7
5
  }
@@ -17,6 +17,7 @@ export function controllerCycleTypeOne(controller, proto, child, link, tagTempla
17
17
  export function controllerCycleTypeTwo(controller, proto, child, link, tagTemplate) {
18
18
  //复制原始数据对象到控制对象
19
19
  controller.raw_data = Object.create(proto.getData());
20
+ cycleBridge(controller, proto, child, link, tagTemplate);
20
21
  }
21
22
  function cycleBridge(controller, proto, child, link, tagTemplate) {
22
23
  //保持控制器模板对象
@@ -3,12 +3,12 @@
3
3
  */
4
4
  export function resolve_Queries() {
5
5
  var query = new Map();
6
- if (location.search !== undefined) {
6
+ if (location.search !== "") {
7
7
  var parameters = location.search.replace("?", "");
8
8
  var listPara = parameters.split("&");
9
9
  listPara.forEach(function (value) {
10
10
  var results = value.split("=");
11
- Reflect.set(query, results[0], results[1]);
11
+ query.set(results[0], results[1]);
12
12
  });
13
13
  }
14
14
  return query;
package/index.d.ts CHANGED
@@ -27,16 +27,6 @@ export declare class RenderJS implements RenderTip {
27
27
  * @param callable
28
28
  */
29
29
  use(callable: any): void;
30
- /**
31
- *
32
- * @param mix
33
- */
34
- contextMixin(mix: {}): void;
35
- /**
36
- *
37
- * @param mix
38
- */
39
- pageMixin(mix: {}): void;
40
30
  /**
41
31
  * You can use the method to register your single component or an array of components.
42
32
  * @param component
package/index.js CHANGED
@@ -45,20 +45,6 @@ var RenderJS = /** @class */ (function () {
45
45
  RenderJS.prototype.use = function (callable) {
46
46
  callable(this);
47
47
  };
48
- /**
49
- *
50
- * @param mix
51
- */
52
- RenderJS.prototype.contextMixin = function (mix) {
53
- this.context.mixin(mix);
54
- };
55
- /**
56
- *
57
- * @param mix
58
- */
59
- RenderJS.prototype.pageMixin = function (mix) {
60
- this.page.mixin(mix);
61
- };
62
48
  /**
63
49
  * You can use the method to register your single component or an array of components.
64
50
  * @param component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.0.128",
3
+ "version": "1.0.130",
4
4
  "description": "The core of render-js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",