@vtj/designer 0.16.15 → 0.16.17
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/README.md +2 -2
- package/dist/Editor-Cvt7c1SM.js +4 -0
- package/dist/{index-CoL57uQw.js → index-D1sVGKz7.js} +6295 -5907
- package/dist/index.mjs +12 -11
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/types/components/hooks/useDesigner.d.ts +3 -0
- package/types/components/setters/image.d.ts +3 -3
- package/types/components/setters/index.d.ts +3 -3
- package/types/components/shared/binder.d.ts +11 -11
- package/types/components/shared/panel.d.ts +16 -16
- package/types/components/widgets/about/index.d.ts +6 -1
- package/types/components/widgets/actions/index.d.ts +32 -2
- package/types/components/widgets/actions/versioner/342/200/214.d.ts +17 -0
- package/types/components/widgets/ai/image-input.d.ts +3 -3
- package/types/components/widgets/ai/index.d.ts +12 -12
- package/types/components/widgets/ai/json-input.d.ts +11 -11
- package/types/components/widgets/apis/form.d.ts +22 -22
- package/types/components/widgets/apis/swagger.d.ts +6 -6
- package/types/components/widgets/designer/index.d.ts +4 -4
- package/types/components/widgets/devtools/index.d.ts +17 -17
- package/types/components/widgets/docs/index.d.ts +12 -12
- package/types/components/widgets/env/index.d.ts +6 -6
- package/types/components/widgets/i18n/index.d.ts +6 -6
- package/types/components/widgets/index.d.ts +91 -63
- package/types/components/widgets/market/index.d.ts +12 -12
- package/types/components/widgets/scripts/group.d.ts +23 -23
- package/types/components/widgets/style/spacing-input.d.ts +4 -4
- package/types/framework/designer.d.ts +2 -0
- package/types/framework/openapi.d.ts +6 -2
- package/types/framework/simulator.d.ts +1 -1
- package/types/utils.d.ts +1 -0
- package/types/version.d.ts +2 -2
- package/dist/Editor-BhLdvXh7.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties } from 'vue';
|
|
2
2
|
import { ContainerWrap, ContainerDirection, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '@vtj/ui';
|
|
3
3
|
import { OnCleanup } from '@vue/reactivity';
|
|
4
4
|
export interface Props {
|
|
@@ -256,9 +256,9 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
256
256
|
autoPointer: {
|
|
257
257
|
type: BooleanConstructor;
|
|
258
258
|
};
|
|
259
|
-
}>> & Readonly<{}>, "padding" | "tag" | "direction" | "$vtjEl" | "inline" | "fit" | "flex" | "wrap" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer"> &
|
|
260
|
-
$vtjEl:
|
|
261
|
-
}
|
|
259
|
+
}>> & Readonly<{}>, "padding" | "tag" | "direction" | "$vtjEl" | "inline" | "fit" | "flex" | "wrap" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer"> & {
|
|
260
|
+
$vtjEl: any;
|
|
261
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
262
262
|
$slots: {
|
|
263
263
|
default?(_: {}): any;
|
|
264
264
|
};
|
|
@@ -13,6 +13,7 @@ export interface DesignHelper {
|
|
|
13
13
|
rect: DOMRect;
|
|
14
14
|
type?: DropPosition;
|
|
15
15
|
path?: Array<NodeModel | BlockModel>;
|
|
16
|
+
indexes?: number[];
|
|
16
17
|
}
|
|
17
18
|
export declare class Designer {
|
|
18
19
|
engine: Engine;
|
|
@@ -46,6 +47,7 @@ export declare class Designer {
|
|
|
46
47
|
private getNodeByElement;
|
|
47
48
|
private getDropType;
|
|
48
49
|
private getNodePath;
|
|
50
|
+
private getNodePathIndex;
|
|
49
51
|
private setDslFrom;
|
|
50
52
|
private createNodeDsl;
|
|
51
53
|
private getElmenetByModel;
|
|
@@ -3,15 +3,18 @@ import { AITopic, AIChat } from './types';
|
|
|
3
3
|
export interface TemplateDto {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
+
code?: string;
|
|
6
7
|
label: string;
|
|
7
8
|
vip: boolean;
|
|
8
|
-
share
|
|
9
|
+
share?: boolean;
|
|
10
|
+
isShared?: boolean;
|
|
9
11
|
cover: string;
|
|
10
12
|
author: string;
|
|
11
13
|
userId: string;
|
|
12
14
|
category: string;
|
|
13
15
|
latest: string;
|
|
14
16
|
platform: string;
|
|
17
|
+
latestVersion?: any;
|
|
15
18
|
}
|
|
16
19
|
export interface DictOption {
|
|
17
20
|
label: string;
|
|
@@ -22,7 +25,8 @@ export interface PublishTemplateDto {
|
|
|
22
25
|
label: string;
|
|
23
26
|
category: string;
|
|
24
27
|
cover: Blob;
|
|
25
|
-
share
|
|
28
|
+
share?: boolean;
|
|
29
|
+
isShared?: boolean;
|
|
26
30
|
version: string;
|
|
27
31
|
platform: string;
|
|
28
32
|
latest?: string;
|
package/types/utils.d.ts
CHANGED
|
@@ -41,3 +41,4 @@ export declare function expressionValidate(str: JSExpression | JSFunction, self:
|
|
|
41
41
|
export declare function getClassProperties(obj: any): string[];
|
|
42
42
|
export declare function normalizedStyle(style?: Record<string, any>): Record<string, any>;
|
|
43
43
|
export declare function readJsonFile(file: File): Promise<any>;
|
|
44
|
+
export declare function upgradeVersion(type: 'major' | 'minor' | 'patch', version?: string): string;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.16.
|
|
5
|
+
* @version 0.16.16
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.16.
|
|
8
|
+
export declare const version = "0.16.16";
|
package/dist/Editor-BhLdvXh7.js
DELETED