@vtj/designer 0.16.12 → 0.16.13
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/dist/Editor-Ce_uPB1q.js +4 -0
- package/dist/{index-BcDCHfhg.js → index-Cm-7k5DS.js} +1397 -1391
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/types/components/hooks/useAI.d.ts +1 -1
- package/types/components/hooks/useOpenApi.d.ts +1 -1
- package/types/components/setters/image.d.ts +42 -267
- package/types/components/setters/index.d.ts +42 -266
- package/types/components/shared/binder.d.ts +56 -304
- package/types/components/shared/panel.d.ts +5 -13
- package/types/components/shared/viewer.d.ts +1231 -199
- package/types/components/widgets/ai/image-input.d.ts +42 -267
- package/types/components/widgets/ai/index.d.ts +4 -10
- package/types/components/widgets/ai/json-input.d.ts +120 -570
- package/types/components/widgets/apis/form.d.ts +32 -163
- package/types/components/widgets/apis/swagger.d.ts +2 -4
- package/types/components/widgets/designer/index.d.ts +2 -4
- package/types/components/widgets/devtools/index.d.ts +4 -10
- package/types/components/widgets/docs/index.d.ts +4 -10
- package/types/components/widgets/env/index.d.ts +2 -4
- package/types/components/widgets/i18n/index.d.ts +2 -4
- package/types/components/widgets/index.d.ts +16 -46
- package/types/components/widgets/market/index.d.ts +4 -10
- package/types/components/widgets/scripts/group.d.ts +38 -220
- package/types/components/widgets/style/spacing-input.d.ts +2 -4
- package/types/framework/openapi.d.ts +1 -1
- package/types/utils.d.ts +20 -16
- package/types/version.d.ts +2 -2
- package/dist/Editor-D7fdOY8E.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, nextTick } from 'vue';
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, nextTick } from 'vue';
|
|
2
2
|
import { ActionMenuItem, BaseSize, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, PanelBadge, IconParam, HeaderProps, ContainerProps } from '@vtj/ui';
|
|
3
3
|
import { OnCleanup } from '@vue/reactivity';
|
|
4
4
|
import { Props } from '../../shared/panel';
|
|
@@ -28,9 +28,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
28
28
|
readonly onRemove?: ((...args: any[]) => any) | undefined;
|
|
29
29
|
readonly onSave?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
31
|
-
$attrs:
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
};
|
|
31
|
+
$attrs: Attrs;
|
|
34
32
|
$refs: {
|
|
35
33
|
[x: string]: unknown;
|
|
36
34
|
} & {
|
|
@@ -211,9 +209,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
211
209
|
}>>> | null | undefined;
|
|
212
210
|
readonly shadow?: "hover" | "none" | "always" | undefined;
|
|
213
211
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "radius" | "fit" | "border" | "card">;
|
|
214
|
-
$attrs:
|
|
215
|
-
[x: string]: unknown;
|
|
216
|
-
};
|
|
212
|
+
$attrs: Attrs;
|
|
217
213
|
$refs: {
|
|
218
214
|
[x: string]: unknown;
|
|
219
215
|
} & {
|
|
@@ -256,9 +252,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
256
252
|
readonly height?: string | number | undefined;
|
|
257
253
|
readonly overflow?: "hidden" | "auto" | "visible" | undefined;
|
|
258
254
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
|
259
|
-
$attrs:
|
|
260
|
-
[x: string]: unknown;
|
|
261
|
-
};
|
|
255
|
+
$attrs: Attrs;
|
|
262
256
|
$refs: {
|
|
263
257
|
[x: string]: unknown;
|
|
264
258
|
} & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BlockModel } from '@vtj/core';
|
|
2
2
|
import { Context } from '@vtj/renderer';
|
|
3
|
-
import { ComponentInternalInstance, VNode, RendererNode, RendererElement, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase,
|
|
3
|
+
import { ComponentInternalInstance, VNode, RendererNode, RendererElement, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, Ref, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ExtractPropTypes, PropType, nextTick, CreateComponentPublicInstanceWithMixins, PublicProps, DefineComponent } from 'vue';
|
|
4
4
|
import { BuiltinFieldEditorType, BaseSize, FieldOption, FieldOptionsLoader, FieldEditorProps } from '@vtj/ui';
|
|
5
|
-
import { UseTooltipProps,
|
|
5
|
+
import { UseTooltipProps, FormItemProp, FormItemRule, FormItemValidateState, ComponentSize, FormItemProps, FormValidateCallback, FormValidationResult, ElTooltipProps } from 'element-plus';
|
|
6
6
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
7
7
|
import { OnCleanup } from '@vue/reactivity';
|
|
8
8
|
import { Props } from '../../editor/Editor';
|
|
@@ -71,37 +71,28 @@ declare function __VLS_template(): {
|
|
|
71
71
|
readonly onChange?: ((value: any, data?: any) => any) | undefined | undefined;
|
|
72
72
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined | undefined;
|
|
73
73
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "visible" | "hidden" | "modelValue" | "editor" | "tooltipMessage" | "tooltipPosition" | "inline" | "defaultValue">;
|
|
74
|
-
$attrs:
|
|
75
|
-
[x: string]: unknown;
|
|
76
|
-
};
|
|
74
|
+
$attrs: Attrs;
|
|
77
75
|
$refs: {
|
|
78
76
|
[x: string]: unknown;
|
|
79
77
|
} & {
|
|
80
78
|
itemRef: ({
|
|
81
79
|
$: ComponentInternalInstance;
|
|
82
80
|
$data: {};
|
|
83
|
-
$props:
|
|
84
|
-
required: boolean;
|
|
85
|
-
labelPosition: "left" | "right" | "top" | "";
|
|
86
|
-
inlineMessage: boolean;
|
|
87
|
-
showMessage: boolean;
|
|
88
|
-
}> & Omit<{
|
|
89
|
-
readonly labelPosition: "left" | "right" | "top" | "";
|
|
90
|
-
readonly showMessage: boolean;
|
|
91
|
-
readonly size?: ComponentSize | undefined;
|
|
92
|
-
readonly required?: boolean | undefined;
|
|
81
|
+
$props: {
|
|
93
82
|
readonly label?: string | undefined;
|
|
94
|
-
readonly error?: string | undefined;
|
|
95
83
|
readonly labelWidth?: string | number | undefined;
|
|
84
|
+
readonly labelPosition?: "left" | "right" | "top" | "" | undefined;
|
|
96
85
|
readonly prop?: FormItemProp | undefined;
|
|
86
|
+
readonly required?: boolean | undefined;
|
|
97
87
|
readonly rules?: Arrayable<FormItemRule> | undefined;
|
|
88
|
+
readonly error?: string | undefined;
|
|
98
89
|
readonly validateStatus?: FormItemValidateState | undefined;
|
|
99
90
|
readonly for?: string | undefined;
|
|
100
91
|
readonly inlineMessage?: boolean | undefined;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
92
|
+
readonly showMessage?: boolean | undefined;
|
|
93
|
+
readonly size?: ComponentSize | undefined;
|
|
94
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
95
|
+
$attrs: Attrs;
|
|
105
96
|
$refs: {
|
|
106
97
|
[x: string]: unknown;
|
|
107
98
|
};
|
|
@@ -113,56 +104,15 @@ declare function __VLS_template(): {
|
|
|
113
104
|
$host: Element | null;
|
|
114
105
|
$emit: (event: string, ...args: any[]) => void;
|
|
115
106
|
$el: any;
|
|
116
|
-
$options: ComponentOptionsBase<Readonly<
|
|
117
|
-
size:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
required: {
|
|
121
|
-
type: PropType<boolean>;
|
|
122
|
-
default: undefined;
|
|
123
|
-
};
|
|
124
|
-
label: {
|
|
125
|
-
type: PropType<string>;
|
|
126
|
-
};
|
|
127
|
-
error: {
|
|
128
|
-
type: PropType<string>;
|
|
129
|
-
};
|
|
130
|
-
labelWidth: {
|
|
131
|
-
type: PropType<string | number>;
|
|
132
|
-
};
|
|
133
|
-
labelPosition: {
|
|
134
|
-
type: PropType<"" | "left" | "right" | "top">;
|
|
135
|
-
default: string;
|
|
136
|
-
};
|
|
137
|
-
prop: {
|
|
138
|
-
type: PropType<FormItemProp>;
|
|
139
|
-
};
|
|
140
|
-
rules: {
|
|
141
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
142
|
-
};
|
|
143
|
-
validateStatus: {
|
|
144
|
-
type: PropType<"" | "success" | "error" | "validating">;
|
|
145
|
-
};
|
|
146
|
-
for: {
|
|
147
|
-
type: PropType<string>;
|
|
148
|
-
};
|
|
149
|
-
inlineMessage: {
|
|
150
|
-
type: PropType<boolean>;
|
|
151
|
-
default: undefined;
|
|
152
|
-
};
|
|
153
|
-
showMessage: {
|
|
154
|
-
type: PropType<boolean>;
|
|
155
|
-
default: boolean;
|
|
156
|
-
};
|
|
157
|
-
}>>, {
|
|
158
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
159
|
-
validateMessage: Ref<string>;
|
|
160
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
107
|
+
$options: ComponentOptionsBase<Readonly< FormItemProps> & Readonly<{}>, {
|
|
108
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
109
|
+
validateMessage: Ref<string, string>;
|
|
110
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
161
111
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
162
112
|
clearValidate: () => void;
|
|
163
113
|
resetField: () => void;
|
|
164
114
|
setInitialValue: (value: any) => void;
|
|
165
|
-
},
|
|
115
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
166
116
|
required: boolean;
|
|
167
117
|
labelPosition: "left" | "right" | "top" | "";
|
|
168
118
|
inlineMessage: boolean;
|
|
@@ -192,51 +142,10 @@ declare function __VLS_template(): {
|
|
|
192
142
|
labelPosition: "left" | "right" | "top" | "";
|
|
193
143
|
inlineMessage: boolean;
|
|
194
144
|
showMessage: boolean;
|
|
195
|
-
}> & Omit<Readonly<
|
|
196
|
-
size:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
required: {
|
|
200
|
-
type: PropType<boolean>;
|
|
201
|
-
default: undefined;
|
|
202
|
-
};
|
|
203
|
-
label: {
|
|
204
|
-
type: PropType<string>;
|
|
205
|
-
};
|
|
206
|
-
error: {
|
|
207
|
-
type: PropType<string>;
|
|
208
|
-
};
|
|
209
|
-
labelWidth: {
|
|
210
|
-
type: PropType<string | number>;
|
|
211
|
-
};
|
|
212
|
-
labelPosition: {
|
|
213
|
-
type: PropType<"" | "left" | "right" | "top">;
|
|
214
|
-
default: string;
|
|
215
|
-
};
|
|
216
|
-
prop: {
|
|
217
|
-
type: PropType<FormItemProp>;
|
|
218
|
-
};
|
|
219
|
-
rules: {
|
|
220
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
221
|
-
};
|
|
222
|
-
validateStatus: {
|
|
223
|
-
type: PropType<"" | "success" | "error" | "validating">;
|
|
224
|
-
};
|
|
225
|
-
for: {
|
|
226
|
-
type: PropType<string>;
|
|
227
|
-
};
|
|
228
|
-
inlineMessage: {
|
|
229
|
-
type: PropType<boolean>;
|
|
230
|
-
default: undefined;
|
|
231
|
-
};
|
|
232
|
-
showMessage: {
|
|
233
|
-
type: PropType<boolean>;
|
|
234
|
-
default: boolean;
|
|
235
|
-
};
|
|
236
|
-
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
237
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
238
|
-
validateMessage: Ref<string>;
|
|
239
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
145
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
146
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
147
|
+
validateMessage: Ref<string, string>;
|
|
148
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
240
149
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
241
150
|
clearValidate: () => void;
|
|
242
151
|
resetField: () => void;
|
|
@@ -574,37 +483,28 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
574
483
|
readonly onChange?: ((value: any, data?: any) => any) | undefined | undefined;
|
|
575
484
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined | undefined;
|
|
576
485
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "visible" | "hidden" | "modelValue" | "editor" | "tooltipMessage" | "tooltipPosition" | "inline" | "defaultValue">;
|
|
577
|
-
$attrs:
|
|
578
|
-
[x: string]: unknown;
|
|
579
|
-
};
|
|
486
|
+
$attrs: Attrs;
|
|
580
487
|
$refs: {
|
|
581
488
|
[x: string]: unknown;
|
|
582
489
|
} & {
|
|
583
490
|
itemRef: ({
|
|
584
491
|
$: ComponentInternalInstance;
|
|
585
492
|
$data: {};
|
|
586
|
-
$props:
|
|
587
|
-
required: boolean;
|
|
588
|
-
labelPosition: "left" | "right" | "top" | "";
|
|
589
|
-
inlineMessage: boolean;
|
|
590
|
-
showMessage: boolean;
|
|
591
|
-
}> & Omit<{
|
|
592
|
-
readonly labelPosition: "left" | "right" | "top" | "";
|
|
593
|
-
readonly showMessage: boolean;
|
|
594
|
-
readonly size?: ComponentSize | undefined;
|
|
595
|
-
readonly required?: boolean | undefined;
|
|
493
|
+
$props: {
|
|
596
494
|
readonly label?: string | undefined;
|
|
597
|
-
readonly error?: string | undefined;
|
|
598
495
|
readonly labelWidth?: string | number | undefined;
|
|
496
|
+
readonly labelPosition?: "left" | "right" | "top" | "" | undefined;
|
|
599
497
|
readonly prop?: FormItemProp | undefined;
|
|
498
|
+
readonly required?: boolean | undefined;
|
|
600
499
|
readonly rules?: Arrayable<FormItemRule> | undefined;
|
|
500
|
+
readonly error?: string | undefined;
|
|
601
501
|
readonly validateStatus?: FormItemValidateState | undefined;
|
|
602
502
|
readonly for?: string | undefined;
|
|
603
503
|
readonly inlineMessage?: boolean | undefined;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
504
|
+
readonly showMessage?: boolean | undefined;
|
|
505
|
+
readonly size?: ComponentSize | undefined;
|
|
506
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
507
|
+
$attrs: Attrs;
|
|
608
508
|
$refs: {
|
|
609
509
|
[x: string]: unknown;
|
|
610
510
|
};
|
|
@@ -616,56 +516,15 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
616
516
|
$host: Element | null;
|
|
617
517
|
$emit: (event: string, ...args: any[]) => void;
|
|
618
518
|
$el: any;
|
|
619
|
-
$options: ComponentOptionsBase<Readonly<
|
|
620
|
-
size:
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
required: {
|
|
624
|
-
type: PropType<boolean>;
|
|
625
|
-
default: undefined;
|
|
626
|
-
};
|
|
627
|
-
label: {
|
|
628
|
-
type: PropType<string>;
|
|
629
|
-
};
|
|
630
|
-
error: {
|
|
631
|
-
type: PropType<string>;
|
|
632
|
-
};
|
|
633
|
-
labelWidth: {
|
|
634
|
-
type: PropType<string | number>;
|
|
635
|
-
};
|
|
636
|
-
labelPosition: {
|
|
637
|
-
type: PropType<"" | "left" | "right" | "top">;
|
|
638
|
-
default: string;
|
|
639
|
-
};
|
|
640
|
-
prop: {
|
|
641
|
-
type: PropType<FormItemProp>;
|
|
642
|
-
};
|
|
643
|
-
rules: {
|
|
644
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
645
|
-
};
|
|
646
|
-
validateStatus: {
|
|
647
|
-
type: PropType<"" | "success" | "error" | "validating">;
|
|
648
|
-
};
|
|
649
|
-
for: {
|
|
650
|
-
type: PropType<string>;
|
|
651
|
-
};
|
|
652
|
-
inlineMessage: {
|
|
653
|
-
type: PropType<boolean>;
|
|
654
|
-
default: undefined;
|
|
655
|
-
};
|
|
656
|
-
showMessage: {
|
|
657
|
-
type: PropType<boolean>;
|
|
658
|
-
default: boolean;
|
|
659
|
-
};
|
|
660
|
-
}>>, {
|
|
661
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
662
|
-
validateMessage: Ref<string>;
|
|
663
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
519
|
+
$options: ComponentOptionsBase<Readonly< FormItemProps> & Readonly<{}>, {
|
|
520
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
521
|
+
validateMessage: Ref<string, string>;
|
|
522
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
664
523
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
665
524
|
clearValidate: () => void;
|
|
666
525
|
resetField: () => void;
|
|
667
526
|
setInitialValue: (value: any) => void;
|
|
668
|
-
},
|
|
527
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
669
528
|
required: boolean;
|
|
670
529
|
labelPosition: "left" | "right" | "top" | "";
|
|
671
530
|
inlineMessage: boolean;
|
|
@@ -695,51 +554,10 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
695
554
|
labelPosition: "left" | "right" | "top" | "";
|
|
696
555
|
inlineMessage: boolean;
|
|
697
556
|
showMessage: boolean;
|
|
698
|
-
}> & Omit<Readonly<
|
|
699
|
-
size:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
required: {
|
|
703
|
-
type: PropType<boolean>;
|
|
704
|
-
default: undefined;
|
|
705
|
-
};
|
|
706
|
-
label: {
|
|
707
|
-
type: PropType<string>;
|
|
708
|
-
};
|
|
709
|
-
error: {
|
|
710
|
-
type: PropType<string>;
|
|
711
|
-
};
|
|
712
|
-
labelWidth: {
|
|
713
|
-
type: PropType<string | number>;
|
|
714
|
-
};
|
|
715
|
-
labelPosition: {
|
|
716
|
-
type: PropType<"" | "left" | "right" | "top">;
|
|
717
|
-
default: string;
|
|
718
|
-
};
|
|
719
|
-
prop: {
|
|
720
|
-
type: PropType<FormItemProp>;
|
|
721
|
-
};
|
|
722
|
-
rules: {
|
|
723
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
724
|
-
};
|
|
725
|
-
validateStatus: {
|
|
726
|
-
type: PropType<"" | "success" | "error" | "validating">;
|
|
727
|
-
};
|
|
728
|
-
for: {
|
|
729
|
-
type: PropType<string>;
|
|
730
|
-
};
|
|
731
|
-
inlineMessage: {
|
|
732
|
-
type: PropType<boolean>;
|
|
733
|
-
default: undefined;
|
|
734
|
-
};
|
|
735
|
-
showMessage: {
|
|
736
|
-
type: PropType<boolean>;
|
|
737
|
-
default: boolean;
|
|
738
|
-
};
|
|
739
|
-
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
740
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
741
|
-
validateMessage: Ref<string>;
|
|
742
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
557
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
558
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
559
|
+
validateMessage: Ref<string, string>;
|
|
560
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
743
561
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
744
562
|
clearValidate: () => void;
|
|
745
563
|
resetField: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, 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 {
|
|
@@ -54,9 +54,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
54
54
|
readonly width?: string | number | undefined;
|
|
55
55
|
readonly overflow?: "visible" | "hidden" | "auto" | undefined;
|
|
56
56
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "direction" | "inline" | "fit" | "flex" | "wrap" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
|
57
|
-
$attrs:
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
};
|
|
57
|
+
$attrs: Attrs;
|
|
60
58
|
$refs: {
|
|
61
59
|
[x: string]: unknown;
|
|
62
60
|
} & {
|
|
@@ -177,7 +177,7 @@ export declare abstract class OpenApi {
|
|
|
177
177
|
/**
|
|
178
178
|
* 获取热门话题
|
|
179
179
|
*/
|
|
180
|
-
abstract getHotTopics?: () => Promise<ResponseWrapper<AITopic[]>>;
|
|
180
|
+
abstract getHotTopics?: (platform?: string) => Promise<ResponseWrapper<AITopic[]>>;
|
|
181
181
|
/**
|
|
182
182
|
* AI Completions
|
|
183
183
|
*/
|
package/types/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSExpression, JSFunction } from '@vtj/core';
|
|
2
2
|
import { LoadingOptions, MessageBoxData, NotificationHandle, LoadingParentElement, MessageHandler } from 'element-plus';
|
|
3
|
-
import { VNode, ComponentPublicInstance, ComponentOptionsBase, Ref, RendererNode, RendererElement } from 'vue';
|
|
3
|
+
import { VNode, ComponentPublicInstance, ComponentOptionsBase, ComponentProvideOptions, Ref, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
export declare function alert(message: string, options?: any): Promise< MessageBoxData>;
|
|
5
5
|
export declare function notify(message: string, title?: string): NotificationHandle;
|
|
6
6
|
export declare function loading(options?: LoadingOptions): {
|
|
@@ -8,27 +8,31 @@ export declare function loading(options?: LoadingOptions): {
|
|
|
8
8
|
removeElLoadingChild: () => void;
|
|
9
9
|
close: () => void;
|
|
10
10
|
handleAfterLeave: () => void;
|
|
11
|
-
vm: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
11
|
+
vm: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
12
12
|
$el: HTMLElement;
|
|
13
|
-
originalPosition: Ref<string>;
|
|
14
|
-
originalOverflow: Ref<string>;
|
|
15
|
-
visible: Ref<boolean>;
|
|
16
|
-
parent: Ref<LoadingParentElement>;
|
|
17
|
-
background: Ref<string>;
|
|
18
|
-
svg: Ref<string>;
|
|
19
|
-
svgViewBox: Ref<string>;
|
|
20
|
-
spinner: Ref<string | boolean>;
|
|
13
|
+
originalPosition: Ref<string, string>;
|
|
14
|
+
originalOverflow: Ref<string, string>;
|
|
15
|
+
visible: Ref<boolean, boolean>;
|
|
16
|
+
parent: Ref<LoadingParentElement, LoadingParentElement>;
|
|
17
|
+
background: Ref<string, string>;
|
|
18
|
+
svg: Ref<string, string>;
|
|
19
|
+
svgViewBox: Ref<string, string>;
|
|
20
|
+
spinner: Ref<string | boolean, string | boolean>;
|
|
21
21
|
text: Ref<string | VNode<RendererNode, RendererElement, {
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
}> | VNode<RendererNode, RendererElement, {
|
|
24
24
|
[key: string]: any;
|
|
25
|
+
}>[], string | VNode<RendererNode, RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}> | VNode<RendererNode, RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
25
29
|
}>[]>;
|
|
26
|
-
fullscreen: Ref<boolean>;
|
|
27
|
-
lock: Ref<boolean>;
|
|
28
|
-
customClass: Ref<string>;
|
|
29
|
-
target: Ref<HTMLElement>;
|
|
30
|
-
beforeClose?: Ref<(() => boolean) | undefined> | undefined;
|
|
31
|
-
closed?: Ref<(() => void) | undefined> | undefined;
|
|
30
|
+
fullscreen: Ref<boolean, boolean>;
|
|
31
|
+
lock: Ref<boolean, boolean>;
|
|
32
|
+
customClass: Ref<string, string>;
|
|
33
|
+
target: Ref<HTMLElement, HTMLElement>;
|
|
34
|
+
beforeClose?: Ref<(() => boolean) | undefined, (() => boolean) | undefined> | undefined;
|
|
35
|
+
closed?: Ref<(() => void) | undefined, (() => void) | undefined> | undefined;
|
|
32
36
|
};
|
|
33
37
|
export declare function confirm(message: string, options?: any): Promise<boolean | MessageBoxData>;
|
|
34
38
|
export declare function message(message: string, type?: 'success' | 'warning'): MessageHandler;
|
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.12
|
|
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.12";
|
package/dist/Editor-D7fdOY8E.js
DELETED