render-core 1.0.84 → 1.0.85

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.
@@ -0,0 +1,3 @@
1
+ export declare function errorDisplay(error: Error): void;
2
+ export declare function warnDisplay(error: Error): void;
3
+ export declare function infoDisplay(error: Error): void;
@@ -0,0 +1,9 @@
1
+ export function errorDisplay(error) {
2
+ console.log();
3
+ }
4
+ export function warnDisplay(error) {
5
+ console.warn();
6
+ }
7
+ export function infoDisplay(error) {
8
+ console.info();
9
+ }
@@ -5,5 +5,5 @@ export function getTemplate(proto) {
5
5
  var template = temp.getElementsByTagName("template")[0];
6
6
  var content = template.content;
7
7
  //获得模板元素
8
- return content.firstElementChild;
8
+ return content.querySelector("view");
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "The core for render-js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",