@tmagic/editor 1.5.13 → 1.5.15
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/tmagic-editor.js +126 -118
- package/dist/tmagic-editor.umd.cjs +126 -118
- package/package.json +7 -7
- package/src/Editor.vue +4 -20
- package/src/components/CodeBlockEditor.vue +1 -1
- package/src/components/FloatingBox.vue +1 -1
- package/src/components/ScrollBar.vue +9 -3
- package/src/components/SearchInput.vue +1 -1
- package/src/components/Tree.vue +3 -3
- package/src/components/TreeNode.vue +3 -3
- package/src/fields/CodeSelect.vue +5 -7
- package/src/fields/CodeSelectCol.vue +9 -5
- package/src/fields/DataSourceFields.vue +4 -2
- package/src/fields/DataSourceInput.vue +7 -3
- package/src/fields/DataSourceMethodSelect.vue +17 -6
- package/src/fields/DataSourceMethods.vue +3 -3
- package/src/fields/EventSelect.vue +3 -2
- package/src/fields/UISelect.vue +2 -2
- package/src/hooks/use-code-block-edit.ts +1 -1
- package/src/index.ts +0 -1
- package/src/initService.ts +79 -69
- package/src/layouts/Framework.vue +1 -1
- package/src/layouts/NavMenu.vue +1 -1
- package/src/layouts/page-bar/PageBar.vue +1 -1
- package/src/layouts/props-panel/FormPanel.vue +2 -2
- package/src/layouts/props-panel/PropsPanel.vue +1 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +1 -1
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +1 -1
- package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +4 -5
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +12 -13
- package/src/layouts/workspace/viewer/Stage.vue +1 -1
- package/src/services/BaseService.ts +1 -0
- package/src/services/editor.ts +4 -3
- package/src/type.ts +9 -0
- package/src/utils/props.ts +9 -7
- package/types/index.d.ts +57 -55
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
:title="dialogTitle"
|
|
47
47
|
@submit="submitDataSourceHandler"
|
|
48
48
|
@close="editDialogCloseHandler"
|
|
49
|
-
@open="editDialogOpenHandler"
|
|
50
49
|
></DataSourceConfigPanel>
|
|
51
50
|
|
|
52
51
|
<Teleport to="body">
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
</template>
|
|
62
61
|
|
|
63
62
|
<script setup lang="ts">
|
|
64
|
-
import { computed, inject,
|
|
63
|
+
import { computed, inject, useTemplateRef, watch } from 'vue';
|
|
65
64
|
import { mergeWith } from 'lodash-es';
|
|
66
65
|
|
|
67
66
|
import { TMagicButton, tMagicMessageBox, TMagicPopover, TMagicScrollbar } from '@tmagic/design';
|
|
@@ -95,21 +94,21 @@ const { dataSourceService } = useServices();
|
|
|
95
94
|
const { editDialog, dataSourceValues, dialogTitle, editable, editHandler, submitDataSourceHandler } =
|
|
96
95
|
useDataSourceEdit(dataSourceService);
|
|
97
96
|
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
for (const [
|
|
101
|
-
status.selected =
|
|
97
|
+
const editDialogCloseHandler = () => {
|
|
98
|
+
if (dataSourceListRef.value) {
|
|
99
|
+
for (const [, status] of dataSourceListRef.value.nodeStatusMap.entries()) {
|
|
100
|
+
status.selected = false;
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
};
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
if (
|
|
108
|
-
for (const [, status] of
|
|
109
|
-
status.selected =
|
|
105
|
+
watch(dataSourceValues, (dataSourceValues) => {
|
|
106
|
+
if (dataSourceListRef.value && dataSourceValues.id) {
|
|
107
|
+
for (const [statusId, status] of dataSourceListRef.value.nodeStatusMap.entries()) {
|
|
108
|
+
status.selected = statusId === dataSourceValues.id;
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
};
|
|
111
|
+
});
|
|
113
112
|
|
|
114
113
|
const datasourceTypeList = computed(() =>
|
|
115
114
|
[
|
|
@@ -148,10 +147,10 @@ const removeHandler = async (id: string) => {
|
|
|
148
147
|
dataSourceService.remove(id);
|
|
149
148
|
};
|
|
150
149
|
|
|
151
|
-
const
|
|
150
|
+
const dataSourceListRef = useTemplateRef<InstanceType<typeof DataSourceList>>('dataSourceList');
|
|
152
151
|
|
|
153
152
|
const filterTextChangeHandler = (val: string) => {
|
|
154
|
-
|
|
153
|
+
dataSourceListRef.value?.filter(val);
|
|
155
154
|
};
|
|
156
155
|
|
|
157
156
|
eventBus?.on('edit-data-source', (id: string) => {
|
|
@@ -149,7 +149,7 @@ watch(zoom, (zoom) => {
|
|
|
149
149
|
stage.setZoom(zoom);
|
|
150
150
|
});
|
|
151
151
|
|
|
152
|
-
let timeoutId:
|
|
152
|
+
let timeoutId: ReturnType<typeof setTimeout> | null = null;
|
|
153
153
|
watch(page, (page) => {
|
|
154
154
|
if (runtime && page) {
|
|
155
155
|
editorService.set('stageLoading', true);
|
package/src/services/editor.ts
CHANGED
|
@@ -1088,10 +1088,11 @@ class Editor extends BaseService {
|
|
|
1088
1088
|
this.isHistoryStateChange = true;
|
|
1089
1089
|
await this.update(value.data);
|
|
1090
1090
|
this.set('modifiedNodeIds', value.modifiedNodeIds);
|
|
1091
|
-
setTimeout(
|
|
1091
|
+
setTimeout(() => {
|
|
1092
1092
|
if (!value.nodeId) return;
|
|
1093
|
-
|
|
1094
|
-
|
|
1093
|
+
this.select(value.nodeId).then(() => {
|
|
1094
|
+
this.get('stage')?.select(value.nodeId);
|
|
1095
|
+
});
|
|
1095
1096
|
}, 0);
|
|
1096
1097
|
this.emit('history-change', value.data);
|
|
1097
1098
|
}
|
package/src/type.ts
CHANGED
|
@@ -65,6 +65,15 @@ import type { StageOverlayService } from './services/stageOverlay';
|
|
|
65
65
|
import type { StorageService } from './services/storage';
|
|
66
66
|
import type { UiService } from './services/ui';
|
|
67
67
|
import type { UndoRedo } from './utils/undo-redo';
|
|
68
|
+
|
|
69
|
+
export type EditorSlots = FrameworkSlots &
|
|
70
|
+
WorkspaceSlots &
|
|
71
|
+
SidebarSlots &
|
|
72
|
+
PropsPanelSlots & {
|
|
73
|
+
workspace(props: { editorService: EditorService }): any;
|
|
74
|
+
'workspace-content'(props: { editorService: EditorService }): any;
|
|
75
|
+
};
|
|
76
|
+
|
|
68
77
|
export interface FrameworkSlots {
|
|
69
78
|
header(props: {}): any;
|
|
70
79
|
nav(props: {}): any;
|
package/src/utils/props.ts
CHANGED
|
@@ -179,13 +179,15 @@ export const fillConfig = (config: FormConfig = [], labelWidth = '80px'): FormCo
|
|
|
179
179
|
append: {
|
|
180
180
|
type: 'button',
|
|
181
181
|
text: '复制',
|
|
182
|
-
handler:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
182
|
+
handler: (vm, { model }) => {
|
|
183
|
+
navigator.clipboard
|
|
184
|
+
.writeText(`${model.id}`)
|
|
185
|
+
.then(() => {
|
|
186
|
+
tMagicMessage.success('已复制');
|
|
187
|
+
})
|
|
188
|
+
.catch(() => {
|
|
189
|
+
tMagicMessage.error('复制失败');
|
|
190
|
+
});
|
|
189
191
|
},
|
|
190
192
|
},
|
|
191
193
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -803,6 +803,14 @@ declare class Ui extends export_default {
|
|
|
803
803
|
type UiService = Ui;
|
|
804
804
|
declare const _default$y: Ui;
|
|
805
805
|
|
|
806
|
+
type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
|
|
807
|
+
workspace(props: {
|
|
808
|
+
editorService: EditorService;
|
|
809
|
+
}): any;
|
|
810
|
+
'workspace-content'(props: {
|
|
811
|
+
editorService: EditorService;
|
|
812
|
+
}): any;
|
|
813
|
+
};
|
|
806
814
|
interface FrameworkSlots {
|
|
807
815
|
header(props: {}): any;
|
|
808
816
|
nav(props: {}): any;
|
|
@@ -1574,6 +1582,7 @@ interface OnChangeHandlerData {
|
|
|
1574
1582
|
config: any;
|
|
1575
1583
|
prop: string;
|
|
1576
1584
|
changeRecords: ChangeRecord[];
|
|
1585
|
+
setModel: (prop: string, value: any) => void;
|
|
1577
1586
|
}
|
|
1578
1587
|
type OnChangeHandler = (mForm: FormState | undefined, value: any, data: OnChangeHandlerData) => any;
|
|
1579
1588
|
type DefaultValueFunction = (mForm: FormState | undefined) => any;
|
|
@@ -2410,14 +2419,7 @@ interface EditorProps {
|
|
|
2410
2419
|
pageFilterFunction?: (page: MPage | MPageFragment, keyword: string) => boolean;
|
|
2411
2420
|
}
|
|
2412
2421
|
|
|
2413
|
-
type __VLS_Slots$c =
|
|
2414
|
-
workspace(props: {
|
|
2415
|
-
editorService: EditorService;
|
|
2416
|
-
}): any;
|
|
2417
|
-
'workspace-content'(props: {
|
|
2418
|
-
editorService: EditorService;
|
|
2419
|
-
}): any;
|
|
2420
|
-
};
|
|
2422
|
+
type __VLS_Slots$c = EditorSlots;
|
|
2421
2423
|
declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
2422
2424
|
editorService: EditorService;
|
|
2423
2425
|
historyService: HistoryService;
|
|
@@ -2443,7 +2445,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2443
2445
|
readonly labelWidth?: string | undefined;
|
|
2444
2446
|
readonly codeValueKey?: string | undefined;
|
|
2445
2447
|
readonly labelPosition?: string | undefined;
|
|
2446
|
-
readonly extendState?: ((
|
|
2448
|
+
readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
2447
2449
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2448
2450
|
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
2449
2451
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -2470,7 +2472,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2470
2472
|
labelWidth?: string;
|
|
2471
2473
|
codeValueKey?: string;
|
|
2472
2474
|
labelPosition?: string;
|
|
2473
|
-
extendState?: (
|
|
2475
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2474
2476
|
}> & Readonly<{
|
|
2475
2477
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2476
2478
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
@@ -2493,7 +2495,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2493
2495
|
keyProp?: string;
|
|
2494
2496
|
popperClass?: string;
|
|
2495
2497
|
preventSubmitDefault?: boolean;
|
|
2496
|
-
extendState?: (
|
|
2498
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2497
2499
|
}> & Readonly<{
|
|
2498
2500
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2499
2501
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2551,7 +2553,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2551
2553
|
keyProp?: string;
|
|
2552
2554
|
popperClass?: string;
|
|
2553
2555
|
preventSubmitDefault?: boolean;
|
|
2554
|
-
extendState?: (
|
|
2556
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2555
2557
|
}> & Readonly<{
|
|
2556
2558
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2557
2559
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2614,7 +2616,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2614
2616
|
labelWidth?: string;
|
|
2615
2617
|
codeValueKey?: string;
|
|
2616
2618
|
labelPosition?: string;
|
|
2617
|
-
extendState?: (
|
|
2619
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2618
2620
|
}> & Readonly<{
|
|
2619
2621
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2620
2622
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
@@ -2637,7 +2639,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2637
2639
|
keyProp?: string;
|
|
2638
2640
|
popperClass?: string;
|
|
2639
2641
|
preventSubmitDefault?: boolean;
|
|
2640
|
-
extendState?: (
|
|
2642
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2641
2643
|
}> & Readonly<{
|
|
2642
2644
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2643
2645
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2695,7 +2697,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2695
2697
|
keyProp?: string;
|
|
2696
2698
|
popperClass?: string;
|
|
2697
2699
|
preventSubmitDefault?: boolean;
|
|
2698
|
-
extendState?: (
|
|
2700
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2699
2701
|
}> & Readonly<{
|
|
2700
2702
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2701
2703
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2728,7 +2730,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2728
2730
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
2729
2731
|
}> & {} & vue.ComponentCustomProperties & {} & {
|
|
2730
2732
|
$slots: {
|
|
2731
|
-
'props-form-panel-header'(
|
|
2733
|
+
'props-form-panel-header'(_props: {}): any;
|
|
2732
2734
|
};
|
|
2733
2735
|
}) => any;
|
|
2734
2736
|
"props-form-error": (e: any) => any;
|
|
@@ -2745,7 +2747,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2745
2747
|
readonly labelWidth?: string | undefined;
|
|
2746
2748
|
readonly codeValueKey?: string | undefined;
|
|
2747
2749
|
readonly labelPosition?: string | undefined;
|
|
2748
|
-
readonly extendState?: ((
|
|
2750
|
+
readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
2749
2751
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2750
2752
|
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
2751
2753
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -2772,7 +2774,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2772
2774
|
labelWidth?: string;
|
|
2773
2775
|
codeValueKey?: string;
|
|
2774
2776
|
labelPosition?: string;
|
|
2775
|
-
extendState?: (
|
|
2777
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2776
2778
|
}> & Readonly<{
|
|
2777
2779
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2778
2780
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
@@ -2795,7 +2797,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2795
2797
|
keyProp?: string;
|
|
2796
2798
|
popperClass?: string;
|
|
2797
2799
|
preventSubmitDefault?: boolean;
|
|
2798
|
-
extendState?: (
|
|
2800
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2799
2801
|
}> & Readonly<{
|
|
2800
2802
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2801
2803
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2853,7 +2855,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2853
2855
|
keyProp?: string;
|
|
2854
2856
|
popperClass?: string;
|
|
2855
2857
|
preventSubmitDefault?: boolean;
|
|
2856
|
-
extendState?: (
|
|
2858
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2857
2859
|
}> & Readonly<{
|
|
2858
2860
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2859
2861
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2916,7 +2918,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2916
2918
|
labelWidth?: string;
|
|
2917
2919
|
codeValueKey?: string;
|
|
2918
2920
|
labelPosition?: string;
|
|
2919
|
-
extendState?: (
|
|
2921
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2920
2922
|
}> & Readonly<{
|
|
2921
2923
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2922
2924
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
@@ -2939,7 +2941,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2939
2941
|
keyProp?: string;
|
|
2940
2942
|
popperClass?: string;
|
|
2941
2943
|
preventSubmitDefault?: boolean;
|
|
2942
|
-
extendState?: (
|
|
2944
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2943
2945
|
}> & Readonly<{
|
|
2944
2946
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2945
2947
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2997,7 +2999,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
2997
2999
|
keyProp?: string;
|
|
2998
3000
|
popperClass?: string;
|
|
2999
3001
|
preventSubmitDefault?: boolean;
|
|
3000
|
-
extendState?: (
|
|
3002
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
3001
3003
|
}> & Readonly<{
|
|
3002
3004
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3003
3005
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3030,7 +3032,7 @@ declare const __VLS_component$c: vue.DefineComponent<EditorProps, {
|
|
|
3030
3032
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
3031
3033
|
}> & {} & vue.ComponentCustomProperties & {} & {
|
|
3032
3034
|
$slots: {
|
|
3033
|
-
'props-form-panel-header'(
|
|
3035
|
+
'props-form-panel-header'(_props: {}): any;
|
|
3034
3036
|
};
|
|
3035
3037
|
}) => any) | undefined;
|
|
3036
3038
|
"onProps-form-error"?: ((e: any) => any) | undefined;
|
|
@@ -3265,7 +3267,7 @@ type __VLS_Slots$9 = CodeBlockListSlots;
|
|
|
3265
3267
|
type __VLS_Props$g = {
|
|
3266
3268
|
indent?: number;
|
|
3267
3269
|
nextLevelIndentIncrement?: number;
|
|
3268
|
-
customError?: (
|
|
3270
|
+
customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
|
|
3269
3271
|
};
|
|
3270
3272
|
declare const __VLS_component$9: vue.DefineComponent<__VLS_Props$g, {
|
|
3271
3273
|
nodeStatusMap: vue.Ref<Map<Id, {
|
|
@@ -3302,7 +3304,7 @@ type __VLS_Slots$8 = CodeBlockListPanelSlots;
|
|
|
3302
3304
|
type __VLS_Props$f = {
|
|
3303
3305
|
indent?: number;
|
|
3304
3306
|
nextLevelIndentIncrement?: number;
|
|
3305
|
-
customError?: (
|
|
3307
|
+
customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
|
|
3306
3308
|
customContentMenu: CustomContentMenuFunction;
|
|
3307
3309
|
};
|
|
3308
3310
|
declare const __VLS_component$8: vue.DefineComponent<__VLS_Props$f, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$f> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -3343,7 +3345,7 @@ declare const _default$g: vue.DefineComponent<__VLS_PublicProps$2, {
|
|
|
3343
3345
|
type __VLS_Slots$7 = PropsPanelSlots;
|
|
3344
3346
|
type __VLS_Props$d = {
|
|
3345
3347
|
disabledShowSrc?: boolean;
|
|
3346
|
-
extendState?: (
|
|
3348
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3347
3349
|
};
|
|
3348
3350
|
declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
3349
3351
|
getFormState(): FormState$1 | undefined;
|
|
@@ -3359,7 +3361,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3359
3361
|
readonly labelWidth?: string | undefined;
|
|
3360
3362
|
readonly codeValueKey?: string | undefined;
|
|
3361
3363
|
readonly labelPosition?: string | undefined;
|
|
3362
|
-
readonly extendState?: ((
|
|
3364
|
+
readonly extendState?: ((_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
3363
3365
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3364
3366
|
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
3365
3367
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -3386,7 +3388,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3386
3388
|
labelWidth?: string;
|
|
3387
3389
|
codeValueKey?: string;
|
|
3388
3390
|
labelPosition?: string;
|
|
3389
|
-
extendState?: (
|
|
3391
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3390
3392
|
}> & Readonly<{
|
|
3391
3393
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3392
3394
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
@@ -3409,7 +3411,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3409
3411
|
keyProp?: string;
|
|
3410
3412
|
popperClass?: string;
|
|
3411
3413
|
preventSubmitDefault?: boolean;
|
|
3412
|
-
extendState?: (
|
|
3414
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3413
3415
|
}> & Readonly<{
|
|
3414
3416
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3415
3417
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3467,7 +3469,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3467
3469
|
keyProp?: string;
|
|
3468
3470
|
popperClass?: string;
|
|
3469
3471
|
preventSubmitDefault?: boolean;
|
|
3470
|
-
extendState?: (
|
|
3472
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3471
3473
|
}> & Readonly<{
|
|
3472
3474
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3473
3475
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3530,7 +3532,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3530
3532
|
labelWidth?: string;
|
|
3531
3533
|
codeValueKey?: string;
|
|
3532
3534
|
labelPosition?: string;
|
|
3533
|
-
extendState?: (
|
|
3535
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3534
3536
|
}> & Readonly<{
|
|
3535
3537
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3536
3538
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
@@ -3553,7 +3555,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3553
3555
|
keyProp?: string;
|
|
3554
3556
|
popperClass?: string;
|
|
3555
3557
|
preventSubmitDefault?: boolean;
|
|
3556
|
-
extendState?: (
|
|
3558
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3557
3559
|
}> & Readonly<{
|
|
3558
3560
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3559
3561
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3611,7 +3613,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3611
3613
|
keyProp?: string;
|
|
3612
3614
|
popperClass?: string;
|
|
3613
3615
|
preventSubmitDefault?: boolean;
|
|
3614
|
-
extendState?: (
|
|
3616
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3615
3617
|
}> & Readonly<{
|
|
3616
3618
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3617
3619
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3644,7 +3646,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3644
3646
|
submit: (v: FormValue$1, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
3645
3647
|
}> & {} & vue.ComponentCustomProperties & {} & {
|
|
3646
3648
|
$slots: {
|
|
3647
|
-
'props-form-panel-header'(
|
|
3649
|
+
'props-form-panel-header'(_props: {}): any;
|
|
3648
3650
|
};
|
|
3649
3651
|
}) => any;
|
|
3650
3652
|
"submit-error": (e: any) => any;
|
|
@@ -3660,7 +3662,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3660
3662
|
readonly labelWidth?: string | undefined;
|
|
3661
3663
|
readonly codeValueKey?: string | undefined;
|
|
3662
3664
|
readonly labelPosition?: string | undefined;
|
|
3663
|
-
readonly extendState?: ((
|
|
3665
|
+
readonly extendState?: ((_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
3664
3666
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3665
3667
|
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
3666
3668
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -3687,7 +3689,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3687
3689
|
labelWidth?: string;
|
|
3688
3690
|
codeValueKey?: string;
|
|
3689
3691
|
labelPosition?: string;
|
|
3690
|
-
extendState?: (
|
|
3692
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3691
3693
|
}> & Readonly<{
|
|
3692
3694
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3693
3695
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
@@ -3710,7 +3712,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3710
3712
|
keyProp?: string;
|
|
3711
3713
|
popperClass?: string;
|
|
3712
3714
|
preventSubmitDefault?: boolean;
|
|
3713
|
-
extendState?: (
|
|
3715
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3714
3716
|
}> & Readonly<{
|
|
3715
3717
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3716
3718
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3768,7 +3770,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3768
3770
|
keyProp?: string;
|
|
3769
3771
|
popperClass?: string;
|
|
3770
3772
|
preventSubmitDefault?: boolean;
|
|
3771
|
-
extendState?: (
|
|
3773
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3772
3774
|
}> & Readonly<{
|
|
3773
3775
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3774
3776
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3831,7 +3833,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3831
3833
|
labelWidth?: string;
|
|
3832
3834
|
codeValueKey?: string;
|
|
3833
3835
|
labelPosition?: string;
|
|
3834
|
-
extendState?: (
|
|
3836
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3835
3837
|
}> & Readonly<{
|
|
3836
3838
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3837
3839
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
@@ -3854,7 +3856,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3854
3856
|
keyProp?: string;
|
|
3855
3857
|
popperClass?: string;
|
|
3856
3858
|
preventSubmitDefault?: boolean;
|
|
3857
|
-
extendState?: (
|
|
3859
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3858
3860
|
}> & Readonly<{
|
|
3859
3861
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3860
3862
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3912,7 +3914,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3912
3914
|
keyProp?: string;
|
|
3913
3915
|
popperClass?: string;
|
|
3914
3916
|
preventSubmitDefault?: boolean;
|
|
3915
|
-
extendState?: (
|
|
3917
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3916
3918
|
}> & Readonly<{
|
|
3917
3919
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3918
3920
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -3945,7 +3947,7 @@ declare const __VLS_component$7: vue.DefineComponent<__VLS_Props$d, {
|
|
|
3945
3947
|
submit: (v: FormValue$1, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
3946
3948
|
}> & {} & vue.ComponentCustomProperties & {} & {
|
|
3947
3949
|
$slots: {
|
|
3948
|
-
'props-form-panel-header'(
|
|
3950
|
+
'props-form-panel-header'(_props: {}): any;
|
|
3949
3951
|
};
|
|
3950
3952
|
}) => any) | undefined;
|
|
3951
3953
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
@@ -3960,7 +3962,7 @@ type __VLS_WithSlots$7<T, S> = T & {
|
|
|
3960
3962
|
};
|
|
3961
3963
|
|
|
3962
3964
|
type __VLS_Slots$6 = {
|
|
3963
|
-
'props-form-panel-header'(
|
|
3965
|
+
'props-form-panel-header'(_props: {}): any;
|
|
3964
3966
|
};
|
|
3965
3967
|
type __VLS_Props$c = {
|
|
3966
3968
|
config: FormConfig$1;
|
|
@@ -3969,7 +3971,7 @@ type __VLS_Props$c = {
|
|
|
3969
3971
|
labelWidth?: string;
|
|
3970
3972
|
codeValueKey?: string;
|
|
3971
3973
|
labelPosition?: string;
|
|
3972
|
-
extendState?: (
|
|
3974
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3973
3975
|
};
|
|
3974
3976
|
declare const __VLS_component$6: vue.DefineComponent<__VLS_Props$c, {
|
|
3975
3977
|
configForm: Readonly<vue.ShallowRef<vue.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -3988,7 +3990,7 @@ declare const __VLS_component$6: vue.DefineComponent<__VLS_Props$c, {
|
|
|
3988
3990
|
keyProp?: string;
|
|
3989
3991
|
popperClass?: string;
|
|
3990
3992
|
preventSubmitDefault?: boolean;
|
|
3991
|
-
extendState?: (
|
|
3993
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
3992
3994
|
}> & Readonly<{
|
|
3993
3995
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3994
3996
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -4046,7 +4048,7 @@ declare const __VLS_component$6: vue.DefineComponent<__VLS_Props$c, {
|
|
|
4046
4048
|
keyProp?: string;
|
|
4047
4049
|
popperClass?: string;
|
|
4048
4050
|
preventSubmitDefault?: boolean;
|
|
4049
|
-
extendState?: (
|
|
4051
|
+
extendState?: (_state: FormState$1) => Record<string, any> | Promise<Record<string, any>>;
|
|
4050
4052
|
}> & Readonly<{
|
|
4051
4053
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
4052
4054
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -4328,7 +4330,7 @@ declare const visible: vue.ModelRef<boolean, string, boolean, boolean>;
|
|
|
4328
4330
|
type __VLS_Props$6 = {
|
|
4329
4331
|
position?: Position;
|
|
4330
4332
|
title?: string;
|
|
4331
|
-
beforeClose?: (
|
|
4333
|
+
beforeClose?: (_done: (_cancel?: boolean) => void) => void;
|
|
4332
4334
|
};
|
|
4333
4335
|
declare const curZIndex: vue.Ref<number, number>;
|
|
4334
4336
|
declare const bodyHeight: vue.ComputedRef<number | "auto">;
|
|
@@ -4400,13 +4402,13 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
4400
4402
|
};
|
|
4401
4403
|
|
|
4402
4404
|
type __VLS_Slots$1 = {
|
|
4403
|
-
'tree-node-content'(
|
|
4405
|
+
'tree-node-content'(_props: {
|
|
4404
4406
|
data: TreeNodeData;
|
|
4405
4407
|
}): any;
|
|
4406
|
-
'tree-node-label'(
|
|
4408
|
+
'tree-node-label'(_props: {
|
|
4407
4409
|
data: TreeNodeData;
|
|
4408
4410
|
}): any;
|
|
4409
|
-
'tree-node-tool'(
|
|
4411
|
+
'tree-node-tool'(_props: {
|
|
4410
4412
|
data: TreeNodeData;
|
|
4411
4413
|
}): any;
|
|
4412
4414
|
};
|
|
@@ -4446,13 +4448,13 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
4446
4448
|
};
|
|
4447
4449
|
|
|
4448
4450
|
type __VLS_Slots = {
|
|
4449
|
-
'tree-node-label'(
|
|
4451
|
+
'tree-node-label'(_props: {
|
|
4450
4452
|
data: TreeNodeData;
|
|
4451
4453
|
}): any;
|
|
4452
|
-
'tree-node-tool'(
|
|
4454
|
+
'tree-node-tool'(_props: {
|
|
4453
4455
|
data: TreeNodeData;
|
|
4454
4456
|
}): any;
|
|
4455
|
-
'tree-node-content'(
|
|
4457
|
+
'tree-node-content'(_props: {
|
|
4456
4458
|
data: TreeNodeData;
|
|
4457
4459
|
}): any;
|
|
4458
4460
|
};
|
|
@@ -4531,4 +4533,4 @@ declare const _default: {
|
|
|
4531
4533
|
};
|
|
4532
4534
|
|
|
4533
4535
|
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$9 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$a as Resizer, ScrollViewer, SideItemKey, _default$9 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 };
|
|
4534
|
-
export type { AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, BeforeAdd, CodeBlockListPanelSlots, CodeBlockListSlots, CodeDslItem, CodeParamStatement, CodeRelation, CodeSelectColConfig, CodeState, CombineInfo, ComponentGroup, ComponentGroupState, ComponentItem, ComponentListPanelSlots, CondOpSelectConfig, CustomContentMenuFunction, DataSourceFieldSelectConfig, DataSourceListSlots, DataSourceMethodSelectConfig, DatasourceTypeOption, EditorInstallOptions, EditorNodeInfo, EventBus, EventBusEvent, EventSelectConfig, FrameworkSlots, GetColumnWidth, GetConfig, HistoryState, IdleTaskEvents, KeyBindingCacheItem, KeyBindingItem, LayerNodeSlots, LayerNodeStatus, LayerPanelSlots, ListState, MenuBarData, MenuButton, MenuComponent, MenuItem, PageBarSortOptions, PageFragmentSelectConfig, 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 };
|
|
4536
|
+
export type { AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, BeforeAdd, CodeBlockListPanelSlots, CodeBlockListSlots, CodeDslItem, CodeParamStatement, CodeRelation, CodeSelectColConfig, CodeState, CombineInfo, ComponentGroup, ComponentGroupState, ComponentItem, ComponentListPanelSlots, CondOpSelectConfig, CustomContentMenuFunction, DataSourceFieldSelectConfig, DataSourceListSlots, DataSourceMethodSelectConfig, DatasourceTypeOption, EditorInstallOptions, EditorNodeInfo, EditorSlots, EventBus, EventBusEvent, EventSelectConfig, FrameworkSlots, GetColumnWidth, GetConfig, HistoryState, IdleTaskEvents, KeyBindingCacheItem, KeyBindingItem, LayerNodeSlots, LayerNodeStatus, LayerPanelSlots, ListState, MenuBarData, MenuButton, MenuComponent, MenuItem, PageBarSortOptions, PageFragmentSelectConfig, 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 };
|