render-core 1.3.38 → 1.3.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.
Files changed (118) hide show
  1. package/class/component/component.d.ts +41 -41
  2. package/class/component/component.js +108 -108
  3. package/class/controller/appController.d.ts +44 -44
  4. package/class/controller/appController.js +132 -132
  5. package/class/controller/componentController.d.ts +15 -15
  6. package/class/controller/componentController.js +22 -22
  7. package/class/controller/contextController.d.ts +18 -18
  8. package/class/controller/contextController.js +79 -79
  9. package/class/controller/pageController.d.ts +23 -23
  10. package/class/controller/pageController.js +40 -40
  11. package/class/tips/appTip.d.ts +2 -2
  12. package/class/tips/appTip.js +1 -1
  13. package/class/tips/componentTip.d.ts +13 -13
  14. package/class/tips/componentTip.js +1 -1
  15. package/class/tips/renderTip.d.ts +5 -5
  16. package/class/tips/renderTip.js +1 -1
  17. package/core/cmd/data/v-el.d.ts +8 -8
  18. package/core/cmd/data/v-el.js +28 -28
  19. package/core/cmd/data/v-html.d.ts +8 -8
  20. package/core/cmd/data/v-html.js +26 -26
  21. package/core/cmd/data/v-txt.d.ts +8 -8
  22. package/core/cmd/data/v-txt.js +29 -29
  23. package/core/cmd/justify/v-if.d.ts +6 -6
  24. package/core/cmd/justify/v-if.js +43 -43
  25. package/core/cmd/justify/v-render.d.ts +6 -6
  26. package/core/cmd/justify/v-render.js +26 -26
  27. package/core/cmd/justify/v-show.d.ts +6 -6
  28. package/core/cmd/justify/v-show.js +26 -26
  29. package/core/cmd/justify/v-switch.d.ts +6 -6
  30. package/core/cmd/justify/v-switch.js +35 -35
  31. package/core/cmd/loop/v-for.d.ts +12 -12
  32. package/core/cmd/loop/v-for.js +63 -63
  33. package/core/cmd/loop/v-index.d.ts +14 -14
  34. package/core/cmd/loop/v-index.js +80 -79
  35. package/core/cmd/loop/v-key.d.ts +12 -12
  36. package/core/cmd/loop/v-key.js +70 -70
  37. package/core/cmd/method/v-on.d.ts +8 -8
  38. package/core/cmd/method/v-on.js +40 -40
  39. package/core/cmd/property/v-bind.d.ts +6 -6
  40. package/core/cmd/property/v-bind.js +33 -33
  41. package/core/cmd/react/v-model.d.ts +6 -6
  42. package/core/cmd/react/v-model.js +22 -22
  43. package/core/cmd/ref/v-ref.d.ts +6 -6
  44. package/core/cmd/ref/v-ref.js +16 -16
  45. package/core/cmd/solt/v-solt.d.ts +14 -14
  46. package/core/cmd/solt/v-solt.js +46 -46
  47. package/core/inject/inject.d.ts +30 -35
  48. package/core/inject/inject.js +63 -70
  49. package/core/lifecycle/afterMethods.d.ts +16 -16
  50. package/core/lifecycle/afterMethods.js +22 -22
  51. package/core/lifecycle/controllerCycle.d.ts +13 -13
  52. package/core/lifecycle/controllerCycle.js +42 -42
  53. package/core/lifecycle/mount.d.ts +16 -17
  54. package/core/lifecycle/mount.js +31 -34
  55. package/core/loader/loader.d.ts +7 -7
  56. package/core/loader/loader.js +18 -18
  57. package/core/proxy/getProxy.d.ts +13 -13
  58. package/core/proxy/getProxy.js +42 -42
  59. package/core/render/PostRender.d.ts +12 -12
  60. package/core/render/PostRender.js +42 -45
  61. package/core/render/delivery.d.ts +5 -5
  62. package/core/render/delivery.js +42 -42
  63. package/core/render/initRender.d.ts +12 -12
  64. package/core/render/initRender.js +39 -41
  65. package/core/render/partRender.d.ts +15 -15
  66. package/core/render/partRender.js +31 -31
  67. package/core/render/rawRender.d.ts +12 -12
  68. package/core/render/rawRender.js +43 -45
  69. package/core/render/updateRender.d.ts +6 -6
  70. package/core/render/updateRender.js +29 -32
  71. package/core/resolver/props.d.ts +18 -18
  72. package/core/resolver/props.js +60 -60
  73. package/core/resolver/query.d.ts +4 -4
  74. package/core/resolver/query.js +15 -15
  75. package/core/utility/checkUtility.d.ts +1 -1
  76. package/core/utility/checkUtility.js +4 -4
  77. package/core/utility/cmdUtility.d.ts +16 -16
  78. package/core/utility/cmdUtility.js +57 -57
  79. package/core/utility/dataUtility.d.ts +1 -1
  80. package/core/utility/dataUtility.js +8 -8
  81. package/core/utility/errorUtility.d.ts +3 -3
  82. package/core/utility/errorUtility.js +9 -9
  83. package/core/utility/injectUtility.d.ts +13 -13
  84. package/core/utility/injectUtility.js +58 -58
  85. package/core/utility/inputType.d.ts +5 -5
  86. package/core/utility/inputType.js +20 -20
  87. package/core/utility/inputUtility.d.ts +4 -4
  88. package/core/utility/inputUtility.js +100 -100
  89. package/core/utility/miscUtility.d.ts +6 -6
  90. package/core/utility/miscUtility.js +12 -12
  91. package/core/utility/modelUtility.d.ts +15 -15
  92. package/core/utility/modelUtility.js +66 -66
  93. package/core/utility/sectionUtility.d.ts +6 -6
  94. package/core/utility/sectionUtility.js +104 -104
  95. package/core/utility/styleUtility.d.ts +29 -29
  96. package/core/utility/styleUtility.js +114 -114
  97. package/core/utility/templateUtility.d.ts +6 -6
  98. package/core/utility/templateUtility.js +13 -13
  99. package/core/utility/vForUtility.d.ts +15 -15
  100. package/core/utility/vForUtility.js +20 -20
  101. package/func/Theme.d.ts +16 -16
  102. package/func/Theme.js +27 -27
  103. package/http/redirect/redirect.d.ts +11 -11
  104. package/http/redirect/redirect.js +36 -36
  105. package/index.d.ts +71 -71
  106. package/index.js +130 -130
  107. package/package.json +3 -8
  108. package/runtime/metaTagLib.d.ts +2 -2
  109. package/runtime/metaTagLib.js +27 -27
  110. package/runtime/runtime.d.ts +7 -7
  111. package/runtime/runtime.js +26 -26
  112. package/runtime/tools.d.ts +14 -14
  113. package/runtime/tools.js +49 -49
  114. package/status/read/read.d.ts +10 -10
  115. package/status/read/read.js +26 -26
  116. package/status/write/write.d.ts +12 -12
  117. package/status/write/write.js +92 -92
  118. package/README.md +0 -2
package/index.d.ts CHANGED
@@ -1,71 +1,71 @@
1
- import { Component } from "./class/component/component";
2
- import { PageController } from "./class/controller/pageController";
3
- import { RenderTip } from "./class/tips/renderTip";
4
- /**
5
- * This class is the application class.
6
- */
7
- export declare class RenderJS implements RenderTip {
8
- readonly config: {};
9
- readonly tagLib: Map<string, Component>;
10
- readonly styleLib: Map<string, Map<string, string>>;
11
- private readonly application;
12
- private readonly context;
13
- page: PageController;
14
- constructor();
15
- /**
16
- *
17
- * @param config
18
- */
19
- configApp(config: {}): void;
20
- /**
21
- *
22
- * @param config
23
- */
24
- configContext(config: {}): void;
25
- /**
26
- *
27
- * @param callable
28
- */
29
- use(callable: any): void;
30
- /**
31
- * You can use the method to register your single component or an array of components.
32
- * @param component
33
- */
34
- addTag(component: Component | Component[]): void;
35
- /**
36
- * mount some base object
37
- */
38
- private mount;
39
- /**
40
- * This method is the booster method of the render.
41
- */
42
- run(): void;
43
- /**
44
- *
45
- * @param name
46
- * @param func
47
- */
48
- registerElements(name: string, func: any): void;
49
- }
50
- /**
51
- * The tool to register element to window
52
- * @param name
53
- * @param func
54
- */
55
- export declare function registerElements(name: string, func: any): void;
56
- /**
57
- * This is the read api of status.
58
- * @param config
59
- */
60
- export declare function status_read(config: {
61
- type: string;
62
- fields: string[];
63
- }): any;
64
- /**
65
- * This is the write api of status.
66
- * @param config
67
- */
68
- export declare function status_write(config: {
69
- type: string;
70
- fields: {};
71
- }): void;
1
+ import { Component } from "./class/component/component";
2
+ import { PageController } from "./class/controller/pageController";
3
+ import { RenderTip } from "./class/tips/renderTip";
4
+ /**
5
+ * This class is the application class.
6
+ */
7
+ export declare class RenderJS implements RenderTip {
8
+ readonly config: {};
9
+ readonly tagLib: Map<string, Component>;
10
+ readonly styleLib: Map<string, Map<string, string>>;
11
+ private readonly application;
12
+ private readonly context;
13
+ page: PageController;
14
+ constructor();
15
+ /**
16
+ *
17
+ * @param config
18
+ */
19
+ configApp(config: {}): void;
20
+ /**
21
+ *
22
+ * @param config
23
+ */
24
+ configContext(config: {}): void;
25
+ /**
26
+ *
27
+ * @param callable
28
+ */
29
+ use(callable: any): void;
30
+ /**
31
+ * You can use the method to register your single component or an array of components.
32
+ * @param component
33
+ */
34
+ addTag(component: Component | Component[]): void;
35
+ /**
36
+ * mount some base object
37
+ */
38
+ private mount;
39
+ /**
40
+ * This method is the booster method of the render.
41
+ */
42
+ run(): void;
43
+ /**
44
+ *
45
+ * @param name
46
+ * @param func
47
+ */
48
+ registerElements(name: string, func: any): void;
49
+ }
50
+ /**
51
+ * The tool to register element to window
52
+ * @param name
53
+ * @param func
54
+ */
55
+ export declare function registerElements(name: string, func: any): void;
56
+ /**
57
+ * This is the read api of status.
58
+ * @param config
59
+ */
60
+ export declare function status_read(config: {
61
+ type: string;
62
+ fields: string[];
63
+ }): any;
64
+ /**
65
+ * This is the write api of status.
66
+ * @param config
67
+ */
68
+ export declare function status_write(config: {
69
+ type: string;
70
+ fields: {};
71
+ }): void;
package/index.js CHANGED
@@ -1,130 +1,130 @@
1
- import { PageController } from "./class/controller/pageController";
2
- import { registerTagLib, render } from "./runtime/tools";
3
- import { AppController } from "./class/controller/appController";
4
- import { ContextController } from "./class/controller/contextController";
5
- import { localStorageEngine_read, sessionStorageEngin_read } from "./status/read/read";
6
- import { localStorageEngine_write, sessionStorageEngin_write } from "./status/write/write";
7
- /**
8
- * This class is the application class.
9
- */
10
- var RenderJS = /** @class */ (function () {
11
- function RenderJS() {
12
- //initiate the tagLib object
13
- this.tagLib = new Map();
14
- //initiate the styleLib object
15
- this.styleLib = new Map();
16
- //initiate the application controller
17
- this.application = new AppController();
18
- //initiate the context controller
19
- this.context = new ContextController();
20
- //initiate the page controller
21
- this.page = new PageController();
22
- //initiate the config object
23
- this.config = {};
24
- }
25
- /**
26
- *
27
- * @param config
28
- */
29
- RenderJS.prototype.configApp = function (config) {
30
- this.application.saveFields(config);
31
- this.application.storeFields();
32
- this.application.loadFields();
33
- };
34
- /**
35
- *
36
- * @param config
37
- */
38
- RenderJS.prototype.configContext = function (config) {
39
- this.context.saveFields(config);
40
- this.context.storeFields();
41
- this.context.loadFields();
42
- };
43
- /**
44
- *
45
- * @param callable
46
- */
47
- RenderJS.prototype.use = function (callable) {
48
- callable(this);
49
- };
50
- /**
51
- * You can use the method to register your single component or an array of components.
52
- * @param component
53
- */
54
- RenderJS.prototype.addTag = function (component) {
55
- registerTagLib(this, component);
56
- };
57
- /**
58
- * mount some base object
59
- */
60
- RenderJS.prototype.mount = function () {
61
- Reflect.set(window, "tagLib", this.tagLib);
62
- Reflect.set(window, "styleLib", this.styleLib);
63
- Reflect.set(window, "appSite", this.application);
64
- Reflect.set(window, "context", this.context);
65
- Reflect.set(window, "page", this.page);
66
- };
67
- /**
68
- * This method is the booster method of the render.
69
- */
70
- RenderJS.prototype.run = function () {
71
- //挂载对象
72
- this.mount();
73
- //execute
74
- render(this);
75
- };
76
- /**
77
- *
78
- * @param name
79
- * @param func
80
- */
81
- RenderJS.prototype.registerElements = function (name, func) {
82
- Reflect.set(window, name, func);
83
- };
84
- return RenderJS;
85
- }());
86
- export { RenderJS };
87
- /**
88
- * The tool to register element to window
89
- * @param name
90
- * @param func
91
- */
92
- export function registerElements(name, func) {
93
- Reflect.set(window, name, func);
94
- }
95
- /**
96
- * This is the read api of status.
97
- * @param config
98
- */
99
- export function status_read(config) {
100
- var fields = config.fields;
101
- var message = {};
102
- if (config.type == "session") {
103
- fields.forEach(function (value) {
104
- message[value] = sessionStorageEngin_read(value);
105
- });
106
- }
107
- else {
108
- fields.forEach(function (value) {
109
- message[value] = localStorageEngine_read(value);
110
- });
111
- }
112
- return message;
113
- }
114
- /**
115
- * This is the write api of status.
116
- * @param config
117
- */
118
- export function status_write(config) {
119
- var fields = Object.getOwnPropertyNames(config.fields);
120
- if (config.type == "session") {
121
- fields.forEach(function (value) {
122
- sessionStorageEngin_write(value, config.fields);
123
- });
124
- }
125
- else {
126
- fields.forEach(function (value) {
127
- localStorageEngine_write(value, config.fields);
128
- });
129
- }
130
- }
1
+ import { PageController } from "./class/controller/pageController";
2
+ import { registerTagLib, render } from "./runtime/tools";
3
+ import { AppController } from "./class/controller/appController";
4
+ import { ContextController } from "./class/controller/contextController";
5
+ import { localStorageEngine_read, sessionStorageEngin_read } from "./status/read/read";
6
+ import { localStorageEngine_write, sessionStorageEngin_write } from "./status/write/write";
7
+ /**
8
+ * This class is the application class.
9
+ */
10
+ var RenderJS = /** @class */ (function () {
11
+ function RenderJS() {
12
+ //initiate the tagLib object
13
+ this.tagLib = new Map();
14
+ //initiate the styleLib object
15
+ this.styleLib = new Map();
16
+ //initiate the application controller
17
+ this.application = new AppController();
18
+ //initiate the context controller
19
+ this.context = new ContextController();
20
+ //initiate the page controller
21
+ this.page = new PageController();
22
+ //initiate the config object
23
+ this.config = {};
24
+ }
25
+ /**
26
+ *
27
+ * @param config
28
+ */
29
+ RenderJS.prototype.configApp = function (config) {
30
+ this.application.saveFields(config);
31
+ this.application.storeFields();
32
+ this.application.loadFields();
33
+ };
34
+ /**
35
+ *
36
+ * @param config
37
+ */
38
+ RenderJS.prototype.configContext = function (config) {
39
+ this.context.saveFields(config);
40
+ this.context.storeFields();
41
+ this.context.loadFields();
42
+ };
43
+ /**
44
+ *
45
+ * @param callable
46
+ */
47
+ RenderJS.prototype.use = function (callable) {
48
+ callable(this);
49
+ };
50
+ /**
51
+ * You can use the method to register your single component or an array of components.
52
+ * @param component
53
+ */
54
+ RenderJS.prototype.addTag = function (component) {
55
+ registerTagLib(this, component);
56
+ };
57
+ /**
58
+ * mount some base object
59
+ */
60
+ RenderJS.prototype.mount = function () {
61
+ Reflect.set(window, "tagLib", this.tagLib);
62
+ Reflect.set(window, "styleLib", this.styleLib);
63
+ Reflect.set(window, "appSite", this.application);
64
+ Reflect.set(window, "context", this.context);
65
+ Reflect.set(window, "page", this.page);
66
+ };
67
+ /**
68
+ * This method is the booster method of the render.
69
+ */
70
+ RenderJS.prototype.run = function () {
71
+ //挂载对象
72
+ this.mount();
73
+ //execute
74
+ render(this);
75
+ };
76
+ /**
77
+ *
78
+ * @param name
79
+ * @param func
80
+ */
81
+ RenderJS.prototype.registerElements = function (name, func) {
82
+ Reflect.set(window, name, func);
83
+ };
84
+ return RenderJS;
85
+ }());
86
+ export { RenderJS };
87
+ /**
88
+ * The tool to register element to window
89
+ * @param name
90
+ * @param func
91
+ */
92
+ export function registerElements(name, func) {
93
+ Reflect.set(window, name, func);
94
+ }
95
+ /**
96
+ * This is the read api of status.
97
+ * @param config
98
+ */
99
+ export function status_read(config) {
100
+ var fields = config.fields;
101
+ var message = {};
102
+ if (config.type == "session") {
103
+ fields.forEach(function (value) {
104
+ message[value] = sessionStorageEngin_read(value);
105
+ });
106
+ }
107
+ else {
108
+ fields.forEach(function (value) {
109
+ message[value] = localStorageEngine_read(value);
110
+ });
111
+ }
112
+ return message;
113
+ }
114
+ /**
115
+ * This is the write api of status.
116
+ * @param config
117
+ */
118
+ export function status_write(config) {
119
+ var fields = Object.getOwnPropertyNames(config.fields);
120
+ if (config.type == "session") {
121
+ fields.forEach(function (value) {
122
+ sessionStorageEngin_write(value, config.fields);
123
+ });
124
+ }
125
+ else {
126
+ fields.forEach(function (value) {
127
+ localStorageEngine_write(value, config.fields);
128
+ });
129
+ }
130
+ }
package/package.json CHANGED
@@ -1,17 +1,12 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.3.38",
4
- "description": "The core of render-js",
5
- "keywords": [
6
- "render",
7
- "render-core",
8
- "renderjs"
9
- ],
3
+ "version": "1.3.39",
4
+ "description": "The extendable javascript web framework",
10
5
  "main": "index.js",
11
6
  "types": "index.d.ts",
12
7
  "repository": {
13
8
  "type": "git",
14
- "url": "https://github.com/render-js/render-core.git"
9
+ "url": "https://github.com//render-js/render-core.git"
15
10
  },
16
11
  "author": {
17
12
  "name": "mutian",
@@ -1,2 +1,2 @@
1
- declare let metaTagLib: string[];
2
- export default metaTagLib;
1
+ declare let metaTagLib: string[];
2
+ export default metaTagLib;
@@ -1,27 +1,27 @@
1
- var metaTagLib = [];
2
- var tableTag = ["FORM", "INPUT", "TEXTAREA", "BUTTON", "SELECT", "OPTGROUP", "OPTION", "LABEL", "FIELDSET", "LEGEND", "DATALIST", "KEYGEN", "OUTPUT"];
3
- metaTagLib = metaTagLib.concat(tableTag);
4
- var frameTag = ["FRAME", "FRAMESET", "NOFRAMES", "IFRAME"];
5
- metaTagLib = metaTagLib.concat(frameTag);
6
- var imgTag = ["IMG", "MAP", "AREA", "CANVAS", "FIGCAPTION", "FIGURE", "AUDIO", "VIDEO", "SOURCE", "TRACK"];
7
- metaTagLib = metaTagLib.concat(imgTag);
8
- var linkTag = ["A", "LINK", "MAIN", "NAV"];
9
- metaTagLib = metaTagLib.concat(linkTag);
10
- var listTag = ["UL", "OL", "LI", "DIR", "DL", "DT", "DD", "MENU", "COMMAND"];
11
- metaTagLib = metaTagLib.concat(listTag);
12
- var titleTag = ["H1", "H2", "H3", "H4", "H5", "H6"];
13
- metaTagLib = metaTagLib.concat(titleTag);
14
- var tbTag = ["TABLE", "CAPTION", "TH", "TR", "TD", "THEAD", "TBODY", "TFOOT", "COL", "COLGROUP"];
15
- metaTagLib = metaTagLib.concat(tbTag);
16
- var styleTag = ["STYLE", "DIV", "SPAN", "HEADER", "FOOTER", "SECTION", "ARTICLE", "ASIDE", "DETAILS", "DIALOG", "SUMMARY"];
17
- metaTagLib = metaTagLib.concat(styleTag);
18
- var metaTag = ["HEAD", "META", "BASE", "BASEFONT"];
19
- metaTagLib = metaTagLib.concat(metaTag);
20
- var programTag = ["SCRIPT", "NOSCRIPT", "APPLET", "EMBED", "OBJECT", "PARAM"];
21
- metaTagLib = metaTagLib.concat(programTag);
22
- var formTag = ["ACRONYM", "ABBR", "ADDRESS", "B", "BDI", "BDO", "BIG", "BLOCKQUOTE", "CENTER", "CITE", "CODE", "DEL", "DFN", "EM", "FONT", "I", "INS", "KBD", "MARK", "METER", "PRE", "PROGRESS", "Q", "RP", "RT", "RUBY", "S", "SAMP", "SMALL", "STRIKE", "STRONG", "SUB", "SUP", "TIME", "TT", "U", "VAR", "WBR"];
23
- metaTagLib = metaTagLib.concat(formTag);
24
- var baseTag = ["!DOCTYPE", "HTML", "TITLE", "BODY", "P", "BR", "HR", "!--...--"];
25
- metaTagLib = metaTagLib.concat(baseTag);
26
- //返回数组
27
- export default metaTagLib;
1
+ var metaTagLib = [];
2
+ var tableTag = ["FORM", "INPUT", "TEXTAREA", "BUTTON", "SELECT", "OPTGROUP", "OPTION", "LABEL", "FIELDSET", "LEGEND", "DATALIST", "KEYGEN", "OUTPUT"];
3
+ metaTagLib = metaTagLib.concat(tableTag);
4
+ var frameTag = ["FRAME", "FRAMESET", "NOFRAMES", "IFRAME"];
5
+ metaTagLib = metaTagLib.concat(frameTag);
6
+ var imgTag = ["IMG", "MAP", "AREA", "CANVAS", "FIGCAPTION", "FIGURE", "AUDIO", "VIDEO", "SOURCE", "TRACK"];
7
+ metaTagLib = metaTagLib.concat(imgTag);
8
+ var linkTag = ["A", "LINK", "MAIN", "NAV"];
9
+ metaTagLib = metaTagLib.concat(linkTag);
10
+ var listTag = ["UL", "OL", "LI", "DIR", "DL", "DT", "DD", "MENU", "COMMAND"];
11
+ metaTagLib = metaTagLib.concat(listTag);
12
+ var titleTag = ["H1", "H2", "H3", "H4", "H5", "H6"];
13
+ metaTagLib = metaTagLib.concat(titleTag);
14
+ var tbTag = ["TABLE", "CAPTION", "TH", "TR", "TD", "THEAD", "TBODY", "TFOOT", "COL", "COLGROUP"];
15
+ metaTagLib = metaTagLib.concat(tbTag);
16
+ var styleTag = ["STYLE", "DIV", "SPAN", "HEADER", "FOOTER", "SECTION", "ARTICLE", "ASIDE", "DETAILS", "DIALOG", "SUMMARY"];
17
+ metaTagLib = metaTagLib.concat(styleTag);
18
+ var metaTag = ["HEAD", "META", "BASE", "BASEFONT"];
19
+ metaTagLib = metaTagLib.concat(metaTag);
20
+ var programTag = ["SCRIPT", "NOSCRIPT", "APPLET", "EMBED", "OBJECT", "PARAM"];
21
+ metaTagLib = metaTagLib.concat(programTag);
22
+ var formTag = ["ACRONYM", "ABBR", "ADDRESS", "B", "BDI", "BDO", "BIG", "BLOCKQUOTE", "CENTER", "CITE", "CODE", "DEL", "DFN", "EM", "FONT", "I", "INS", "KBD", "MARK", "METER", "PRE", "PROGRESS", "Q", "RP", "RT", "RUBY", "S", "SAMP", "SMALL", "STRIKE", "STRONG", "SUB", "SUP", "TIME", "TT", "U", "VAR", "WBR"];
23
+ metaTagLib = metaTagLib.concat(formTag);
24
+ var baseTag = ["!DOCTYPE", "HTML", "TITLE", "BODY", "P", "BR", "HR", "!--...--"];
25
+ metaTagLib = metaTagLib.concat(baseTag);
26
+ //返回数组
27
+ export default metaTagLib;
@@ -1,7 +1,7 @@
1
- import { PageController } from "../class/controller/pageController";
2
- /**
3
- *
4
- * @param collection
5
- * @param link
6
- */
7
- export declare function renderHtml(collection: HTMLCollection, link: PageController): void;
1
+ import { PageController } from "../class/controller/pageController";
2
+ /**
3
+ *
4
+ * @param collection
5
+ * @param link
6
+ */
7
+ export declare function renderHtml(collection: HTMLCollection, link: PageController): void;
@@ -1,26 +1,26 @@
1
- import { isUnKnown } from "../core/utility/checkUtility";
2
- import { Render } from "../core/render/delivery";
3
- /**
4
- *
5
- * @param collection
6
- * @param link
7
- */
8
- export function renderHtml(collection, link) {
9
- //遍历element节点,判断是否为自定义标签
10
- for (var i = 0; i < collection.length; i++) {
11
- if (isUnKnown(collection[i].nodeName.toUpperCase())) {
12
- var component = Reflect.get(window, "tagLib").get(collection[i].nodeName.toUpperCase());
13
- if (component === undefined) {
14
- console.error(collection[i].nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
15
- }
16
- else {
17
- //自定义标签
18
- Render(component, collection[i].parentNode, collection[i], link);
19
- }
20
- }
21
- else {
22
- //非自定义标签,深度解析
23
- renderHtml(collection[i].children, link);
24
- }
25
- }
26
- }
1
+ import { isUnKnown } from "../core/utility/checkUtility";
2
+ import { Render } from "../core/render/delivery";
3
+ /**
4
+ *
5
+ * @param collection
6
+ * @param link
7
+ */
8
+ export function renderHtml(collection, link) {
9
+ //遍历element节点,判断是否为自定义标签
10
+ for (var i = 0; i < collection.length; i++) {
11
+ if (isUnKnown(collection[i].nodeName.toUpperCase())) {
12
+ var component = Reflect.get(window, "tagLib").get(collection[i].nodeName.toUpperCase());
13
+ if (component === undefined) {
14
+ console.error(collection[i].nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
15
+ }
16
+ else {
17
+ //自定义标签
18
+ Render(component, collection[i].parentNode, collection[i], link);
19
+ }
20
+ }
21
+ else {
22
+ //非自定义标签,深度解析
23
+ renderHtml(collection[i].children, link);
24
+ }
25
+ }
26
+ }
@@ -1,14 +1,14 @@
1
- import { Component } from "../class/component/component";
2
- import { RenderJS } from "../index";
3
- /**
4
- * This function is used to save the prototype component class in the window object.
5
- * So, you can hava a tip that we custom a property named 'tagLib' in the window object.
6
- * @param application
7
- * @param component
8
- */
9
- export declare function registerTagLib(application: RenderJS, component: Component | Component[]): void;
10
- /**
11
- * The entrance of render
12
- * @param renderjs
13
- */
14
- export declare function render(renderjs: RenderJS): void;
1
+ import { Component } from "../class/component/component";
2
+ import { RenderJS } from "../index";
3
+ /**
4
+ * This function is used to save the prototype component class in the window object.
5
+ * So, you can hava a tip that we custom a property named 'tagLib' in the window object.
6
+ * @param application
7
+ * @param component
8
+ */
9
+ export declare function registerTagLib(application: RenderJS, component: Component | Component[]): void;
10
+ /**
11
+ * The entrance of render
12
+ * @param renderjs
13
+ */
14
+ export declare function render(renderjs: RenderJS): void;