@tmagic/editor 1.5.22 → 1.5.24
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/style.css +2 -9
- package/dist/tmagic-editor.js +3661 -1727
- package/dist/tmagic-editor.umd.cjs +3654 -1720
- package/package.json +10 -10
- package/src/Editor.vue +5 -0
- package/src/fields/DataSourceFields.vue +1 -1
- package/src/fields/DataSourceMethods.vue +1 -1
- package/src/hooks/use-filter.ts +6 -4
- package/src/hooks/use-stage.ts +1 -0
- package/src/initService.ts +65 -11
- package/src/layouts/page-bar/PageBarScrollContainer.vue +2 -1
- package/src/layouts/props-panel/FormPanel.vue +6 -1
- package/src/layouts/props-panel/PropsPanel.vue +6 -0
- package/src/layouts/workspace/viewer/Stage.vue +4 -29
- package/src/layouts/workspace/viewer/StageOverlay.vue +25 -6
- package/src/services/BaseService.ts +17 -8
- package/src/services/keybinding.ts +12 -0
- package/src/services/stageOverlay.ts +1 -1
- package/src/theme/stage.scss +6 -11
- package/src/type.ts +1 -0
- package/src/utils/props.ts +15 -1
- package/types/index.d.ts +62 -142
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, ComputedRef, Ref, ShallowRef, App } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { DesignPluginOptions } from '@tmagic/design';
|
|
3
3
|
export * from '@tmagic/design';
|
|
4
4
|
export { default as designPlugin } from '@tmagic/design';
|
|
5
5
|
import { TableColumnConfig, FormConfig, ChangeRecord as ChangeRecord$1, TabPaneConfig, CascaderOption, FormState, FieldProps, CodeSelectConfig, ContainerChangeEventData as ContainerChangeEventData$1, CodeSelectColConfig, DataSourceFieldsConfig, DataSourceMocksConfig, DataSourceMethodsConfig, DataSourceInputConfig, DataSourceSelect, DataSourceMethodSelectConfig, DataSourceFieldSelectConfig, EventSelectConfig, KeyValueConfig, FormValue, PageFragmentSelectConfig, DisplayCondsConfig, CondOpSelectConfig, FormInstallOptions } from '@tmagic/form';
|
|
@@ -27,7 +27,6 @@ import gesto__default, { OnDrag } from 'gesto';
|
|
|
27
27
|
export { OnDrag } from 'gesto';
|
|
28
28
|
import * as _vue_runtime_core from '@vue/runtime-core';
|
|
29
29
|
import * as _tmagic_form_schema from '@tmagic/form-schema';
|
|
30
|
-
import { Close } from '@element-plus/icons-vue';
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
32
|
* 提供两种方式对Class进行扩展
|
|
@@ -90,6 +89,7 @@ declare class export_default extends EventEmitter {
|
|
|
90
89
|
*/
|
|
91
90
|
use(options: Record<string, Function>): void;
|
|
92
91
|
usePlugin(options: Record<string, Function>): void;
|
|
92
|
+
removePlugin(options: Record<string, Function>): void;
|
|
93
93
|
removeAllPlugins(): void;
|
|
94
94
|
private doTask;
|
|
95
95
|
}
|
|
@@ -932,6 +932,7 @@ interface StageOptions {
|
|
|
932
932
|
renderType?: RenderType;
|
|
933
933
|
guidesOptions?: Partial<GuidesOptions>;
|
|
934
934
|
disabledMultiSelect?: boolean;
|
|
935
|
+
disabledRule?: boolean;
|
|
935
936
|
zoom?: number;
|
|
936
937
|
}
|
|
937
938
|
interface StoreState {
|
|
@@ -1831,6 +1832,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
1831
1832
|
readonly extendState?: ((_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
1832
1833
|
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
1833
1834
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
1835
|
+
readonly onUnmounted?: (() => any) | undefined;
|
|
1834
1836
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
1835
1837
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
1836
1838
|
} & _vue_runtime_core.VNodeProps & _vue_runtime_core.AllowedComponentProps & _vue_runtime_core.ComponentCustomProps;
|
|
@@ -1846,7 +1848,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
1846
1848
|
$root: _vue_runtime_core.ComponentPublicInstance | null;
|
|
1847
1849
|
$parent: _vue_runtime_core.ComponentPublicInstance | null;
|
|
1848
1850
|
$host: Element | null;
|
|
1849
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
1851
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
1850
1852
|
$el: any;
|
|
1851
1853
|
$options: _vue_runtime_core.ComponentOptionsBase<Readonly<{
|
|
1852
1854
|
config: _tmagic_form_schema.FormConfig;
|
|
@@ -1859,6 +1861,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
1859
1861
|
}> & Readonly<{
|
|
1860
1862
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
1861
1863
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
1864
|
+
onUnmounted?: (() => any) | undefined;
|
|
1862
1865
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
1863
1866
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
1864
1867
|
}>, {
|
|
@@ -1970,6 +1973,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
1970
1973
|
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
1971
1974
|
submit: (values: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
1972
1975
|
mounted: (internalInstance: any) => any;
|
|
1976
|
+
unmounted: () => any;
|
|
1973
1977
|
"submit-error": (e: any) => any;
|
|
1974
1978
|
"form-error": (e: any) => any;
|
|
1975
1979
|
}, string, {}, {}, string, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, _vue_runtime_core.ComponentProvideOptions> & {
|
|
@@ -2003,6 +2007,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
2003
2007
|
}> & Readonly<{
|
|
2004
2008
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
2005
2009
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2010
|
+
onUnmounted?: (() => any) | undefined;
|
|
2006
2011
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2007
2012
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
2008
2013
|
}>, "submit" | "configForm"> & _vue_reactivity.ShallowUnwrapRef<{
|
|
@@ -2116,6 +2121,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
2116
2121
|
'props-form-panel-header'(_props: {}): any;
|
|
2117
2122
|
};
|
|
2118
2123
|
}) => any;
|
|
2124
|
+
"props-panel-unmounted": () => any;
|
|
2119
2125
|
"props-form-error": (e: any) => any;
|
|
2120
2126
|
"props-submit-error": (e: any) => any;
|
|
2121
2127
|
}, string, _vue_runtime_core.PublicProps, Readonly<EditorProps> & Readonly<{
|
|
@@ -2133,6 +2139,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
2133
2139
|
readonly extendState?: ((_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
2134
2140
|
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
2135
2141
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2142
|
+
readonly onUnmounted?: (() => any) | undefined;
|
|
2136
2143
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2137
2144
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
2138
2145
|
} & _vue_runtime_core.VNodeProps & _vue_runtime_core.AllowedComponentProps & _vue_runtime_core.ComponentCustomProps;
|
|
@@ -2148,7 +2155,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
2148
2155
|
$root: _vue_runtime_core.ComponentPublicInstance | null;
|
|
2149
2156
|
$parent: _vue_runtime_core.ComponentPublicInstance | null;
|
|
2150
2157
|
$host: Element | null;
|
|
2151
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
2158
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
2152
2159
|
$el: any;
|
|
2153
2160
|
$options: _vue_runtime_core.ComponentOptionsBase<Readonly<{
|
|
2154
2161
|
config: _tmagic_form_schema.FormConfig;
|
|
@@ -2161,6 +2168,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
2161
2168
|
}> & Readonly<{
|
|
2162
2169
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
2163
2170
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2171
|
+
onUnmounted?: (() => any) | undefined;
|
|
2164
2172
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2165
2173
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
2166
2174
|
}>, {
|
|
@@ -2272,6 +2280,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
2272
2280
|
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
2273
2281
|
submit: (values: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
2274
2282
|
mounted: (internalInstance: any) => any;
|
|
2283
|
+
unmounted: () => any;
|
|
2275
2284
|
"submit-error": (e: any) => any;
|
|
2276
2285
|
"form-error": (e: any) => any;
|
|
2277
2286
|
}, string, {}, {}, string, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, _vue_runtime_core.ComponentProvideOptions> & {
|
|
@@ -2305,6 +2314,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
2305
2314
|
}> & Readonly<{
|
|
2306
2315
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
2307
2316
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2317
|
+
onUnmounted?: (() => any) | undefined;
|
|
2308
2318
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2309
2319
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
2310
2320
|
}>, "submit" | "configForm"> & _vue_reactivity.ShallowUnwrapRef<{
|
|
@@ -2418,6 +2428,7 @@ declare const __VLS_component$c: _vue_runtime_core.DefineComponent<EditorProps,
|
|
|
2418
2428
|
'props-form-panel-header'(_props: {}): any;
|
|
2419
2429
|
};
|
|
2420
2430
|
}) => any) | undefined;
|
|
2431
|
+
"onProps-panel-unmounted"?: (() => any) | undefined;
|
|
2421
2432
|
"onProps-form-error"?: ((e: any) => any) | undefined;
|
|
2422
2433
|
"onProps-submit-error"?: ((e: any) => any) | undefined;
|
|
2423
2434
|
}>, {
|
|
@@ -2734,6 +2745,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
2734
2745
|
readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
2735
2746
|
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
2736
2747
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2748
|
+
readonly onUnmounted?: (() => any) | undefined;
|
|
2737
2749
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2738
2750
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
2739
2751
|
} & _vue_runtime_core.VNodeProps & _vue_runtime_core.AllowedComponentProps & _vue_runtime_core.ComponentCustomProps;
|
|
@@ -2749,7 +2761,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
2749
2761
|
$root: _vue_runtime_core.ComponentPublicInstance | null;
|
|
2750
2762
|
$parent: _vue_runtime_core.ComponentPublicInstance | null;
|
|
2751
2763
|
$host: Element | null;
|
|
2752
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
2764
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
2753
2765
|
$el: any;
|
|
2754
2766
|
$options: _vue_runtime_core.ComponentOptionsBase<Readonly<{
|
|
2755
2767
|
config: _tmagic_form_schema.FormConfig;
|
|
@@ -2762,6 +2774,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
2762
2774
|
}> & Readonly<{
|
|
2763
2775
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
2764
2776
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2777
|
+
onUnmounted?: (() => any) | undefined;
|
|
2765
2778
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2766
2779
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
2767
2780
|
}>, {
|
|
@@ -2873,6 +2886,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
2873
2886
|
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
2874
2887
|
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
2875
2888
|
mounted: (internalInstance: any) => any;
|
|
2889
|
+
unmounted: () => any;
|
|
2876
2890
|
"submit-error": (e: any) => any;
|
|
2877
2891
|
"form-error": (e: any) => any;
|
|
2878
2892
|
}, string, {}, {}, string, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, _vue_runtime_core.ComponentProvideOptions> & {
|
|
@@ -2906,6 +2920,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
2906
2920
|
}> & Readonly<{
|
|
2907
2921
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
2908
2922
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2923
|
+
onUnmounted?: (() => any) | undefined;
|
|
2909
2924
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2910
2925
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
2911
2926
|
}>, "submit" | "configForm"> & _vue_reactivity.ShallowUnwrapRef<{
|
|
@@ -3019,6 +3034,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
3019
3034
|
'props-form-panel-header'(_props: {}): any;
|
|
3020
3035
|
};
|
|
3021
3036
|
}) => any;
|
|
3037
|
+
unmounted: () => any;
|
|
3022
3038
|
"submit-error": (e: any) => any;
|
|
3023
3039
|
"form-error": (e: any) => any;
|
|
3024
3040
|
}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$d> & Readonly<{
|
|
@@ -3035,6 +3051,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
3035
3051
|
readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
3036
3052
|
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
3037
3053
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3054
|
+
readonly onUnmounted?: (() => any) | undefined;
|
|
3038
3055
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
3039
3056
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
3040
3057
|
} & _vue_runtime_core.VNodeProps & _vue_runtime_core.AllowedComponentProps & _vue_runtime_core.ComponentCustomProps;
|
|
@@ -3050,7 +3067,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
3050
3067
|
$root: _vue_runtime_core.ComponentPublicInstance | null;
|
|
3051
3068
|
$parent: _vue_runtime_core.ComponentPublicInstance | null;
|
|
3052
3069
|
$host: Element | null;
|
|
3053
|
-
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
3070
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
3054
3071
|
$el: any;
|
|
3055
3072
|
$options: _vue_runtime_core.ComponentOptionsBase<Readonly<{
|
|
3056
3073
|
config: _tmagic_form_schema.FormConfig;
|
|
@@ -3063,6 +3080,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
3063
3080
|
}> & Readonly<{
|
|
3064
3081
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
3065
3082
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3083
|
+
onUnmounted?: (() => any) | undefined;
|
|
3066
3084
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
3067
3085
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
3068
3086
|
}>, {
|
|
@@ -3174,6 +3192,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
3174
3192
|
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3175
3193
|
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
3176
3194
|
mounted: (internalInstance: any) => any;
|
|
3195
|
+
unmounted: () => any;
|
|
3177
3196
|
"submit-error": (e: any) => any;
|
|
3178
3197
|
"form-error": (e: any) => any;
|
|
3179
3198
|
}, string, {}, {}, string, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, _vue_runtime_core.ComponentProvideOptions> & {
|
|
@@ -3207,6 +3226,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
3207
3226
|
}> & Readonly<{
|
|
3208
3227
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
3209
3228
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3229
|
+
onUnmounted?: (() => any) | undefined;
|
|
3210
3230
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
3211
3231
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
3212
3232
|
}>, "submit" | "configForm"> & _vue_reactivity.ShallowUnwrapRef<{
|
|
@@ -3320,6 +3340,7 @@ declare const __VLS_component$7: _vue_runtime_core.DefineComponent<__VLS_Props$d
|
|
|
3320
3340
|
'props-form-panel-header'(_props: {}): any;
|
|
3321
3341
|
};
|
|
3322
3342
|
}) => any) | undefined;
|
|
3343
|
+
onUnmounted?: (() => any) | undefined;
|
|
3323
3344
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
3324
3345
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
3325
3346
|
}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
|
|
@@ -3452,11 +3473,13 @@ declare const __VLS_component$6: _vue_runtime_core.DefineComponent<__VLS_Props$c
|
|
|
3452
3473
|
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3453
3474
|
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
3454
3475
|
mounted: (internalInstance: any) => any;
|
|
3476
|
+
unmounted: () => any;
|
|
3455
3477
|
"submit-error": (e: any) => any;
|
|
3456
3478
|
"form-error": (e: any) => any;
|
|
3457
3479
|
}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$c> & Readonly<{
|
|
3458
3480
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
3459
3481
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3482
|
+
onUnmounted?: (() => any) | undefined;
|
|
3460
3483
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
3461
3484
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
3462
3485
|
}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
|
|
@@ -3483,44 +3506,10 @@ type __VLS_Props$a = {
|
|
|
3483
3506
|
active?: string | number;
|
|
3484
3507
|
autoHide?: boolean;
|
|
3485
3508
|
};
|
|
3486
|
-
declare
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
left: string;
|
|
3491
|
-
zIndex: number;
|
|
3492
|
-
}>;
|
|
3493
|
-
declare const hide: () => void;
|
|
3494
|
-
declare const clickHandler: (event: MouseEvent) => void;
|
|
3495
|
-
declare const showSubMenu: (item: MenuButton | MenuComponent, index: number) => void;
|
|
3496
|
-
declare const mouseenterHandler: () => void;
|
|
3497
|
-
declare const __VLS_ctx$3: InstanceType<__VLS_PickNotAny<typeof __VLS_self$3, new () => {}>>;
|
|
3498
|
-
declare var __VLS_5$1: {};
|
|
3499
|
-
type __VLS_Slots$5 = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx$3.$slots> & {
|
|
3500
|
-
title?: (props: typeof __VLS_5$1) => any;
|
|
3501
|
-
}>;
|
|
3502
|
-
declare const __VLS_self$3: _vue_runtime_core.DefineComponent<__VLS_Props$a, {
|
|
3503
|
-
ToolButton: typeof _default$d;
|
|
3504
|
-
visible: typeof visible$1;
|
|
3505
|
-
subMenuData: typeof subMenuData;
|
|
3506
|
-
menuStyle: typeof menuStyle;
|
|
3507
|
-
hide: typeof hide;
|
|
3508
|
-
clickHandler: typeof clickHandler;
|
|
3509
|
-
showSubMenu: typeof showSubMenu;
|
|
3510
|
-
mouseenterHandler: typeof mouseenterHandler;
|
|
3511
|
-
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3512
|
-
mouseenter: () => any;
|
|
3513
|
-
show: () => any;
|
|
3514
|
-
hide: () => any;
|
|
3515
|
-
}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$a> & Readonly<{
|
|
3516
|
-
onMouseenter?: (() => any) | undefined;
|
|
3517
|
-
onShow?: (() => any) | undefined;
|
|
3518
|
-
onHide?: (() => any) | undefined;
|
|
3519
|
-
}>, {
|
|
3520
|
-
menuData: (MenuButton | MenuComponent)[];
|
|
3521
|
-
isSubMenu: boolean;
|
|
3522
|
-
autoHide: boolean;
|
|
3523
|
-
}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
|
|
3509
|
+
declare var __VLS_6$1: {};
|
|
3510
|
+
type __VLS_Slots$5 = {} & {
|
|
3511
|
+
title?: (props: typeof __VLS_6$1) => any;
|
|
3512
|
+
};
|
|
3524
3513
|
declare const __VLS_component$5: _vue_runtime_core.DefineComponent<__VLS_Props$a, {
|
|
3525
3514
|
menu: Readonly<_vue_reactivity.ShallowRef<HTMLDivElement | null>>;
|
|
3526
3515
|
menuPosition: Ref<{
|
|
@@ -3569,32 +3558,6 @@ type __VLS_Props$9 = {
|
|
|
3569
3558
|
};
|
|
3570
3559
|
declare const _default$b: _vue_runtime_core.DefineComponent<__VLS_Props$9, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$9> & Readonly<{}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
|
|
3571
3560
|
|
|
3572
|
-
declare const isDragging: _vue_reactivity.Ref<boolean, boolean>;
|
|
3573
|
-
declare const __VLS_ctx$2: InstanceType<__VLS_PickNotAny<typeof __VLS_self$2, new () => {}>>;
|
|
3574
|
-
declare var __VLS_1$1: {};
|
|
3575
|
-
type __VLS_Slots$4 = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx$2.$slots> & {
|
|
3576
|
-
default?: (props: typeof __VLS_1$1) => any;
|
|
3577
|
-
}>;
|
|
3578
|
-
declare const __VLS_self$2: _vue_runtime_core.DefineComponent<{}, {
|
|
3579
|
-
isDragging: typeof isDragging;
|
|
3580
|
-
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3581
|
-
change: (e: OnDrag<gesto.default>) => any;
|
|
3582
|
-
}, string, _vue_runtime_core.PublicProps, Readonly<{}> & Readonly<{
|
|
3583
|
-
onChange?: ((e: OnDrag<gesto.default>) => any) | undefined;
|
|
3584
|
-
}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, true, {}, any>;
|
|
3585
|
-
declare const __VLS_component$4: _vue_runtime_core.DefineComponent<{}, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3586
|
-
change: (e: OnDrag<gesto.default>) => any;
|
|
3587
|
-
}, string, _vue_runtime_core.PublicProps, Readonly<{}> & Readonly<{
|
|
3588
|
-
onChange?: ((e: OnDrag<gesto.default>) => any) | undefined;
|
|
3589
|
-
}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, true, {}, any>;
|
|
3590
|
-
declare const _default$a: __VLS_WithSlots$4<typeof __VLS_component$4, __VLS_Slots$4>;
|
|
3591
|
-
|
|
3592
|
-
type __VLS_WithSlots$4<T, S> = T & {
|
|
3593
|
-
new (): {
|
|
3594
|
-
$slots: S;
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
|
|
3598
3561
|
type __VLS_Props$8 = {
|
|
3599
3562
|
width?: number;
|
|
3600
3563
|
left?: number;
|
|
@@ -3606,43 +3569,17 @@ type __VLS_Props$8 = {
|
|
|
3606
3569
|
rightClass?: string;
|
|
3607
3570
|
centerClass?: string;
|
|
3608
3571
|
};
|
|
3609
|
-
declare
|
|
3610
|
-
declare const hasRight: _vue_reactivity.ComputedRef<boolean>;
|
|
3611
|
-
declare const center: _vue_reactivity.Ref<number, number>;
|
|
3612
|
-
declare const changeLeft: ({ deltaX }: OnDrag) => void;
|
|
3613
|
-
declare const changeRight: ({ deltaX }: OnDrag) => void;
|
|
3614
|
-
declare const __VLS_ctx$1: InstanceType<__VLS_PickNotAny<typeof __VLS_self$1, new () => {}>>;
|
|
3615
|
-
declare var __VLS_1: {};
|
|
3572
|
+
declare var __VLS_1$1: {};
|
|
3616
3573
|
declare var __VLS_10: {};
|
|
3617
3574
|
declare var __VLS_19: {};
|
|
3618
|
-
type __VLS_Slots$
|
|
3619
|
-
left?: (props: typeof __VLS_1) => any;
|
|
3575
|
+
type __VLS_Slots$4 = {} & {
|
|
3576
|
+
left?: (props: typeof __VLS_1$1) => any;
|
|
3620
3577
|
} & {
|
|
3621
3578
|
center?: (props: typeof __VLS_10) => any;
|
|
3622
3579
|
} & {
|
|
3623
3580
|
right?: (props: typeof __VLS_19) => any;
|
|
3624
|
-
}
|
|
3625
|
-
declare const
|
|
3626
|
-
Resizer: typeof _default$a;
|
|
3627
|
-
hasLeft: typeof hasLeft;
|
|
3628
|
-
hasRight: typeof hasRight;
|
|
3629
|
-
center: typeof center;
|
|
3630
|
-
changeLeft: typeof changeLeft;
|
|
3631
|
-
changeRight: typeof changeRight;
|
|
3632
|
-
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3633
|
-
change: (...args: any[]) => void;
|
|
3634
|
-
"update:left": (...args: any[]) => void;
|
|
3635
|
-
"update:right": (...args: any[]) => void;
|
|
3636
|
-
}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$8> & Readonly<{
|
|
3637
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
3638
|
-
"onUpdate:left"?: ((...args: any[]) => any) | undefined;
|
|
3639
|
-
"onUpdate:right"?: ((...args: any[]) => any) | undefined;
|
|
3640
|
-
}>, {
|
|
3641
|
-
minLeft: number;
|
|
3642
|
-
minRight: number;
|
|
3643
|
-
minCenter: number;
|
|
3644
|
-
}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
|
|
3645
|
-
declare const __VLS_component$3: _vue_runtime_core.DefineComponent<__VLS_Props$8, {
|
|
3581
|
+
};
|
|
3582
|
+
declare const __VLS_component$4: _vue_runtime_core.DefineComponent<__VLS_Props$8, {
|
|
3646
3583
|
updateWidth(): void;
|
|
3647
3584
|
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3648
3585
|
change: (...args: any[]) => void;
|
|
@@ -3657,6 +3594,23 @@ declare const __VLS_component$3: _vue_runtime_core.DefineComponent<__VLS_Props$8
|
|
|
3657
3594
|
minRight: number;
|
|
3658
3595
|
minCenter: number;
|
|
3659
3596
|
}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
|
|
3597
|
+
declare const _default$a: __VLS_WithSlots$4<typeof __VLS_component$4, __VLS_Slots$4>;
|
|
3598
|
+
|
|
3599
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
3600
|
+
new (): {
|
|
3601
|
+
$slots: S;
|
|
3602
|
+
};
|
|
3603
|
+
};
|
|
3604
|
+
|
|
3605
|
+
declare var __VLS_1: {};
|
|
3606
|
+
type __VLS_Slots$3 = {} & {
|
|
3607
|
+
default?: (props: typeof __VLS_1) => any;
|
|
3608
|
+
};
|
|
3609
|
+
declare const __VLS_component$3: _vue_runtime_core.DefineComponent<{}, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3610
|
+
change: (e: OnDrag<gesto.default>) => any;
|
|
3611
|
+
}, string, _vue_runtime_core.PublicProps, Readonly<{}> & Readonly<{
|
|
3612
|
+
onChange?: ((e: OnDrag<gesto.default>) => any) | undefined;
|
|
3613
|
+
}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, true, {}, any>;
|
|
3660
3614
|
declare const _default$9: __VLS_WithSlots$3<typeof __VLS_component$3, __VLS_Slots$3>;
|
|
3661
3615
|
|
|
3662
3616
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
@@ -3696,57 +3650,23 @@ interface Position {
|
|
|
3696
3650
|
left: number;
|
|
3697
3651
|
top: number;
|
|
3698
3652
|
}
|
|
3699
|
-
declare const visible: _vue_runtime_core.ModelRef<boolean, string, boolean, boolean>;
|
|
3700
3653
|
type __VLS_Props$6 = {
|
|
3701
3654
|
position?: Position;
|
|
3702
3655
|
title?: string;
|
|
3703
3656
|
beforeClose?: (_done: (_cancel?: boolean) => void) => void;
|
|
3704
3657
|
};
|
|
3705
|
-
declare const curZIndex: _vue_reactivity.Ref<number, number>;
|
|
3706
|
-
declare const bodyHeight: _vue_reactivity.ComputedRef<number | "auto">;
|
|
3707
|
-
declare const style: _vue_reactivity.ComputedRef<{
|
|
3708
|
-
left: string;
|
|
3709
|
-
top: string;
|
|
3710
|
-
width: string;
|
|
3711
|
-
height: string;
|
|
3712
|
-
}>;
|
|
3713
|
-
declare const closeHandler: () => void;
|
|
3714
|
-
declare const nextZIndex: () => void;
|
|
3715
3658
|
type __VLS_PublicProps = __VLS_Props$6 & {
|
|
3716
3659
|
'width'?: number;
|
|
3717
3660
|
'height'?: number;
|
|
3718
3661
|
'visible'?: boolean;
|
|
3719
3662
|
};
|
|
3720
|
-
declare
|
|
3721
|
-
declare var
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
title?: (props: typeof __VLS_5) => any;
|
|
3663
|
+
declare var __VLS_6: {};
|
|
3664
|
+
declare var __VLS_20: {};
|
|
3665
|
+
type __VLS_Slots$2 = {} & {
|
|
3666
|
+
title?: (props: typeof __VLS_6) => any;
|
|
3725
3667
|
} & {
|
|
3726
|
-
body?: (props: typeof
|
|
3727
|
-
}
|
|
3728
|
-
declare const __VLS_self: _vue_runtime_core.DefineComponent<__VLS_PublicProps, {
|
|
3729
|
-
Close: typeof Close;
|
|
3730
|
-
TMagicButton: typeof TMagicButton;
|
|
3731
|
-
MIcon: typeof _default$b;
|
|
3732
|
-
visible: typeof visible;
|
|
3733
|
-
curZIndex: typeof curZIndex;
|
|
3734
|
-
bodyHeight: typeof bodyHeight;
|
|
3735
|
-
style: typeof style;
|
|
3736
|
-
closeHandler: typeof closeHandler;
|
|
3737
|
-
nextZIndex: typeof nextZIndex;
|
|
3738
|
-
}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
|
|
3739
|
-
"update:width": (value: number) => any;
|
|
3740
|
-
"update:height": (value: number) => any;
|
|
3741
|
-
"update:visible": (value: boolean) => any;
|
|
3742
|
-
}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
3743
|
-
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
3744
|
-
"onUpdate:height"?: ((value: number) => any) | undefined;
|
|
3745
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
3746
|
-
}>, {
|
|
3747
|
-
title: string;
|
|
3748
|
-
position: Position;
|
|
3749
|
-
}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
|
|
3668
|
+
body?: (props: typeof __VLS_20) => any;
|
|
3669
|
+
};
|
|
3750
3670
|
declare const __VLS_component$2: _vue_runtime_core.DefineComponent<__VLS_PublicProps, {
|
|
3751
3671
|
bodyHeight: _vue_reactivity.ComputedRef<number | "auto">;
|
|
3752
3672
|
target: Readonly<_vue_reactivity.ShallowRef<HTMLDivElement | null>>;
|
|
@@ -3899,5 +3819,5 @@ declare const _default: {
|
|
|
3899
3819
|
install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
|
|
3900
3820
|
};
|
|
3901
3821
|
|
|
3902
|
-
export { CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, _default$8 as CodeBlockEditor, _default$i as CodeBlockList, _default$h as CodeBlockListPanel, CodeDeleteErrorType, _default$t as CodeSelect, _default$s as CodeSelectCol, ColumnLayout, _default$v as ComponentListPanel, _default$2 as CondOpSelect, _default$c as ContentMenu, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$g as DataSourceConfigPanel, _default$l as DataSourceFieldSelect, _default$r as DataSourceFields, _default$o as DataSourceInput, _default$m as DataSourceMethodSelect, _default$p as DataSourceMethods, _default$q as DataSourceMocks, _default$n as DataSourceSelect, _default$3 as DisplayConds, DragType, _default$k as EventSelect, Fixed2Other, _default$7 as FloatingBox, H_GUIDE_LINE_STORAGE_KEY, _default$b as Icon, IdleTask, KeyBindingCommand, _default$j as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, LayerOffset, _default$u as LayerPanel, Layout, _default$
|
|
3822
|
+
export { CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, _default$8 as CodeBlockEditor, _default$i as CodeBlockList, _default$h as CodeBlockListPanel, CodeDeleteErrorType, _default$t as CodeSelect, _default$s as CodeSelectCol, ColumnLayout, _default$v as ComponentListPanel, _default$2 as CondOpSelect, _default$c as ContentMenu, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$g as DataSourceConfigPanel, _default$l as DataSourceFieldSelect, _default$r as DataSourceFields, _default$o as DataSourceInput, _default$m as DataSourceMethodSelect, _default$p as DataSourceMethods, _default$q as DataSourceMocks, _default$n as DataSourceSelect, _default$3 as DisplayConds, DragType, _default$k as EventSelect, Fixed2Other, _default$7 as FloatingBox, H_GUIDE_LINE_STORAGE_KEY, _default$b as Icon, IdleTask, KeyBindingCommand, _default$j as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, LayerOffset, _default$u as LayerPanel, Layout, _default$a as LayoutContainer, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, PROPS_PANEL_WIDTH_STORAGE_KEY, _default$4 as PageFragmentSelect, _default$e as PropsFormPanel, _default$f as PropsPanel, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$9 as Resizer, ScrollViewer, SideItemKey, _default$a as SplitView, _default$1 as StyleSetter, _default$w as TMagicCodeEditor, _default$x as TMagicEditor, _default$d as ToolButton, _default$6 as Tree, _default$5 as TreeNode, UI_SELECT_MODE_EVENT_NAME, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, advancedTabConfig, arrayOptions, beforePaste, change2Fixed, _default$H as codeBlockService, _default$G as dataSourceService, debug, _default as default, _default$F as depService, displayTabConfig, _default$E as editorService, eqOptions, error, eventTabConfig, _default$D as eventsService, fillConfig, fixNodeLeft, fixNodePosition, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getDefaultConfig, getDisplayField, getEditorConfig, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$C as historyService, info, isIncludeDataSource, log, moveItemsInContainer, numberOptions, _default$B as propsService, removeDataSourceFieldPrefix, serializeConfig, setChildrenLayout, setEditorConfig, setLayout, _default$A as stageOverlayService, _default$z as storageService, styleTabConfig, _default$y as uiService, updateStatus, useCodeBlockEdit, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, warn };
|
|
3903
3823
|
export type { AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, BeforeAdd, CodeBlockListPanelSlots, CodeBlockListSlots, CodeDslItem, CodeParamStatement, CodeRelation, CodeState, CombineInfo, ComponentGroup, ComponentGroupState, ComponentItem, ComponentListPanelSlots, CustomContentMenuFunction, DataSourceListSlots, DatasourceTypeOption, EditorInstallOptions, EditorNodeInfo, EditorSlots, EventBus, EventBusEvent, FrameworkSlots, GetColumnWidth, GetConfig, HistoryState, IdleTaskEvents, KeyBindingCacheItem, KeyBindingItem, LayerNodeSlots, LayerNodeStatus, LayerPanelSlots, ListState, MenuBarData, MenuButton, MenuComponent, MenuItem, PageBarSortOptions, PartSortableOptions, PastePosition, PropsFormConfigFunction, PropsFormValueFunction, PropsPanelSlots, PropsState, ScrollViewerEvent, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SidebarSlots, StageOptions, StageOverlayState, StageRect, StepValue, StoreState, StoreStateKey, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, TreeNodeData, UiState, WorkspaceSlots };
|