@vtj/renderer 0.16.19 → 0.16.21

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/renderer",
3
3
  "private": false,
4
- "version": "0.16.19",
4
+ "version": "0.16.21",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -21,15 +21,15 @@
21
21
  "author": "chenhuachun",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.16.19",
25
- "@vtj/utils": "~0.16.19"
24
+ "@vtj/core": "~0.16.21",
25
+ "@vtj/utils": "~0.16.21"
26
26
  },
27
27
  "devDependencies": {
28
28
  "vue": "~3.5.5",
29
29
  "vue-router": "~4.6.0",
30
- "@vtj/cli": "~0.12.18",
31
- "@vtj/ui": "~0.16.19",
32
- "@vtj/icons": "~0.16.19"
30
+ "@vtj/cli": "~0.12.19",
31
+ "@vtj/icons": "~0.16.21",
32
+ "@vtj/ui": "~0.16.21"
33
33
  },
34
34
  "exports": {
35
35
  ".": {
@@ -0,0 +1,19 @@
1
+ declare class NodeCache {
2
+ private __props;
3
+ private __events;
4
+ private __nodes;
5
+ constructor();
6
+ setProps(id: string, value: any): void;
7
+ getProps(id: string): any;
8
+ loadProps(key: string, value: any): any;
9
+ setEvents(_id: string, _value: any): void;
10
+ getEvents(id: string): any;
11
+ loadEvents(key: string, value: any): any;
12
+ setNode(id: string, value: any): void;
13
+ getNode(id: string): any;
14
+ loadNode(key: string, value: any): any;
15
+ isEqual(value: any, other: any): boolean;
16
+ clear(): void;
17
+ }
18
+ declare const nodeCache: NodeCache;
19
+ export { nodeCache };
@@ -2,3 +2,4 @@ export * from './context';
2
2
  export * from './node';
3
3
  export * from './block';
4
4
  export * from './loader';
5
+ export * from './cache';
@@ -11,6 +11,3 @@ export interface CreateLoaderOptions {
11
11
  }
12
12
  export declare function createLoader(opts: CreateLoaderOptions): BlockLoader;
13
13
  export declare function clearLoaderCache(): void;
14
- export declare function setNodeCache(key: string, value: any): void;
15
- export declare function getNodeCache(key: string): any;
16
- export declare function clearNodeCache(): void;
@@ -2,5 +2,5 @@ import { VNode } from 'vue';
2
2
  import { NodeSchema, NodeModifiers } from '@vtj/core';
3
3
  import { Context } from './context';
4
4
  import { BlockLoader } from './loader';
5
- export declare function nodeRender(dsl: NodeSchema, context: Context, Vue?: any, loader?: BlockLoader, brothers?: NodeSchema[], isBranch?: boolean): VNode | VNode[] | null;
5
+ export declare function nodeRender(dsl: NodeSchema, context: Context, Vue?: any, loader?: BlockLoader, brothers?: NodeSchema[], isBranch?: boolean, index?: number): VNode | VNode[] | null;
6
6
  export declare function getModifiers(modifiers?: NodeModifiers, isToString?: boolean): string[];
@@ -12,4 +12,3 @@ export declare function isBuiltInTag(tag: string): boolean;
12
12
  export declare function isNativeTag(tag: string): boolean;
13
13
  export declare function getMock(global?: any): any;
14
14
  export declare function setupPageSetting(app: App, route: RouteLocationNormalizedGeneric, file: PageFile | BlockFile): void;
15
- export declare function isEqualValue(value?: any, other?: any): boolean;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/renderer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.16.18
5
+ * @version 0.16.20
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.16.18";
8
+ export declare const version = "0.16.20";