@vtj/designer 0.9.29 → 0.10.0

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 (43) hide show
  1. package/dist/index.mjs +4325 -3919
  2. package/dist/style.css +1 -1
  3. package/package.json +8 -7
  4. package/types/components/binders/event.d.ts +46 -2
  5. package/types/components/binders/variable.d.ts +46 -2
  6. package/types/components/editor/Editor.d.ts +3 -1
  7. package/types/components/editor/index.d.ts +3 -1
  8. package/types/components/hooks/useDesigner.d.ts +2 -2
  9. package/types/components/regions/actions.d.ts +33 -2
  10. package/types/components/regions/apps.d.ts +33 -2
  11. package/types/components/regions/brand.d.ts +33 -2
  12. package/types/components/regions/index.d.ts +259 -10
  13. package/types/components/regions/preview.d.ts +33 -2
  14. package/types/components/regions/settings.d.ts +33 -2
  15. package/types/components/regions/status.d.ts +33 -2
  16. package/types/components/regions/toolbar.d.ts +33 -2
  17. package/types/components/regions/workspace.d.ts +34 -2
  18. package/types/components/setters/css.d.ts +58 -0
  19. package/types/components/setters/function.d.ts +46 -2
  20. package/types/components/setters/index.d.ts +142 -3
  21. package/types/components/setters/json.d.ts +46 -2
  22. package/types/components/shared/binder.d.ts +552 -3
  23. package/types/components/shared/viewer.d.ts +767 -2
  24. package/types/components/skeleton.d.ts +180 -2
  25. package/types/components/widgets/apis/form.d.ts +1520 -2
  26. package/types/components/widgets/css/index.d.ts +46 -2
  27. package/types/components/widgets/designer/index.d.ts +4 -1
  28. package/types/components/widgets/docs/index.d.ts +101 -2
  29. package/types/components/widgets/index.d.ts +340 -8
  30. package/types/components/widgets/market/index.d.ts +101 -2
  31. package/types/components/widgets/previewer/index.d.ts +6 -3
  32. package/types/components/widgets/raw/index.d.ts +46 -2
  33. package/types/components/widgets/schema/index.d.ts +46 -2
  34. package/types/components/widgets/scripts/group.d.ts +650 -4
  35. package/types/components/widgets/scripts/lifeCycles.d.ts +46 -2
  36. package/types/components/widgets/style/JsonMode.d.ts +46 -2
  37. package/types/components/widgets/style/positioning.d.ts +3 -1
  38. package/types/components/widgets/style/spacing-input.d.ts +255 -2
  39. package/types/components/widgets/style/spacing.d.ts +4 -1
  40. package/types/components/widgets/uni-config/index.d.ts +3 -0
  41. package/types/framework/renderer.d.ts +5 -2
  42. package/types/framework/simulator.d.ts +4 -2
  43. package/types/version.d.ts +2 -2
@@ -1,9 +1,53 @@
1
1
  import { BlockModel } from '@vtj/core';
2
2
  import { Context } from '@vtj/renderer';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
4
+ import { Props } from '../../editor/Editor';
4
5
  export interface Props {
5
6
  context: Context | null;
6
7
  current: BlockModel | null;
7
8
  }
8
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
10
+ editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
11
+ onBlur?: ((...args: any[]) => any) | undefined;
12
+ onChange?: ((...args: any[]) => any) | undefined;
13
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
14
+ }>, {
15
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
16
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
+ blur: (...args: any[]) => void;
18
+ change: (...args: any[]) => void;
19
+ "update:modelValue": (...args: any[]) => void;
20
+ }, PublicProps, {
21
+ height: string;
22
+ modelValue: string;
23
+ dark: boolean;
24
+ readonly: boolean;
25
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
26
+ lang: string;
27
+ minimap: boolean;
28
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
29
+ container: HTMLDivElement;
30
+ }, HTMLDivElement, ComponentProvideOptions, {
31
+ P: {};
32
+ B: {};
33
+ D: {};
34
+ C: {};
35
+ M: {};
36
+ Defaults: {};
37
+ }, Readonly< Props> & Readonly<{
38
+ onBlur?: ((...args: any[]) => any) | undefined;
39
+ onChange?: ((...args: any[]) => any) | undefined;
40
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
41
+ }>, {
42
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
43
+ }, {}, {}, {}, {
44
+ height: string;
45
+ modelValue: string;
46
+ dark: boolean;
47
+ readonly: boolean;
48
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
49
+ lang: string;
50
+ minimap: boolean;
51
+ }> | null;
52
+ }, any>;
9
53
  export default _default;
@@ -1,3 +1,47 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
+ import { Props } from '../../editor/Editor';
3
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
4
+ editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
5
+ onBlur?: ((...args: any[]) => any) | undefined;
6
+ onChange?: ((...args: any[]) => any) | undefined;
7
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
+ }>, {
9
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
10
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ blur: (...args: any[]) => void;
12
+ change: (...args: any[]) => void;
13
+ "update:modelValue": (...args: any[]) => void;
14
+ }, PublicProps, {
15
+ height: string;
16
+ modelValue: string;
17
+ dark: boolean;
18
+ readonly: boolean;
19
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
20
+ lang: string;
21
+ minimap: boolean;
22
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
23
+ container: HTMLDivElement;
24
+ }, HTMLDivElement, ComponentProvideOptions, {
25
+ P: {};
26
+ B: {};
27
+ D: {};
28
+ C: {};
29
+ M: {};
30
+ Defaults: {};
31
+ }, Readonly< Props> & Readonly<{
32
+ onBlur?: ((...args: any[]) => any) | undefined;
33
+ onChange?: ((...args: any[]) => any) | undefined;
34
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
+ }>, {
36
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
37
+ }, {}, {}, {}, {
38
+ height: string;
39
+ modelValue: string;
40
+ dark: boolean;
41
+ readonly: boolean;
42
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
43
+ lang: string;
44
+ minimap: boolean;
45
+ }> | null;
46
+ }, any>;
3
47
  export default _default;
@@ -3,5 +3,7 @@ export interface Props {
3
3
  styleJson: Record<string, any>;
4
4
  setStyle: (name: string, value?: any) => void;
5
5
  }
6
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
7
+ inner: HTMLDivElement;
8
+ }, any>;
7
9
  export default _default;
@@ -1,4 +1,6 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import { ContainerWrap, ContainerDirection, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '@vtj/ui';
3
+ import { OnCleanup } from '@vue/reactivity';
2
4
  export interface Props {
3
5
  name: string;
4
6
  modelValue?: string;
@@ -12,5 +14,256 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
12
14
  onClose?: ((...args: any[]) => any) | undefined;
13
15
  onSubmit?: ((...args: any[]) => any) | undefined;
14
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
18
+ bodyRef: ({
19
+ $: ComponentInternalInstance;
20
+ $data: {};
21
+ $props: Partial<{
22
+ padding: boolean;
23
+ tag: string;
24
+ wrap: ContainerWrap;
25
+ fit: boolean;
26
+ flex: boolean;
27
+ inline: boolean;
28
+ direction: ContainerDirection;
29
+ justify: ContainerJustifyContent;
30
+ align: ContainerAlignItems;
31
+ alignContent: ContainerAlignContent;
32
+ grow: boolean;
33
+ shrink: boolean;
34
+ alignSelf: "auto" | ContainerAlignItems;
35
+ gap: boolean;
36
+ autoPointer: boolean;
37
+ }> & Omit<{
38
+ readonly tag: string;
39
+ readonly direction: ContainerDirection;
40
+ readonly inline: boolean;
41
+ readonly fit: boolean;
42
+ readonly padding: boolean;
43
+ readonly flex: boolean;
44
+ readonly wrap: ContainerWrap;
45
+ readonly justify: ContainerJustifyContent;
46
+ readonly align: ContainerAlignItems;
47
+ readonly alignContent: ContainerAlignContent;
48
+ readonly grow: boolean;
49
+ readonly shrink: boolean;
50
+ readonly alignSelf: "auto" | ContainerAlignItems;
51
+ readonly gap: boolean;
52
+ readonly autoPointer: boolean;
53
+ readonly height?: string | number | undefined;
54
+ readonly width?: string | number | undefined;
55
+ readonly overflow?: "visible" | "hidden" | "auto" | undefined;
56
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "tag" | "direction" | "inline" | "fit" | "padding" | "flex" | "wrap" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
57
+ $attrs: {
58
+ [x: string]: unknown;
59
+ };
60
+ $refs: {
61
+ [x: string]: unknown;
62
+ } & {
63
+ elRef: unknown;
64
+ };
65
+ $slots: Readonly<{
66
+ [name: string]: Slot<any> | undefined;
67
+ }>;
68
+ $root: ComponentPublicInstance | null;
69
+ $parent: ComponentPublicInstance | null;
70
+ $host: Element | null;
71
+ $emit: (event: string, ...args: any[]) => void;
72
+ $el: any;
73
+ $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
74
+ tag: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ fit: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ width: {
83
+ type: (StringConstructor | NumberConstructor)[];
84
+ };
85
+ height: {
86
+ type: (StringConstructor | NumberConstructor)[];
87
+ };
88
+ flex: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ inline: {
93
+ type: BooleanConstructor;
94
+ };
95
+ direction: {
96
+ type: PropType<ContainerDirection>;
97
+ default: string;
98
+ };
99
+ wrap: {
100
+ type: PropType<ContainerWrap>;
101
+ default: string;
102
+ };
103
+ justify: {
104
+ type: PropType<ContainerJustifyContent>;
105
+ default: string;
106
+ };
107
+ align: {
108
+ type: PropType<ContainerAlignItems>;
109
+ default: string;
110
+ };
111
+ alignContent: {
112
+ type: PropType<ContainerAlignContent>;
113
+ default: string;
114
+ };
115
+ grow: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ shrink: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ alignSelf: {
124
+ type: PropType<"auto" | ContainerAlignItems>;
125
+ default: string;
126
+ };
127
+ overflow: {
128
+ type: PropType<"auto" | "hidden" | "visible">;
129
+ };
130
+ padding: {
131
+ type: BooleanConstructor;
132
+ default: boolean;
133
+ };
134
+ gap: {
135
+ type: BooleanConstructor;
136
+ };
137
+ autoPointer: {
138
+ type: BooleanConstructor;
139
+ };
140
+ }>> & Readonly<{}>, {
141
+ $vtjEl: ComputedRef<any>;
142
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
143
+ padding: boolean;
144
+ tag: string;
145
+ wrap: ContainerWrap;
146
+ fit: boolean;
147
+ flex: boolean;
148
+ inline: boolean;
149
+ direction: ContainerDirection;
150
+ justify: ContainerJustifyContent;
151
+ align: ContainerAlignItems;
152
+ alignContent: ContainerAlignContent;
153
+ grow: boolean;
154
+ shrink: boolean;
155
+ alignSelf: "auto" | ContainerAlignItems;
156
+ gap: boolean;
157
+ autoPointer: boolean;
158
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
159
+ beforeCreate?: (() => void) | (() => void)[];
160
+ created?: (() => void) | (() => void)[];
161
+ beforeMount?: (() => void) | (() => void)[];
162
+ mounted?: (() => void) | (() => void)[];
163
+ beforeUpdate?: (() => void) | (() => void)[];
164
+ updated?: (() => void) | (() => void)[];
165
+ activated?: (() => void) | (() => void)[];
166
+ deactivated?: (() => void) | (() => void)[];
167
+ beforeDestroy?: (() => void) | (() => void)[];
168
+ beforeUnmount?: (() => void) | (() => void)[];
169
+ destroyed?: (() => void) | (() => void)[];
170
+ unmounted?: (() => void) | (() => void)[];
171
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
172
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
173
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
174
+ };
175
+ $forceUpdate: () => void;
176
+ $nextTick: nextTick;
177
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
178
+ } & Readonly<{
179
+ padding: boolean;
180
+ tag: string;
181
+ wrap: ContainerWrap;
182
+ fit: boolean;
183
+ flex: boolean;
184
+ inline: boolean;
185
+ direction: ContainerDirection;
186
+ justify: ContainerJustifyContent;
187
+ align: ContainerAlignItems;
188
+ alignContent: ContainerAlignContent;
189
+ grow: boolean;
190
+ shrink: boolean;
191
+ alignSelf: "auto" | ContainerAlignItems;
192
+ gap: boolean;
193
+ autoPointer: boolean;
194
+ }> & Omit<Readonly< ExtractPropTypes<{
195
+ tag: {
196
+ type: StringConstructor;
197
+ default: string;
198
+ };
199
+ fit: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ width: {
204
+ type: (StringConstructor | NumberConstructor)[];
205
+ };
206
+ height: {
207
+ type: (StringConstructor | NumberConstructor)[];
208
+ };
209
+ flex: {
210
+ type: BooleanConstructor;
211
+ default: boolean;
212
+ };
213
+ inline: {
214
+ type: BooleanConstructor;
215
+ };
216
+ direction: {
217
+ type: PropType<ContainerDirection>;
218
+ default: string;
219
+ };
220
+ wrap: {
221
+ type: PropType<ContainerWrap>;
222
+ default: string;
223
+ };
224
+ justify: {
225
+ type: PropType<ContainerJustifyContent>;
226
+ default: string;
227
+ };
228
+ align: {
229
+ type: PropType<ContainerAlignItems>;
230
+ default: string;
231
+ };
232
+ alignContent: {
233
+ type: PropType<ContainerAlignContent>;
234
+ default: string;
235
+ };
236
+ grow: {
237
+ type: BooleanConstructor;
238
+ default: boolean;
239
+ };
240
+ shrink: {
241
+ type: BooleanConstructor;
242
+ default: boolean;
243
+ };
244
+ alignSelf: {
245
+ type: PropType<"auto" | ContainerAlignItems>;
246
+ default: string;
247
+ };
248
+ overflow: {
249
+ type: PropType<"auto" | "hidden" | "visible">;
250
+ };
251
+ padding: {
252
+ type: BooleanConstructor;
253
+ default: boolean;
254
+ };
255
+ gap: {
256
+ type: BooleanConstructor;
257
+ };
258
+ autoPointer: {
259
+ type: BooleanConstructor;
260
+ };
261
+ }>> & Readonly<{}>, "tag" | "direction" | "$vtjEl" | "inline" | "fit" | "padding" | "flex" | "wrap" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer"> & ShallowUnwrapRef<{
262
+ $vtjEl: ComputedRef<any>;
263
+ }> & {} & ComponentCustomProperties & {} & {
264
+ $slots: {
265
+ default?(_: {}): any;
266
+ };
267
+ }) | null;
268
+ }, HTMLDivElement>;
16
269
  export default _default;
@@ -3,5 +3,8 @@ export interface Props {
3
3
  styleJson: Record<string, any>;
4
4
  setStyle: (name: string, value?: any) => void;
5
5
  }
6
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
7
+ container: HTMLDivElement;
8
+ inner: HTMLDivElement;
9
+ }, any>;
7
10
  export default _default;
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import { App } from 'vue';
2
- import { BlockSchema, NodeSchema, BlockModel, Service, PageFile, BlockFile } from '@vtj/core';
2
+ import { BlockSchema, NodeSchema, BlockModel, Service, PageFile, BlockFile, ProjectModel, PlatformType } from '@vtj/core';
3
3
  import { SimulatorEnv } from './simulator';
4
4
  import { Provider, Context } from '@vtj/renderer';
5
5
  import { Designer } from './designer';
@@ -7,6 +7,7 @@ export declare class Renderer {
7
7
  env: SimulatorEnv;
8
8
  service: Service;
9
9
  provider: Provider;
10
+ project: ProjectModel | null;
10
11
  designer: Designer | null;
11
12
  app: App | null;
12
13
  private dsl;
@@ -14,8 +15,10 @@ export declare class Renderer {
14
15
  private blockChange;
15
16
  context: Context | null;
16
17
  private file?;
17
- constructor(env: SimulatorEnv, service: Service, provider: Provider, designer?: Designer | null);
18
+ constructor(env: SimulatorEnv, service: Service, provider: Provider, project?: ProjectModel | null, designer?: Designer | null);
18
19
  private install;
20
+ createUniApp(platform: PlatformType, file: PageFile | BlockFile, renderer: any): App<any>;
21
+ createApp(platform: PlatformType, file: PageFile | BlockFile, renderer: any): App<any>;
19
22
  render(block: BlockModel, file?: PageFile | BlockFile | null): void;
20
23
  dispose(): void;
21
24
  updateChild(node: NodeSchema, parent: BlockSchema | NodeSchema): void;
@@ -1,5 +1,5 @@
1
1
  import { Ref, ShallowRef } from 'vue';
2
- import { Dependencie, Material, ApiSchema, MetaSchema, ProjectConfig, Base } from '@vtj/core';
2
+ import { Dependencie, Material, ApiSchema, MetaSchema, ProjectConfig, UniConfig, Base } from '@vtj/core';
3
3
  import { Renderer } from './renderer';
4
4
  import { Designer } from './designer';
5
5
  import { Engine } from './engine';
@@ -38,7 +38,9 @@ export declare class Simulator extends Base {
38
38
  rendered: Ref<symbol>;
39
39
  devtools: DevTools;
40
40
  constructor(options: SimulatorOptions);
41
- init(iframe: Ref<HTMLIFrameElement | undefined>, deps: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, meta: Ref<MetaSchema[]>, config: Ref<ProjectConfig>): void;
41
+ init(iframe: Ref<HTMLIFrameElement | undefined>, deps: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, meta: Ref<MetaSchema[]>, config: Ref<ProjectConfig>, uniConfig: Ref<UniConfig>): void;
42
+ private createGlobalCss;
43
+ private initUniFeatures;
42
44
  private setup;
43
45
  emitReady(libraryExports?: string[], materialExports?: string[], materialMapLibrary?: Record<string, string>, libraryLocaleMap?: Record<string, string>): Promise<void>;
44
46
  createEnv(libraryExports?: string[], materialMapLibrary?: Record<string, string>, materials?: Material[], libraryLocaleMap?: Record<string, string>): SimulatorEnv;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.9.28
5
+ * @version 0.9.30
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.9.28";
8
+ export declare const version = "0.9.30";