x-runtime-lib 0.4.12 → 0.4.14

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,2 +1,2 @@
1
- declare const base = "\nvar __env__ = 'dev'\n\nfunction __getEnv__() {\n return __env__\n}\n";
1
+ declare const base = "\nvar __env__ = 'dev'\n\nfunction __getEnvV1__() {\n return __env__\n}\n";
2
2
  export default base;
@@ -0,0 +1,2 @@
1
+ declare const timer = "\nvar __timers__ = {}\nvar __currTimerId__ = 0\n\nfunction __createTimerV1__(interval, loop, count, immediate, callback) {\n if (!loop && count <= 0) {\n return\n }\n __currTimerId__ = __currTimerId__ + 1\n var timer = {}\n timer.id = __currTimerId__\n timer.interval = interval\n timer.loop = loop\n timer.count = count\n timer.immediate = immediate\n timer.callback = callback\n __timers__[timer.id] = timer\n if (timer.immediate) {\n __timeoutCallbackV1__(timer.id)\n } else {\n __timeoutV1__(timer.id, timer.interval)\n }\n}\n\nfunction __timeoutCallbackV1__(timerId) {\n var timer = __timers__[timerId]\n if (timer) {\n timer.callback()\n // \u4FEE\u6539\u8BA1\u6570\n if (!timer.loop) {\n timer.count = timer.count - 1\n }\n // \u89E6\u53D1\u8D85\u65F6\n if (timer.loop || timer.count > 0) {\n __timeoutV1__(timer.id, timer.interval)\n }\n // \u56DE\u6536\n if (!timer.loop && timer.count <= 0) {\n delete __timers__[timer.id]\n }\n }\n}\n";
2
+ export default timer;
@@ -5,11 +5,11 @@ export interface Base {
5
5
  params: any[];
6
6
  }
7
7
  export interface Node {
8
- id: string;
9
- key: string;
10
- alias?: string;
11
- ref?: {
8
+ basic: {
12
9
  id: string;
10
+ key: string;
11
+ alias?: string;
12
+ refid?: string;
13
13
  };
14
14
  children?: Node[];
15
15
  }
@@ -36,7 +36,6 @@ export type ZType = {
36
36
  };
37
37
  export type ZProp = {
38
38
  key: string;
39
- keyFlag?: boolean;
40
39
  name: string;
41
40
  children?: ZProp[];
42
41
  ui?: 'void' | 'strInput' | 'numInput' | 'switch' | 'select' | 'colorPicker' | 'multiTypes' | 'compSelect';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.4.12",
4
+ "version": "0.4.14",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",