@tmagic/editor 1.7.8-beta.1 → 1.7.8-beta.2
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/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/es/fields/StyleSetter/pro/Layout.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/es/services/props.js +2 -1
- package/dist/es/utils/data-source/index.js +64 -63
- package/dist/es/utils/dep/worker.js +1 -1
- package/dist/es/utils/props.js +4 -4
- package/dist/tmagic-editor.umd.cjs +82 -79
- package/package.json +7 -7
- package/src/components/CodeBlockEditor.vue +2 -8
- package/src/fields/CodeSelectCol.vue +1 -1
- package/src/fields/DataSourceFieldSelect/Index.vue +7 -2
- package/src/fields/DataSourceFields.vue +4 -1
- package/src/fields/EventSelect.vue +5 -6
- package/src/fields/StyleSetter/components/BackgroundPosition.vue +2 -2
- package/src/fields/StyleSetter/pro/Layout.vue +8 -8
- package/src/services/props.ts +3 -1
- package/src/utils/data-source/index.ts +71 -73
- package/src/utils/props.ts +9 -7
- package/types/index.d.ts +197 -193
package/types/index.d.ts
CHANGED
|
@@ -12,17 +12,11 @@ import { App, Component, ComputedRef, Ref, ShallowRef } from "vue";
|
|
|
12
12
|
import EventEmitter, { EventEmitter as EventEmitter$1 } from "events";
|
|
13
13
|
import Sortable, { Options, SortableEvent } from "sortablejs";
|
|
14
14
|
import { PascalCasedProperties, Writable } from "type-fest";
|
|
15
|
-
import * as _editor_type0 from "@editor/type";
|
|
16
|
-
import { AddMNode as AddMNode$1, AsyncHookPlugin as AsyncHookPlugin$1, CodeBlockListPanelSlots as CodeBlockListPanelSlots$1, CodeBlockListSlots as CodeBlockListSlots$1, CodeDeleteErrorType as CodeDeleteErrorType$1, ComponentGroup as ComponentGroup$1, ComponentListPanelSlots as ComponentListPanelSlots$1, CustomContentMenuFunction as CustomContentMenuFunction$1, DatasourceTypeOption as DatasourceTypeOption$1, EditorInstallOptions as EditorInstallOptions$1, EditorNodeInfo as EditorNodeInfo$1, KeyBindingItem as KeyBindingItem$1, LayerNodeStatus as LayerNodeStatus$1, LayerOffset as LayerOffset$1, LayerPanelSlots as LayerPanelSlots$1, Layout as Layout$1, MenuButton as MenuButton$1, MenuComponent as MenuComponent$1, PastePosition as PastePosition$1, PropsFormConfigFunction as PropsFormConfigFunction$1, PropsFormValueFunction as PropsFormValueFunction$1, PropsPanelSlots as PropsPanelSlots$1, Services as Services$1, StageOptions as StageOptions$1, StageOverlayState as StageOverlayState$1, StepValue as StepValue$1, StoreState as StoreState$1, StoreStateKey as StoreStateKey$1, SyncHookPlugin as SyncHookPlugin$1, TreeNodeData as TreeNodeData$1, UiState as UiState$1 } from "@editor/type";
|
|
17
15
|
import * as _tmagic_schema0 from "@tmagic/schema";
|
|
18
16
|
import { StyleSchema } from "@tmagic/schema";
|
|
19
|
-
import BaseService from "@editor/services//BaseService";
|
|
20
|
-
import { UndoRedo as UndoRedo$1 } from "@editor/utils/undo-redo";
|
|
21
17
|
import * as _vue_reactivity0 from "@vue/reactivity";
|
|
22
|
-
import * as _form_schema0 from "@form/schema";
|
|
23
|
-
import * as _vue_runtime_core0 from "@vue/runtime-core";
|
|
24
18
|
import * as _tmagic_form_schema0 from "@tmagic/form-schema";
|
|
25
|
-
import * as
|
|
19
|
+
import * as _vue_runtime_core0 from "@vue/runtime-core";
|
|
26
20
|
export * from "@tmagic/form";
|
|
27
21
|
export * from "@tmagic/table";
|
|
28
22
|
export * from "@tmagic/stage";
|
|
@@ -216,7 +210,7 @@ declare class CodeBlock extends export_default {
|
|
|
216
210
|
paste(): void;
|
|
217
211
|
resetState(): void;
|
|
218
212
|
destroy(): void;
|
|
219
|
-
usePlugin(options: AsyncHookPlugin
|
|
213
|
+
usePlugin(options: AsyncHookPlugin<AsyncMethodName$4, CodeBlock>): void;
|
|
220
214
|
}
|
|
221
215
|
type CodeBlockService = CodeBlock;
|
|
222
216
|
declare const _default$34: CodeBlock;
|
|
@@ -228,8 +222,8 @@ declare class ComponentList extends export_default {
|
|
|
228
222
|
/**
|
|
229
223
|
* @param componentGroupList 组件列表配置
|
|
230
224
|
*/
|
|
231
|
-
setList(componentGroupList: ComponentGroup
|
|
232
|
-
getList(): ComponentGroup
|
|
225
|
+
setList(componentGroupList: ComponentGroup[]): void;
|
|
226
|
+
getList(): ComponentGroup[];
|
|
233
227
|
resetState(): void;
|
|
234
228
|
destroy(): void;
|
|
235
229
|
}
|
|
@@ -237,7 +231,7 @@ type ComponentListService = ComponentList;
|
|
|
237
231
|
//#endregion
|
|
238
232
|
//#region temp/packages/editor/src/services/dataSource.d.ts
|
|
239
233
|
interface State$2 {
|
|
240
|
-
datasourceTypeList: DatasourceTypeOption
|
|
234
|
+
datasourceTypeList: DatasourceTypeOption[];
|
|
241
235
|
dataSources: DataSourceSchema[];
|
|
242
236
|
editable: boolean;
|
|
243
237
|
configs: Record<string, FormConfig>;
|
|
@@ -285,7 +279,7 @@ declare class DataSource extends export_default {
|
|
|
285
279
|
getDataSourceById(id: string): DataSourceSchema | undefined;
|
|
286
280
|
resetState(): void;
|
|
287
281
|
destroy(): void;
|
|
288
|
-
usePlugin(options: SyncHookPlugin
|
|
282
|
+
usePlugin(options: SyncHookPlugin<SyncMethodName$4, DataSource>): void;
|
|
289
283
|
/**
|
|
290
284
|
* 复制时会带上组件关联的数据源
|
|
291
285
|
* @param config 组件节点配置
|
|
@@ -351,7 +345,7 @@ declare const _default$37: Dep;
|
|
|
351
345
|
//#endregion
|
|
352
346
|
//#region temp/packages/editor/src/services/editor.d.ts
|
|
353
347
|
interface EditorEvents {
|
|
354
|
-
'root-change': [value: StoreState
|
|
348
|
+
'root-change': [value: StoreState['root'], preValue?: StoreState['root']];
|
|
355
349
|
select: [node: MNode | null];
|
|
356
350
|
add: [nodes: MNode[]];
|
|
357
351
|
remove: [nodes: MNode[]];
|
|
@@ -360,7 +354,7 @@ interface EditorEvents {
|
|
|
360
354
|
oldNode: MNode;
|
|
361
355
|
changeRecords?: ChangeRecord[];
|
|
362
356
|
}[]];
|
|
363
|
-
'move-layer': [offset: number | LayerOffset
|
|
357
|
+
'move-layer': [offset: number | LayerOffset];
|
|
364
358
|
'drag-to': [data: {
|
|
365
359
|
targetIndex: number;
|
|
366
360
|
configs: MNode | MNode[];
|
|
@@ -373,8 +367,8 @@ declare const canUsePluginMethods$5: {
|
|
|
373
367
|
sync: never[];
|
|
374
368
|
};
|
|
375
369
|
type AsyncMethodName$3 = Writable<(typeof canUsePluginMethods$5)['async']>;
|
|
376
|
-
declare class Editor extends
|
|
377
|
-
state: StoreState
|
|
370
|
+
declare class Editor extends export_default {
|
|
371
|
+
state: StoreState;
|
|
378
372
|
private isHistoryStateChange;
|
|
379
373
|
constructor();
|
|
380
374
|
/**
|
|
@@ -382,20 +376,20 @@ declare class Editor extends BaseService {
|
|
|
382
376
|
* @param name 'root' | 'page' | 'parent' | 'node' | 'highlightNode' | 'nodes' | 'stage' | 'modifiedNodeIds' | 'pageLength' | 'pageFragmentLength
|
|
383
377
|
* @param value MNode
|
|
384
378
|
*/
|
|
385
|
-
set<K extends StoreStateKey
|
|
379
|
+
set<K extends StoreStateKey, T extends StoreState[K]>(name: K, value: T): void;
|
|
386
380
|
/**
|
|
387
381
|
* 获取当前指点节点配置
|
|
388
382
|
* @param name 'root' | 'page' | 'parent' | 'node' | 'highlightNode' | 'nodes' | 'stage' | 'modifiedNodeIds' | 'pageLength' | 'pageFragmentLength'
|
|
389
383
|
* @returns MNode
|
|
390
384
|
*/
|
|
391
|
-
get<K extends StoreStateKey
|
|
385
|
+
get<K extends StoreStateKey>(name: K): StoreState[K];
|
|
392
386
|
/**
|
|
393
387
|
* 根据id获取组件、组件的父组件以及组件所属的页面节点
|
|
394
388
|
* @param {number | string} id 组件id
|
|
395
389
|
* @param {boolean} raw 是否使用toRaw
|
|
396
390
|
* @returns {EditorNodeInfo}
|
|
397
391
|
*/
|
|
398
|
-
getNodeInfo(id: Id, raw?: boolean): EditorNodeInfo
|
|
392
|
+
getNodeInfo(id: Id, raw?: boolean): EditorNodeInfo;
|
|
399
393
|
/**
|
|
400
394
|
* 根据ID获取指点节点配置
|
|
401
395
|
* @param id 组件ID
|
|
@@ -413,7 +407,7 @@ declare class Editor extends BaseService {
|
|
|
413
407
|
/**
|
|
414
408
|
* 只有容器拥有布局
|
|
415
409
|
*/
|
|
416
|
-
getLayout(parent: MNode, node?: MNode | null): Promise<Layout
|
|
410
|
+
getLayout(parent: MNode, node?: MNode | null): Promise<Layout>;
|
|
417
411
|
/**
|
|
418
412
|
* 选中指定节点(将指定节点设置成当前选中状态)
|
|
419
413
|
* @param config 指定节点配置或者ID
|
|
@@ -442,7 +436,7 @@ declare class Editor extends BaseService {
|
|
|
442
436
|
* @param parent 要添加到的容器组件节点配置,如果不设置,默认为当前选中的组件的父节点
|
|
443
437
|
* @returns 添加后的节点
|
|
444
438
|
*/
|
|
445
|
-
add(addNode: AddMNode
|
|
439
|
+
add(addNode: AddMNode | MNode[], parent?: MContainer | null): Promise<MNode | MNode[]>;
|
|
446
440
|
doRemove(node: MNode): Promise<void>;
|
|
447
441
|
/**
|
|
448
442
|
* 删除组件
|
|
@@ -491,8 +485,8 @@ declare class Editor extends BaseService {
|
|
|
491
485
|
* @param position 粘贴的坐标
|
|
492
486
|
* @returns 添加后的组件节点配置
|
|
493
487
|
*/
|
|
494
|
-
paste(position?: PastePosition
|
|
495
|
-
doPaste(config: MNode[], position?: PastePosition
|
|
488
|
+
paste(position?: PastePosition, collectorOptions?: TargetOptions): Promise<MNode | MNode[] | void>;
|
|
489
|
+
doPaste(config: MNode[], position?: PastePosition): Promise<MNode[]>;
|
|
496
490
|
doAlignCenter(config: MNode): Promise<MNode>;
|
|
497
491
|
/**
|
|
498
492
|
* 将指点节点设置居中
|
|
@@ -504,7 +498,7 @@ declare class Editor extends BaseService {
|
|
|
504
498
|
* 移动当前选中节点位置
|
|
505
499
|
* @param offset 偏移量
|
|
506
500
|
*/
|
|
507
|
-
moveLayer(offset: number | LayerOffset
|
|
501
|
+
moveLayer(offset: number | LayerOffset): Promise<void>;
|
|
508
502
|
/**
|
|
509
503
|
* 移动到指定容器中
|
|
510
504
|
* @param config 需要移动的节点
|
|
@@ -516,17 +510,17 @@ declare class Editor extends BaseService {
|
|
|
516
510
|
* 撤销当前操作
|
|
517
511
|
* @returns 上一次数据
|
|
518
512
|
*/
|
|
519
|
-
undo(): Promise<StepValue
|
|
513
|
+
undo(): Promise<StepValue | null>;
|
|
520
514
|
/**
|
|
521
515
|
* 恢复到下一步
|
|
522
516
|
* @returns 下一步数据
|
|
523
517
|
*/
|
|
524
|
-
redo(): Promise<StepValue
|
|
518
|
+
redo(): Promise<StepValue | null>;
|
|
525
519
|
move(left: number, top: number): Promise<void>;
|
|
526
520
|
resetState(): void;
|
|
527
521
|
destroy(): void;
|
|
528
522
|
resetModifiedNodeId(): void;
|
|
529
|
-
usePlugin(options: AsyncHookPlugin
|
|
523
|
+
usePlugin(options: AsyncHookPlugin<AsyncMethodName$3, Editor>): void;
|
|
530
524
|
on<Name extends keyof EditorEvents, Param extends EditorEvents[Name]>(eventName: Name, listener: (...args: Param) => void | Promise<void>): this;
|
|
531
525
|
once<Name extends keyof EditorEvents, Param extends EditorEvents[Name]>(eventName: Name, listener: (...args: Param) => void | Promise<void>): this;
|
|
532
526
|
emit<Name extends keyof EditorEvents, Param extends EditorEvents[Name]>(eventName: Name, ...args: Param): boolean;
|
|
@@ -556,16 +550,30 @@ declare class Events extends export_default {
|
|
|
556
550
|
getMethod(type: string, _targetId: Id): EventOption[];
|
|
557
551
|
resetState(): void;
|
|
558
552
|
destroy(): void;
|
|
559
|
-
usePlugin(options: AsyncHookPlugin
|
|
553
|
+
usePlugin(options: AsyncHookPlugin<AsyncMethodName$2, Events> & SyncHookPlugin<SyncMethodName$3, Events>): void;
|
|
560
554
|
}
|
|
561
555
|
type EventsService = Events;
|
|
562
556
|
declare const _default$39: Events;
|
|
563
557
|
//#endregion
|
|
558
|
+
//#region temp/packages/editor/src/utils/undo-redo.d.ts
|
|
559
|
+
declare class UndoRedo<T = any> {
|
|
560
|
+
private elementList;
|
|
561
|
+
private listCursor;
|
|
562
|
+
private listMaxSize;
|
|
563
|
+
constructor(listMaxSize?: number);
|
|
564
|
+
pushElement(element: T): void;
|
|
565
|
+
canUndo(): boolean;
|
|
566
|
+
undo(): T | null;
|
|
567
|
+
canRedo(): boolean;
|
|
568
|
+
redo(): T | null;
|
|
569
|
+
getCurrentElement(): T | null;
|
|
570
|
+
}
|
|
571
|
+
//#endregion
|
|
564
572
|
//#region temp/packages/editor/src/services/history.d.ts
|
|
565
573
|
declare class History extends export_default {
|
|
566
574
|
state: {
|
|
567
575
|
pageId?: _tmagic_schema0.Id | undefined;
|
|
568
|
-
pageSteps: Record<_tmagic_schema0.Id, UndoRedo
|
|
576
|
+
pageSteps: Record<_tmagic_schema0.Id, UndoRedo<StepValue>>;
|
|
569
577
|
canRedo: boolean;
|
|
570
578
|
canUndo: boolean;
|
|
571
579
|
};
|
|
@@ -574,9 +582,9 @@ declare class History extends export_default {
|
|
|
574
582
|
resetPage(): void;
|
|
575
583
|
changePage(page: MPage | MPageFragment): void;
|
|
576
584
|
resetState(): void;
|
|
577
|
-
push(state: StepValue
|
|
578
|
-
undo(): StepValue
|
|
579
|
-
redo(): StepValue
|
|
585
|
+
push(state: StepValue): StepValue | null;
|
|
586
|
+
undo(): StepValue | null;
|
|
587
|
+
redo(): StepValue | null;
|
|
580
588
|
destroy(): void;
|
|
581
589
|
private getUndoRedo;
|
|
582
590
|
private setCanUndoRedo;
|
|
@@ -610,11 +618,11 @@ declare class Keybinding extends export_default {
|
|
|
610
618
|
* @deprecated
|
|
611
619
|
*/
|
|
612
620
|
unregisteEl(name: string): void;
|
|
613
|
-
register(maps: KeyBindingItem
|
|
621
|
+
register(maps: KeyBindingItem[]): void;
|
|
614
622
|
/**
|
|
615
623
|
* @deprecated
|
|
616
624
|
*/
|
|
617
|
-
registe(map: KeyBindingItem
|
|
625
|
+
registe(map: KeyBindingItem[]): void;
|
|
618
626
|
reset(): void;
|
|
619
627
|
destroy(): void;
|
|
620
628
|
private bind;
|
|
@@ -636,22 +644,22 @@ declare class Props extends export_default {
|
|
|
636
644
|
setDisabledCodeBlock(disabled: boolean): void;
|
|
637
645
|
getDisabledDataSource(): boolean;
|
|
638
646
|
getDisabledCodeBlock(): boolean;
|
|
639
|
-
setPropsConfigs(configs: Record<string, FormConfig | PropsFormConfigFunction
|
|
647
|
+
setPropsConfigs(configs: Record<string, FormConfig | PropsFormConfigFunction>): void;
|
|
640
648
|
fillConfig(config: FormConfig, labelWidth?: string): Promise<FormConfig>;
|
|
641
|
-
setPropsConfig(type: string, config: FormConfig | PropsFormConfigFunction
|
|
649
|
+
setPropsConfig(type: string, config: FormConfig | PropsFormConfigFunction): Promise<void>;
|
|
642
650
|
/**
|
|
643
651
|
* 获取指点类型的组件属性表单配置
|
|
644
652
|
* @param type 组件类型
|
|
645
653
|
* @returns 组件属性表单配置
|
|
646
654
|
*/
|
|
647
655
|
getPropsConfig(type: string): Promise<FormConfig>;
|
|
648
|
-
setPropsValues(values: Record<string, Partial<MNode> | PropsFormValueFunction
|
|
656
|
+
setPropsValues(values: Record<string, Partial<MNode> | PropsFormValueFunction>): void;
|
|
649
657
|
/**
|
|
650
658
|
* 为指点类型组件设置组件初始值
|
|
651
659
|
* @param type 组件类型
|
|
652
660
|
* @param value 组件初始值
|
|
653
661
|
*/
|
|
654
|
-
setPropsValue(type: string, value: Partial<MNode> | PropsFormValueFunction
|
|
662
|
+
setPropsValue(type: string, value: Partial<MNode> | PropsFormValueFunction): Promise<void>;
|
|
655
663
|
/**
|
|
656
664
|
* 获取指定类型的组件初始值
|
|
657
665
|
* @param type 组件类型
|
|
@@ -699,7 +707,7 @@ declare class Props extends export_default {
|
|
|
699
707
|
*/
|
|
700
708
|
clearRelateId(): void;
|
|
701
709
|
destroy(): void;
|
|
702
|
-
usePlugin(options: AsyncHookPlugin
|
|
710
|
+
usePlugin(options: AsyncHookPlugin<AsyncMethodName$1, Props> & SyncHookPlugin<SyncMethodName$2, Props>): void;
|
|
703
711
|
/**
|
|
704
712
|
* 获取setNewItemId前后映射关系
|
|
705
713
|
* @param oldId 原组件ID
|
|
@@ -722,16 +730,16 @@ declare const canUsePluginMethods$2: {
|
|
|
722
730
|
sync: readonly ["openOverlay", "closeOverlay", "updateOverlay", "createStage"];
|
|
723
731
|
};
|
|
724
732
|
type SyncMethodName$1 = Writable<(typeof canUsePluginMethods$2)['sync']>;
|
|
725
|
-
declare class StageOverlay extends
|
|
733
|
+
declare class StageOverlay extends export_default {
|
|
726
734
|
private state;
|
|
727
735
|
constructor();
|
|
728
|
-
get<K extends keyof StageOverlayState
|
|
729
|
-
set<K extends keyof StageOverlayState
|
|
736
|
+
get<K extends keyof StageOverlayState>(name: K): StageOverlayState[K];
|
|
737
|
+
set<K extends keyof StageOverlayState, T extends StageOverlayState[K]>(name: K, value: T): void;
|
|
730
738
|
openOverlay(el: HTMLElement | null): void;
|
|
731
739
|
closeOverlay(): void;
|
|
732
740
|
updateOverlay(): void;
|
|
733
|
-
createStage(stageOptions?: StageOptions
|
|
734
|
-
usePlugin(options: SyncHookPlugin
|
|
741
|
+
createStage(stageOptions?: StageOptions): StageCore$1;
|
|
742
|
+
usePlugin(options: SyncHookPlugin<SyncMethodName$1, StageOverlay>): void;
|
|
735
743
|
private createContentEl;
|
|
736
744
|
private copyDocumentElement;
|
|
737
745
|
private render;
|
|
@@ -800,7 +808,7 @@ declare class WebStorage extends export_default {
|
|
|
800
808
|
*/
|
|
801
809
|
setItem(key: string, value: any, options?: Options$1): void;
|
|
802
810
|
destroy(): void;
|
|
803
|
-
usePlugin(options: SyncHookPlugin
|
|
811
|
+
usePlugin(options: SyncHookPlugin<SyncMethodName, WebStorage>): void;
|
|
804
812
|
private getValueAndProtocol;
|
|
805
813
|
}
|
|
806
814
|
type StorageService = WebStorage;
|
|
@@ -814,32 +822,18 @@ declare const canUsePluginMethods: {
|
|
|
814
822
|
type AsyncMethodName = Writable<(typeof canUsePluginMethods)['async']>;
|
|
815
823
|
declare class Ui extends export_default {
|
|
816
824
|
constructor();
|
|
817
|
-
set<K extends keyof UiState
|
|
818
|
-
get<K extends keyof UiState
|
|
825
|
+
set<K extends keyof UiState, T extends UiState[K]>(name: K, value: T): void;
|
|
826
|
+
get<K extends keyof UiState>(name: K): _vue_reactivity0.ShallowReactive<UiState>[K];
|
|
819
827
|
zoom(zoom: number): Promise<void>;
|
|
820
828
|
calcZoom(): Promise<number>;
|
|
821
829
|
resetState(): void;
|
|
822
830
|
destroy(): void;
|
|
823
|
-
usePlugin(options: AsyncHookPlugin
|
|
831
|
+
usePlugin(options: AsyncHookPlugin<AsyncMethodName, Ui>): void;
|
|
824
832
|
private setStageRect;
|
|
825
833
|
}
|
|
826
834
|
type UiService = Ui;
|
|
827
835
|
declare const _default$45: Ui;
|
|
828
836
|
//#endregion
|
|
829
|
-
//#region temp/packages/editor/src/utils/undo-redo.d.ts
|
|
830
|
-
declare class UndoRedo<T = any> {
|
|
831
|
-
private elementList;
|
|
832
|
-
private listCursor;
|
|
833
|
-
private listMaxSize;
|
|
834
|
-
constructor(listMaxSize?: number);
|
|
835
|
-
pushElement(element: T): void;
|
|
836
|
-
canUndo(): boolean;
|
|
837
|
-
undo(): T | null;
|
|
838
|
-
canRedo(): boolean;
|
|
839
|
-
redo(): T | null;
|
|
840
|
-
getCurrentElement(): T | null;
|
|
841
|
-
}
|
|
842
|
-
//#endregion
|
|
843
837
|
//#region temp/packages/editor/src/type.d.ts
|
|
844
838
|
type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
|
|
845
839
|
workspace(props: {
|
|
@@ -1407,8 +1401,18 @@ interface PageBarSortOptions extends PartSortableOptions {
|
|
|
1407
1401
|
}
|
|
1408
1402
|
type CustomContentMenuFunction = (menus: (MenuButton | MenuComponent)[], type: 'layer' | 'data-source' | 'viewer' | 'code-block') => (MenuButton | MenuComponent)[];
|
|
1409
1403
|
//#endregion
|
|
1404
|
+
//#region temp/packages/form/src/schema.d.ts
|
|
1405
|
+
interface ChangeRecord$1 {
|
|
1406
|
+
propPath?: string;
|
|
1407
|
+
value: any;
|
|
1408
|
+
}
|
|
1409
|
+
interface ContainerChangeEventData$1 {
|
|
1410
|
+
modifyKey?: string;
|
|
1411
|
+
changeRecords?: ChangeRecord$1[];
|
|
1412
|
+
}
|
|
1413
|
+
//#endregion
|
|
1410
1414
|
//#region temp/packages/editor/src/hooks/use-code-block-edit.d.ts
|
|
1411
|
-
declare const useCodeBlockEdit: (codeBlockService: Services
|
|
1415
|
+
declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"]) => {
|
|
1412
1416
|
codeId: _vue_reactivity0.Ref<string | undefined, string | undefined>;
|
|
1413
1417
|
codeConfig: _vue_reactivity0.Ref<CodeBlockContent | undefined, CodeBlockContent | undefined>;
|
|
1414
1418
|
codeBlockEditor: Readonly<_vue_reactivity0.ShallowRef<_vue_runtime_core0.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -1421,7 +1425,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services$1["codeBlockService"
|
|
|
1421
1425
|
visible?: boolean;
|
|
1422
1426
|
}> & Readonly<{
|
|
1423
1427
|
onClose?: (() => any) | undefined;
|
|
1424
|
-
onSubmit?: ((values: CodeBlockContent, eventData:
|
|
1428
|
+
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
1425
1429
|
onOpen?: (() => any) | undefined;
|
|
1426
1430
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
1427
1431
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
@@ -1430,7 +1434,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services$1["codeBlockService"
|
|
|
1430
1434
|
hide(): Promise<void>;
|
|
1431
1435
|
}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
1432
1436
|
close: () => any;
|
|
1433
|
-
submit: (values: CodeBlockContent, eventData:
|
|
1437
|
+
submit: (values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any;
|
|
1434
1438
|
open: () => any;
|
|
1435
1439
|
"update:width": (value: number) => any;
|
|
1436
1440
|
"update:visible": (value: boolean) => any;
|
|
@@ -1451,7 +1455,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services$1["codeBlockService"
|
|
|
1451
1455
|
visible?: boolean;
|
|
1452
1456
|
}> & Readonly<{
|
|
1453
1457
|
onClose?: (() => any) | undefined;
|
|
1454
|
-
onSubmit?: ((values: CodeBlockContent, eventData:
|
|
1458
|
+
onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
|
|
1455
1459
|
onOpen?: (() => any) | undefined;
|
|
1456
1460
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
1457
1461
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
@@ -1466,7 +1470,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services$1["codeBlockService"
|
|
|
1466
1470
|
};
|
|
1467
1471
|
//#endregion
|
|
1468
1472
|
//#region temp/packages/editor/src/hooks/use-stage.d.ts
|
|
1469
|
-
declare const useStage: (stageOptions: StageOptions
|
|
1473
|
+
declare const useStage: (stageOptions: StageOptions) => StageCore$1;
|
|
1470
1474
|
//#endregion
|
|
1471
1475
|
//#region temp/packages/editor/src/hooks/use-float-box.d.ts
|
|
1472
1476
|
interface State {
|
|
@@ -1499,7 +1503,7 @@ declare const useEditorContentHeight: () => {
|
|
|
1499
1503
|
};
|
|
1500
1504
|
//#endregion
|
|
1501
1505
|
//#region temp/packages/editor/src/hooks/use-filter.d.ts
|
|
1502
|
-
declare const useFilter: (nodeData: Ref<TreeNodeData
|
|
1506
|
+
declare const useFilter: (nodeData: Ref<TreeNodeData[]>, nodeStatusMap: Ref<Map<Id, LayerNodeStatus> | undefined>, filterNodeMethod: (value: string, data: MNode) => boolean) => {
|
|
1503
1507
|
filterText: Ref<string, string>;
|
|
1504
1508
|
filterTextChangeHandler(text: string | string[]): void;
|
|
1505
1509
|
};
|
|
@@ -1510,7 +1514,7 @@ declare const useGetSo: (target: ShallowRef<HTMLElement | null>, emit: (evt: "ch
|
|
|
1510
1514
|
};
|
|
1511
1515
|
//#endregion
|
|
1512
1516
|
//#region temp/packages/editor/src/hooks/use-next-float-box-position.d.ts
|
|
1513
|
-
declare const useNextFloatBoxPosition: (uiService: Services
|
|
1517
|
+
declare const useNextFloatBoxPosition: (uiService: Services["uiService"], parent?: Ref<HTMLDivElement | null>) => {
|
|
1514
1518
|
boxPosition: Ref<{
|
|
1515
1519
|
left: number;
|
|
1516
1520
|
top: number;
|
|
@@ -1525,26 +1529,26 @@ declare const useNextFloatBoxPosition: (uiService: Services$1["uiService"], pare
|
|
|
1525
1529
|
};
|
|
1526
1530
|
//#endregion
|
|
1527
1531
|
//#region temp/packages/editor/src/hooks/use-node-status.d.ts
|
|
1528
|
-
declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData
|
|
1532
|
+
declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
1529
1533
|
nodeStatusMap: _vue_reactivity0.Ref<Map<Id, {
|
|
1530
1534
|
visible: boolean;
|
|
1531
1535
|
expand: boolean;
|
|
1532
1536
|
selected: boolean;
|
|
1533
1537
|
draggable: boolean;
|
|
1534
|
-
}> & Omit<Map<Id, LayerNodeStatus
|
|
1538
|
+
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>, Map<Id, LayerNodeStatus> | (Map<Id, {
|
|
1535
1539
|
visible: boolean;
|
|
1536
1540
|
expand: boolean;
|
|
1537
1541
|
selected: boolean;
|
|
1538
1542
|
draggable: boolean;
|
|
1539
|
-
}> & Omit<Map<Id, LayerNodeStatus
|
|
1543
|
+
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
|
|
1540
1544
|
};
|
|
1541
1545
|
//#endregion
|
|
1542
1546
|
//#region temp/packages/editor/src/hooks/use-services.d.ts
|
|
1543
|
-
declare const useServices: () => Services
|
|
1547
|
+
declare const useServices: () => Services;
|
|
1544
1548
|
//#endregion
|
|
1545
1549
|
//#region temp/packages/editor/src/utils/config.d.ts
|
|
1546
|
-
declare const setEditorConfig: (option: EditorInstallOptions
|
|
1547
|
-
declare const getEditorConfig: <K extends keyof EditorInstallOptions
|
|
1550
|
+
declare const setEditorConfig: (option: EditorInstallOptions) => void;
|
|
1551
|
+
declare const getEditorConfig: <K extends keyof EditorInstallOptions>(key: K) => EditorInstallOptions[K];
|
|
1548
1552
|
//#endregion
|
|
1549
1553
|
//#region temp/packages/editor/src/utils/props.d.ts
|
|
1550
1554
|
declare const arrayOptions: {
|
|
@@ -1616,13 +1620,13 @@ declare const generatePageName: (pageNameList: string[], type: NodeType.PAGE | N
|
|
|
1616
1620
|
declare const generatePageNameByApp: (app: MApp, type: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => string;
|
|
1617
1621
|
declare const getNodeIndex: (id: Id, parent: MContainer | MApp) => number;
|
|
1618
1622
|
declare const getRelativeStyle: (style?: Record<string, any>) => Record<string, any>;
|
|
1619
|
-
declare const getInitPositionStyle: (style: Record<string, any> | undefined, layout: Layout
|
|
1620
|
-
declare const setChildrenLayout: (node: MContainer, layout: Layout
|
|
1621
|
-
declare const setLayout: (node: MNode, layout: Layout
|
|
1623
|
+
declare const getInitPositionStyle: (style: Record<string, any> | undefined, layout: Layout) => Record<string, any>;
|
|
1624
|
+
declare const setChildrenLayout: (node: MContainer, layout: Layout) => MContainer;
|
|
1625
|
+
declare const setLayout: (node: MNode, layout: Layout) => _tmagic_schema0.MComponent | undefined;
|
|
1622
1626
|
declare const change2Fixed: (node: MNode, root: MApp) => {
|
|
1623
1627
|
[key: string]: any;
|
|
1624
1628
|
};
|
|
1625
|
-
declare const Fixed2Other: (node: MNode, root: MApp, getLayout: (parent: MNode, node?: MNode) => Promise<Layout
|
|
1629
|
+
declare const Fixed2Other: (node: MNode, root: MApp, getLayout: (parent: MNode, node?: MNode) => Promise<Layout>) => Promise<Record<string, any>>;
|
|
1626
1630
|
declare const getGuideLineFromCache: (key: string) => number[];
|
|
1627
1631
|
declare const fixNodeLeft: (config: MNode, parent: MContainer, doc?: Document) => any;
|
|
1628
1632
|
declare const fixNodePosition: (config: MNode, parent: MContainer, stage: StageCore$1 | null) => _tmagic_schema0.StyleSchema | undefined;
|
|
@@ -1641,19 +1645,19 @@ declare const buildChangeRecords: (value: any, basePath: string) => {
|
|
|
1641
1645
|
* @param config 待粘贴的元素配置(复制时保存的那份配置)
|
|
1642
1646
|
* @returns
|
|
1643
1647
|
*/
|
|
1644
|
-
declare const beforePaste: (position: PastePosition
|
|
1648
|
+
declare const beforePaste: (position: PastePosition, config: MNode[], doc?: Document) => MNode[];
|
|
1645
1649
|
/**
|
|
1646
1650
|
* 将元素粘贴到容器内时,将相对于画布坐标转换为相对于容器的坐标
|
|
1647
1651
|
* @param position PastePosition 粘贴时相对于画布的坐标
|
|
1648
1652
|
* @param id 元素id
|
|
1649
1653
|
* @returns PastePosition 转换后的坐标
|
|
1650
1654
|
*/
|
|
1651
|
-
declare const getPositionInContainer: (position: PastePosition
|
|
1655
|
+
declare const getPositionInContainer: (position: PastePosition | undefined, id: Id, doc?: Document) => {
|
|
1652
1656
|
left: number;
|
|
1653
1657
|
top: number;
|
|
1654
1658
|
};
|
|
1655
1659
|
declare const getAddParent: (node: MNode) => MContainer | null | undefined;
|
|
1656
|
-
declare const getDefaultConfig: (addNode: AddMNode
|
|
1660
|
+
declare const getDefaultConfig: (addNode: AddMNode, parentNode: MContainer) => Promise<any>;
|
|
1657
1661
|
//#endregion
|
|
1658
1662
|
//#region temp/packages/editor/src/utils/data-source/index.d.ts
|
|
1659
1663
|
declare const getFormConfig: (type: string, configs: Record<string, FormConfig>) => FormConfig;
|
|
@@ -1728,7 +1732,7 @@ declare class ScrollViewer extends EventEmitter$1 {
|
|
|
1728
1732
|
}
|
|
1729
1733
|
//#endregion
|
|
1730
1734
|
//#region temp/packages/editor/src/utils/tree.d.ts
|
|
1731
|
-
declare const updateStatus: (nodeStatusMap: Map<Id, LayerNodeStatus
|
|
1735
|
+
declare const updateStatus: (nodeStatusMap: Map<Id, LayerNodeStatus>, id: Id, status: Partial<LayerNodeStatus>) => void;
|
|
1732
1736
|
//#endregion
|
|
1733
1737
|
//#region temp/packages/editor/src/utils/const.d.ts
|
|
1734
1738
|
/** 当uiService.get('uiSelectMode')为true,点击组件(包括任何形式,组件树/画布)时触发的事件名 */
|
|
@@ -1856,7 +1860,7 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
1856
1860
|
readonly extendState?: ((_state: _tmagic_form_schema0.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
1857
1861
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
1858
1862
|
readonly onUnmounted?: (() => any) | undefined;
|
|
1859
|
-
readonly onSubmit?: ((values: any, eventData?:
|
|
1863
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
1860
1864
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
1861
1865
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
1862
1866
|
} & _vue_runtime_core0.VNodeProps & _vue_runtime_core0.AllowedComponentProps & _vue_runtime_core0.ComponentCustomProps;
|
|
@@ -1872,7 +1876,7 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
1872
1876
|
$root: _vue_runtime_core0.ComponentPublicInstance | null;
|
|
1873
1877
|
$parent: _vue_runtime_core0.ComponentPublicInstance | null;
|
|
1874
1878
|
$host: Element | null;
|
|
1875
|
-
$emit: ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit", values: any, eventData?:
|
|
1879
|
+
$emit: ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined) => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
1876
1880
|
$el: any;
|
|
1877
1881
|
$options: _vue_runtime_core0.ComponentOptionsBase<Readonly<{
|
|
1878
1882
|
config: _tmagic_form_schema0.FormConfig;
|
|
@@ -1885,7 +1889,7 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
1885
1889
|
}> & Readonly<{
|
|
1886
1890
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
1887
1891
|
onUnmounted?: (() => any) | undefined;
|
|
1888
|
-
onSubmit?: ((values: any, eventData?:
|
|
1892
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
1889
1893
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
1890
1894
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
1891
1895
|
}>, {
|
|
@@ -1917,8 +1921,8 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
1917
1921
|
lastValuesProcessed: _vue_reactivity0.Ref<_tmagic_form_schema0.FormValue, _tmagic_form_schema0.FormValue>;
|
|
1918
1922
|
formState: _tmagic_form_schema0.FormState;
|
|
1919
1923
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
1920
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
1921
|
-
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
1924
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
1925
|
+
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
1922
1926
|
resetForm: () => void;
|
|
1923
1927
|
submitForm: (native?: boolean) => Promise<any>;
|
|
1924
1928
|
getTextByName: (name: string, config?: _tmagic_form_schema0.FormConfig) => string | undefined;
|
|
@@ -1934,13 +1938,13 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
1934
1938
|
inline: boolean;
|
|
1935
1939
|
labelPosition: string;
|
|
1936
1940
|
config: _tmagic_form_schema0.FormConfig;
|
|
1937
|
-
height: string;
|
|
1938
1941
|
initValues: Record<string, any>;
|
|
1939
1942
|
lastValues: Record<string, any>;
|
|
1940
1943
|
isCompare: boolean;
|
|
1941
1944
|
keyProp: string;
|
|
1942
1945
|
parentValues: Record<string, any>;
|
|
1943
1946
|
stepActive: string | number;
|
|
1947
|
+
height: string;
|
|
1944
1948
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
1945
1949
|
P: {};
|
|
1946
1950
|
B: {};
|
|
@@ -1976,8 +1980,8 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
1976
1980
|
lastValuesProcessed: _vue_reactivity0.Ref<_tmagic_form_schema0.FormValue, _tmagic_form_schema0.FormValue>;
|
|
1977
1981
|
formState: _tmagic_form_schema0.FormState;
|
|
1978
1982
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
1979
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
1980
|
-
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
1983
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
1984
|
+
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
1981
1985
|
resetForm: () => void;
|
|
1982
1986
|
submitForm: (native?: boolean) => Promise<any>;
|
|
1983
1987
|
getTextByName: (name: string, config?: _tmagic_form_schema0.FormConfig) => string | undefined;
|
|
@@ -1987,19 +1991,19 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
1987
1991
|
inline: boolean;
|
|
1988
1992
|
labelPosition: string;
|
|
1989
1993
|
config: _tmagic_form_schema0.FormConfig;
|
|
1990
|
-
height: string;
|
|
1991
1994
|
initValues: Record<string, any>;
|
|
1992
1995
|
lastValues: Record<string, any>;
|
|
1993
1996
|
isCompare: boolean;
|
|
1994
1997
|
keyProp: string;
|
|
1995
1998
|
parentValues: Record<string, any>;
|
|
1996
1999
|
stepActive: string | number;
|
|
2000
|
+
height: string;
|
|
1997
2001
|
}> | null>>;
|
|
1998
|
-
submit: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2002
|
+
submit: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
1999
2003
|
}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
2000
2004
|
mounted: (internalInstance: any) => any;
|
|
2001
2005
|
unmounted: () => any;
|
|
2002
|
-
submit: (values: any, eventData?:
|
|
2006
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
2003
2007
|
"submit-error": (e: any) => any;
|
|
2004
2008
|
"form-error": (e: any) => any;
|
|
2005
2009
|
}, string, {}, {}, string, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, _vue_runtime_core0.ComponentProvideOptions> & {
|
|
@@ -2033,7 +2037,7 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2033
2037
|
}> & Readonly<{
|
|
2034
2038
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2035
2039
|
onUnmounted?: (() => any) | undefined;
|
|
2036
|
-
onSubmit?: ((values: any, eventData?:
|
|
2040
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
2037
2041
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2038
2042
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
2039
2043
|
}>, "submit" | "configForm"> & _vue_reactivity0.ShallowUnwrapRef<{
|
|
@@ -2065,8 +2069,8 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2065
2069
|
lastValuesProcessed: _vue_reactivity0.Ref<_tmagic_form_schema0.FormValue, _tmagic_form_schema0.FormValue>;
|
|
2066
2070
|
formState: _tmagic_form_schema0.FormState;
|
|
2067
2071
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
2068
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
2069
|
-
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2072
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
2073
|
+
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
2070
2074
|
resetForm: () => void;
|
|
2071
2075
|
submitForm: (native?: boolean) => Promise<any>;
|
|
2072
2076
|
getTextByName: (name: string, config?: _tmagic_form_schema0.FormConfig) => string | undefined;
|
|
@@ -2082,13 +2086,13 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2082
2086
|
inline: boolean;
|
|
2083
2087
|
labelPosition: string;
|
|
2084
2088
|
config: _tmagic_form_schema0.FormConfig;
|
|
2085
|
-
height: string;
|
|
2086
2089
|
initValues: Record<string, any>;
|
|
2087
2090
|
lastValues: Record<string, any>;
|
|
2088
2091
|
isCompare: boolean;
|
|
2089
2092
|
keyProp: string;
|
|
2090
2093
|
parentValues: Record<string, any>;
|
|
2091
2094
|
stepActive: string | number;
|
|
2095
|
+
height: string;
|
|
2092
2096
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
2093
2097
|
P: {};
|
|
2094
2098
|
B: {};
|
|
@@ -2124,8 +2128,8 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2124
2128
|
lastValuesProcessed: _vue_reactivity0.Ref<_tmagic_form_schema0.FormValue, _tmagic_form_schema0.FormValue>;
|
|
2125
2129
|
formState: _tmagic_form_schema0.FormState;
|
|
2126
2130
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
2127
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
2128
|
-
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2131
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
2132
|
+
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
2129
2133
|
resetForm: () => void;
|
|
2130
2134
|
submitForm: (native?: boolean) => Promise<any>;
|
|
2131
2135
|
getTextByName: (name: string, config?: _tmagic_form_schema0.FormConfig) => string | undefined;
|
|
@@ -2135,15 +2139,15 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2135
2139
|
inline: boolean;
|
|
2136
2140
|
labelPosition: string;
|
|
2137
2141
|
config: _tmagic_form_schema0.FormConfig;
|
|
2138
|
-
height: string;
|
|
2139
2142
|
initValues: Record<string, any>;
|
|
2140
2143
|
lastValues: Record<string, any>;
|
|
2141
2144
|
isCompare: boolean;
|
|
2142
2145
|
keyProp: string;
|
|
2143
2146
|
parentValues: Record<string, any>;
|
|
2144
2147
|
stepActive: string | number;
|
|
2148
|
+
height: string;
|
|
2145
2149
|
}> | null>>;
|
|
2146
|
-
submit: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2150
|
+
submit: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
2147
2151
|
}> & {} & _vue_runtime_core0.ComponentCustomProperties & {} & {
|
|
2148
2152
|
$slots: {
|
|
2149
2153
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -2167,7 +2171,7 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2167
2171
|
readonly extendState?: ((_state: _tmagic_form_schema0.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
2168
2172
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2169
2173
|
readonly onUnmounted?: (() => any) | undefined;
|
|
2170
|
-
readonly onSubmit?: ((values: any, eventData?:
|
|
2174
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
2171
2175
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2172
2176
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
2173
2177
|
} & _vue_runtime_core0.VNodeProps & _vue_runtime_core0.AllowedComponentProps & _vue_runtime_core0.ComponentCustomProps;
|
|
@@ -2183,7 +2187,7 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2183
2187
|
$root: _vue_runtime_core0.ComponentPublicInstance | null;
|
|
2184
2188
|
$parent: _vue_runtime_core0.ComponentPublicInstance | null;
|
|
2185
2189
|
$host: Element | null;
|
|
2186
|
-
$emit: ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit", values: any, eventData?:
|
|
2190
|
+
$emit: ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined) => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
2187
2191
|
$el: any;
|
|
2188
2192
|
$options: _vue_runtime_core0.ComponentOptionsBase<Readonly<{
|
|
2189
2193
|
config: _tmagic_form_schema0.FormConfig;
|
|
@@ -2196,7 +2200,7 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2196
2200
|
}> & Readonly<{
|
|
2197
2201
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2198
2202
|
onUnmounted?: (() => any) | undefined;
|
|
2199
|
-
onSubmit?: ((values: any, eventData?:
|
|
2203
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
2200
2204
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2201
2205
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
2202
2206
|
}>, {
|
|
@@ -2228,8 +2232,8 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2228
2232
|
lastValuesProcessed: _vue_reactivity0.Ref<_tmagic_form_schema0.FormValue, _tmagic_form_schema0.FormValue>;
|
|
2229
2233
|
formState: _tmagic_form_schema0.FormState;
|
|
2230
2234
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
2231
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
2232
|
-
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2235
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
2236
|
+
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
2233
2237
|
resetForm: () => void;
|
|
2234
2238
|
submitForm: (native?: boolean) => Promise<any>;
|
|
2235
2239
|
getTextByName: (name: string, config?: _tmagic_form_schema0.FormConfig) => string | undefined;
|
|
@@ -2245,13 +2249,13 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2245
2249
|
inline: boolean;
|
|
2246
2250
|
labelPosition: string;
|
|
2247
2251
|
config: _tmagic_form_schema0.FormConfig;
|
|
2248
|
-
height: string;
|
|
2249
2252
|
initValues: Record<string, any>;
|
|
2250
2253
|
lastValues: Record<string, any>;
|
|
2251
2254
|
isCompare: boolean;
|
|
2252
2255
|
keyProp: string;
|
|
2253
2256
|
parentValues: Record<string, any>;
|
|
2254
2257
|
stepActive: string | number;
|
|
2258
|
+
height: string;
|
|
2255
2259
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
2256
2260
|
P: {};
|
|
2257
2261
|
B: {};
|
|
@@ -2287,8 +2291,8 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2287
2291
|
lastValuesProcessed: _vue_reactivity0.Ref<_tmagic_form_schema0.FormValue, _tmagic_form_schema0.FormValue>;
|
|
2288
2292
|
formState: _tmagic_form_schema0.FormState;
|
|
2289
2293
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
2290
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
2291
|
-
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2294
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
2295
|
+
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
2292
2296
|
resetForm: () => void;
|
|
2293
2297
|
submitForm: (native?: boolean) => Promise<any>;
|
|
2294
2298
|
getTextByName: (name: string, config?: _tmagic_form_schema0.FormConfig) => string | undefined;
|
|
@@ -2298,19 +2302,19 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2298
2302
|
inline: boolean;
|
|
2299
2303
|
labelPosition: string;
|
|
2300
2304
|
config: _tmagic_form_schema0.FormConfig;
|
|
2301
|
-
height: string;
|
|
2302
2305
|
initValues: Record<string, any>;
|
|
2303
2306
|
lastValues: Record<string, any>;
|
|
2304
2307
|
isCompare: boolean;
|
|
2305
2308
|
keyProp: string;
|
|
2306
2309
|
parentValues: Record<string, any>;
|
|
2307
2310
|
stepActive: string | number;
|
|
2311
|
+
height: string;
|
|
2308
2312
|
}> | null>>;
|
|
2309
|
-
submit: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2313
|
+
submit: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
2310
2314
|
}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
2311
2315
|
mounted: (internalInstance: any) => any;
|
|
2312
2316
|
unmounted: () => any;
|
|
2313
|
-
submit: (values: any, eventData?:
|
|
2317
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined) => any;
|
|
2314
2318
|
"submit-error": (e: any) => any;
|
|
2315
2319
|
"form-error": (e: any) => any;
|
|
2316
2320
|
}, string, {}, {}, string, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, _vue_runtime_core0.ComponentProvideOptions> & {
|
|
@@ -2344,7 +2348,7 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2344
2348
|
}> & Readonly<{
|
|
2345
2349
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
2346
2350
|
onUnmounted?: (() => any) | undefined;
|
|
2347
|
-
onSubmit?: ((values: any, eventData?:
|
|
2351
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined) => any) | undefined;
|
|
2348
2352
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
2349
2353
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
2350
2354
|
}>, "submit" | "configForm"> & _vue_reactivity0.ShallowUnwrapRef<{
|
|
@@ -2376,8 +2380,8 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2376
2380
|
lastValuesProcessed: _vue_reactivity0.Ref<_tmagic_form_schema0.FormValue, _tmagic_form_schema0.FormValue>;
|
|
2377
2381
|
formState: _tmagic_form_schema0.FormState;
|
|
2378
2382
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
2379
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
2380
|
-
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2383
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
2384
|
+
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
2381
2385
|
resetForm: () => void;
|
|
2382
2386
|
submitForm: (native?: boolean) => Promise<any>;
|
|
2383
2387
|
getTextByName: (name: string, config?: _tmagic_form_schema0.FormConfig) => string | undefined;
|
|
@@ -2393,13 +2397,13 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2393
2397
|
inline: boolean;
|
|
2394
2398
|
labelPosition: string;
|
|
2395
2399
|
config: _tmagic_form_schema0.FormConfig;
|
|
2396
|
-
height: string;
|
|
2397
2400
|
initValues: Record<string, any>;
|
|
2398
2401
|
lastValues: Record<string, any>;
|
|
2399
2402
|
isCompare: boolean;
|
|
2400
2403
|
keyProp: string;
|
|
2401
2404
|
parentValues: Record<string, any>;
|
|
2402
2405
|
stepActive: string | number;
|
|
2406
|
+
height: string;
|
|
2403
2407
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
2404
2408
|
P: {};
|
|
2405
2409
|
B: {};
|
|
@@ -2435,8 +2439,8 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2435
2439
|
lastValuesProcessed: _vue_reactivity0.Ref<_tmagic_form_schema0.FormValue, _tmagic_form_schema0.FormValue>;
|
|
2436
2440
|
formState: _tmagic_form_schema0.FormState;
|
|
2437
2441
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
2438
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
2439
|
-
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2442
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
2443
|
+
changeHandler: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => void;
|
|
2440
2444
|
resetForm: () => void;
|
|
2441
2445
|
submitForm: (native?: boolean) => Promise<any>;
|
|
2442
2446
|
getTextByName: (name: string, config?: _tmagic_form_schema0.FormConfig) => string | undefined;
|
|
@@ -2446,15 +2450,15 @@ declare const __VLS_base$12: _vue_runtime_core0.DefineComponent<EditorProps, Ser
|
|
|
2446
2450
|
inline: boolean;
|
|
2447
2451
|
labelPosition: string;
|
|
2448
2452
|
config: _tmagic_form_schema0.FormConfig;
|
|
2449
|
-
height: string;
|
|
2450
2453
|
initValues: Record<string, any>;
|
|
2451
2454
|
lastValues: Record<string, any>;
|
|
2452
2455
|
isCompare: boolean;
|
|
2453
2456
|
keyProp: string;
|
|
2454
2457
|
parentValues: Record<string, any>;
|
|
2455
2458
|
stepActive: string | number;
|
|
2459
|
+
height: string;
|
|
2456
2460
|
}> | null>>;
|
|
2457
|
-
submit: (v: _tmagic_form_schema0.FormValue, eventData:
|
|
2461
|
+
submit: (v: _tmagic_form_schema0.FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
2458
2462
|
}> & {} & _vue_runtime_core0.ComponentCustomProperties & {} & {
|
|
2459
2463
|
$slots: {
|
|
2460
2464
|
'props-form-panel-header'(_props: {}): any;
|
|
@@ -2535,16 +2539,16 @@ declare const __VLS_export$32: _vue_runtime_core0.DefineComponent<__VLS_Props$30
|
|
|
2535
2539
|
onInitd?: ((...args: any[]) => any) | undefined;
|
|
2536
2540
|
}>, {
|
|
2537
2541
|
options: monaco_editor0.editor.IStandaloneEditorConstructionOptions;
|
|
2542
|
+
initValues: any;
|
|
2538
2543
|
language: string;
|
|
2539
2544
|
parse: boolean;
|
|
2540
|
-
initValues: any;
|
|
2541
2545
|
autoSave: boolean;
|
|
2542
2546
|
disabledFullScreen: boolean;
|
|
2543
2547
|
}, {}, {}, {}, string, _vue_runtime_core0.ComponentProvideOptions, false, {}, any>;
|
|
2544
2548
|
declare const _default$29: typeof __VLS_export$32;
|
|
2545
2549
|
//#endregion
|
|
2546
2550
|
//#region temp/packages/editor/src/layouts/sidebar/ComponentListPanel.vue.d.ts
|
|
2547
|
-
type __VLS_Slots$11 = ComponentListPanelSlots
|
|
2551
|
+
type __VLS_Slots$11 = ComponentListPanelSlots;
|
|
2548
2552
|
declare const __VLS_base$11: _vue_runtime_core0.DefineComponent<{}, {}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {}, string, _vue_runtime_core0.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _vue_runtime_core0.ComponentProvideOptions, true, {}, any>;
|
|
2549
2553
|
declare const __VLS_export$31: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
|
|
2550
2554
|
declare const _default$5: typeof __VLS_export$31;
|
|
@@ -2555,12 +2559,12 @@ type __VLS_WithSlots$11<T, S> = T & {
|
|
|
2555
2559
|
};
|
|
2556
2560
|
//#endregion
|
|
2557
2561
|
//#region temp/packages/editor/src/layouts/sidebar/layer/LayerPanel.vue.d.ts
|
|
2558
|
-
type __VLS_Slots$10 = LayerPanelSlots
|
|
2562
|
+
type __VLS_Slots$10 = LayerPanelSlots;
|
|
2559
2563
|
type __VLS_Props$29 = {
|
|
2560
|
-
layerContentMenu: (MenuButton
|
|
2564
|
+
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
2561
2565
|
indent?: number;
|
|
2562
2566
|
nextLevelIndentIncrement?: number;
|
|
2563
|
-
customContentMenu: CustomContentMenuFunction
|
|
2567
|
+
customContentMenu: CustomContentMenuFunction;
|
|
2564
2568
|
};
|
|
2565
2569
|
declare const __VLS_base$10: _vue_runtime_core0.DefineComponent<__VLS_Props$29, {}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {}, string, _vue_runtime_core0.PublicProps, Readonly<__VLS_Props$29> & Readonly<{}>, {}, {}, {}, {}, string, _vue_runtime_core0.ComponentProvideOptions, false, {}, any>;
|
|
2566
2570
|
declare const __VLS_export$30: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
|
|
@@ -2710,11 +2714,11 @@ declare const __VLS_export$19: _vue_runtime_core0.DefineComponent<__VLS_Props$18
|
|
|
2710
2714
|
declare const _default$21: typeof __VLS_export$19;
|
|
2711
2715
|
//#endregion
|
|
2712
2716
|
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockList.vue.d.ts
|
|
2713
|
-
type __VLS_Slots$9 = CodeBlockListSlots
|
|
2717
|
+
type __VLS_Slots$9 = CodeBlockListSlots;
|
|
2714
2718
|
type __VLS_Props$17 = {
|
|
2715
2719
|
indent?: number;
|
|
2716
2720
|
nextLevelIndentIncrement?: number;
|
|
2717
|
-
customError?: (_id: Id, _errorType: CodeDeleteErrorType
|
|
2721
|
+
customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
|
|
2718
2722
|
};
|
|
2719
2723
|
declare const __VLS_base$9: _vue_runtime_core0.DefineComponent<__VLS_Props$17, {
|
|
2720
2724
|
nodeStatusMap: _vue_reactivity0.Ref<Map<Id, {
|
|
@@ -2722,22 +2726,22 @@ declare const __VLS_base$9: _vue_runtime_core0.DefineComponent<__VLS_Props$17, {
|
|
|
2722
2726
|
expand: boolean;
|
|
2723
2727
|
selected: boolean;
|
|
2724
2728
|
draggable: boolean;
|
|
2725
|
-
}> & Omit<Map<Id,
|
|
2729
|
+
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>, Map<Id, LayerNodeStatus> | (Map<Id, {
|
|
2726
2730
|
visible: boolean;
|
|
2727
2731
|
expand: boolean;
|
|
2728
2732
|
selected: boolean;
|
|
2729
2733
|
draggable: boolean;
|
|
2730
|
-
}> & Omit<Map<Id,
|
|
2734
|
+
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
|
|
2731
2735
|
filter: (text: string | string[]) => void;
|
|
2732
2736
|
deleteCode: (id: string) => Promise<void>;
|
|
2733
2737
|
}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
2734
2738
|
remove: (id: string) => any;
|
|
2735
2739
|
edit: (id: string) => any;
|
|
2736
|
-
"node-contextmenu": (event: MouseEvent, data: TreeNodeData
|
|
2740
|
+
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => any;
|
|
2737
2741
|
}, string, _vue_runtime_core0.PublicProps, Readonly<__VLS_Props$17> & Readonly<{
|
|
2738
2742
|
onRemove?: ((id: string) => any) | undefined;
|
|
2739
2743
|
onEdit?: ((id: string) => any) | undefined;
|
|
2740
|
-
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData
|
|
2744
|
+
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
2741
2745
|
}>, {}, {}, {}, {}, string, _vue_runtime_core0.ComponentProvideOptions, false, {}, any>;
|
|
2742
2746
|
declare const __VLS_export$18: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
2743
2747
|
declare const _default$1: typeof __VLS_export$18;
|
|
@@ -2748,12 +2752,12 @@ type __VLS_WithSlots$9<T, S> = T & {
|
|
|
2748
2752
|
};
|
|
2749
2753
|
//#endregion
|
|
2750
2754
|
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts
|
|
2751
|
-
type __VLS_Slots$8 = CodeBlockListPanelSlots
|
|
2755
|
+
type __VLS_Slots$8 = CodeBlockListPanelSlots;
|
|
2752
2756
|
type __VLS_Props$16 = {
|
|
2753
2757
|
indent?: number;
|
|
2754
2758
|
nextLevelIndentIncrement?: number;
|
|
2755
|
-
customError?: (_id: Id, _errorType: CodeDeleteErrorType
|
|
2756
|
-
customContentMenu: CustomContentMenuFunction
|
|
2759
|
+
customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
|
|
2760
|
+
customContentMenu: CustomContentMenuFunction;
|
|
2757
2761
|
};
|
|
2758
2762
|
declare const __VLS_base$8: _vue_runtime_core0.DefineComponent<__VLS_Props$16, {}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {}, string, _vue_runtime_core0.PublicProps, Readonly<__VLS_Props$16> & Readonly<{}>, {}, {}, {}, {}, string, _vue_runtime_core0.ComponentProvideOptions, false, {}, any>;
|
|
2759
2763
|
declare const __VLS_export$17: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
@@ -2810,7 +2814,7 @@ declare const __VLS_export$15: _vue_runtime_core0.DefineComponent<__VLS_Props$14
|
|
|
2810
2814
|
declare const _default$8: typeof __VLS_export$15;
|
|
2811
2815
|
//#endregion
|
|
2812
2816
|
//#region temp/packages/editor/src/layouts/props-panel/PropsPanel.vue.d.ts
|
|
2813
|
-
type __VLS_Slots$7 = PropsPanelSlots
|
|
2817
|
+
type __VLS_Slots$7 = PropsPanelSlots;
|
|
2814
2818
|
type __VLS_Props$13 = {
|
|
2815
2819
|
disabledShowSrc?: boolean;
|
|
2816
2820
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
@@ -2893,7 +2897,7 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
2893
2897
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
2894
2898
|
formState: FormState;
|
|
2895
2899
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
2896
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
2900
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
2897
2901
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
2898
2902
|
resetForm: () => void;
|
|
2899
2903
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -2910,13 +2914,13 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
2910
2914
|
inline: boolean;
|
|
2911
2915
|
labelPosition: string;
|
|
2912
2916
|
config: _tmagic_form_schema0.FormConfig;
|
|
2913
|
-
height: string;
|
|
2914
2917
|
initValues: Record<string, any>;
|
|
2915
2918
|
lastValues: Record<string, any>;
|
|
2916
2919
|
isCompare: boolean;
|
|
2917
2920
|
keyProp: string;
|
|
2918
2921
|
parentValues: Record<string, any>;
|
|
2919
2922
|
stepActive: string | number;
|
|
2923
|
+
height: string;
|
|
2920
2924
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
2921
2925
|
P: {};
|
|
2922
2926
|
B: {};
|
|
@@ -2952,7 +2956,7 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
2952
2956
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
2953
2957
|
formState: FormState;
|
|
2954
2958
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
2955
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
2959
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
2956
2960
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
2957
2961
|
resetForm: () => void;
|
|
2958
2962
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -2963,13 +2967,13 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
2963
2967
|
inline: boolean;
|
|
2964
2968
|
labelPosition: string;
|
|
2965
2969
|
config: _tmagic_form_schema0.FormConfig;
|
|
2966
|
-
height: string;
|
|
2967
2970
|
initValues: Record<string, any>;
|
|
2968
2971
|
lastValues: Record<string, any>;
|
|
2969
2972
|
isCompare: boolean;
|
|
2970
2973
|
keyProp: string;
|
|
2971
2974
|
parentValues: Record<string, any>;
|
|
2972
2975
|
stepActive: string | number;
|
|
2976
|
+
height: string;
|
|
2973
2977
|
}> | null>>;
|
|
2974
2978
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
2975
2979
|
}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
@@ -3041,7 +3045,7 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3041
3045
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
3042
3046
|
formState: FormState;
|
|
3043
3047
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
3044
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
3048
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
3045
3049
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
3046
3050
|
resetForm: () => void;
|
|
3047
3051
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -3058,13 +3062,13 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3058
3062
|
inline: boolean;
|
|
3059
3063
|
labelPosition: string;
|
|
3060
3064
|
config: _tmagic_form_schema0.FormConfig;
|
|
3061
|
-
height: string;
|
|
3062
3065
|
initValues: Record<string, any>;
|
|
3063
3066
|
lastValues: Record<string, any>;
|
|
3064
3067
|
isCompare: boolean;
|
|
3065
3068
|
keyProp: string;
|
|
3066
3069
|
parentValues: Record<string, any>;
|
|
3067
3070
|
stepActive: string | number;
|
|
3071
|
+
height: string;
|
|
3068
3072
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
3069
3073
|
P: {};
|
|
3070
3074
|
B: {};
|
|
@@ -3100,7 +3104,7 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3100
3104
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
3101
3105
|
formState: FormState;
|
|
3102
3106
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
3103
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
3107
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
3104
3108
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
3105
3109
|
resetForm: () => void;
|
|
3106
3110
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -3111,13 +3115,13 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3111
3115
|
inline: boolean;
|
|
3112
3116
|
labelPosition: string;
|
|
3113
3117
|
config: _tmagic_form_schema0.FormConfig;
|
|
3114
|
-
height: string;
|
|
3115
3118
|
initValues: Record<string, any>;
|
|
3116
3119
|
lastValues: Record<string, any>;
|
|
3117
3120
|
isCompare: boolean;
|
|
3118
3121
|
keyProp: string;
|
|
3119
3122
|
parentValues: Record<string, any>;
|
|
3120
3123
|
stepActive: string | number;
|
|
3124
|
+
height: string;
|
|
3121
3125
|
}> | null>>;
|
|
3122
3126
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
3123
3127
|
}> & {} & _vue_runtime_core0.ComponentCustomProperties & {} & {
|
|
@@ -3203,7 +3207,7 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3203
3207
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
3204
3208
|
formState: FormState;
|
|
3205
3209
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
3206
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
3210
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
3207
3211
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
3208
3212
|
resetForm: () => void;
|
|
3209
3213
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -3220,13 +3224,13 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3220
3224
|
inline: boolean;
|
|
3221
3225
|
labelPosition: string;
|
|
3222
3226
|
config: _tmagic_form_schema0.FormConfig;
|
|
3223
|
-
height: string;
|
|
3224
3227
|
initValues: Record<string, any>;
|
|
3225
3228
|
lastValues: Record<string, any>;
|
|
3226
3229
|
isCompare: boolean;
|
|
3227
3230
|
keyProp: string;
|
|
3228
3231
|
parentValues: Record<string, any>;
|
|
3229
3232
|
stepActive: string | number;
|
|
3233
|
+
height: string;
|
|
3230
3234
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
3231
3235
|
P: {};
|
|
3232
3236
|
B: {};
|
|
@@ -3262,7 +3266,7 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3262
3266
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
3263
3267
|
formState: FormState;
|
|
3264
3268
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
3265
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
3269
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
3266
3270
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
3267
3271
|
resetForm: () => void;
|
|
3268
3272
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -3273,13 +3277,13 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3273
3277
|
inline: boolean;
|
|
3274
3278
|
labelPosition: string;
|
|
3275
3279
|
config: _tmagic_form_schema0.FormConfig;
|
|
3276
|
-
height: string;
|
|
3277
3280
|
initValues: Record<string, any>;
|
|
3278
3281
|
lastValues: Record<string, any>;
|
|
3279
3282
|
isCompare: boolean;
|
|
3280
3283
|
keyProp: string;
|
|
3281
3284
|
parentValues: Record<string, any>;
|
|
3282
3285
|
stepActive: string | number;
|
|
3286
|
+
height: string;
|
|
3283
3287
|
}> | null>>;
|
|
3284
3288
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
3285
3289
|
}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
@@ -3351,7 +3355,7 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3351
3355
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
3352
3356
|
formState: FormState;
|
|
3353
3357
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
3354
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
3358
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
3355
3359
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
3356
3360
|
resetForm: () => void;
|
|
3357
3361
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -3368,13 +3372,13 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3368
3372
|
inline: boolean;
|
|
3369
3373
|
labelPosition: string;
|
|
3370
3374
|
config: _tmagic_form_schema0.FormConfig;
|
|
3371
|
-
height: string;
|
|
3372
3375
|
initValues: Record<string, any>;
|
|
3373
3376
|
lastValues: Record<string, any>;
|
|
3374
3377
|
isCompare: boolean;
|
|
3375
3378
|
keyProp: string;
|
|
3376
3379
|
parentValues: Record<string, any>;
|
|
3377
3380
|
stepActive: string | number;
|
|
3381
|
+
height: string;
|
|
3378
3382
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
3379
3383
|
P: {};
|
|
3380
3384
|
B: {};
|
|
@@ -3410,7 +3414,7 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3410
3414
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
3411
3415
|
formState: FormState;
|
|
3412
3416
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
3413
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
3417
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
3414
3418
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
3415
3419
|
resetForm: () => void;
|
|
3416
3420
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -3421,13 +3425,13 @@ declare const __VLS_base$7: _vue_runtime_core0.DefineComponent<__VLS_Props$13, {
|
|
|
3421
3425
|
inline: boolean;
|
|
3422
3426
|
labelPosition: string;
|
|
3423
3427
|
config: _tmagic_form_schema0.FormConfig;
|
|
3424
|
-
height: string;
|
|
3425
3428
|
initValues: Record<string, any>;
|
|
3426
3429
|
lastValues: Record<string, any>;
|
|
3427
3430
|
isCompare: boolean;
|
|
3428
3431
|
keyProp: string;
|
|
3429
3432
|
parentValues: Record<string, any>;
|
|
3430
3433
|
stepActive: string | number;
|
|
3434
|
+
height: string;
|
|
3431
3435
|
}> | null>>;
|
|
3432
3436
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
3433
3437
|
}> & {} & _vue_runtime_core0.ComponentCustomProperties & {} & {
|
|
@@ -3489,7 +3493,7 @@ declare const __VLS_base$6: _vue_runtime_core0.DefineComponent<__VLS_Props$12, {
|
|
|
3489
3493
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
3490
3494
|
formState: FormState;
|
|
3491
3495
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
3492
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
3496
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
3493
3497
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
3494
3498
|
resetForm: () => void;
|
|
3495
3499
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -3506,13 +3510,13 @@ declare const __VLS_base$6: _vue_runtime_core0.DefineComponent<__VLS_Props$12, {
|
|
|
3506
3510
|
inline: boolean;
|
|
3507
3511
|
labelPosition: string;
|
|
3508
3512
|
config: FormConfig;
|
|
3509
|
-
height: string;
|
|
3510
3513
|
initValues: Record<string, any>;
|
|
3511
3514
|
lastValues: Record<string, any>;
|
|
3512
3515
|
isCompare: boolean;
|
|
3513
3516
|
keyProp: string;
|
|
3514
3517
|
parentValues: Record<string, any>;
|
|
3515
3518
|
stepActive: string | number;
|
|
3519
|
+
height: string;
|
|
3516
3520
|
}, false, {}, {}, _vue_runtime_core0.GlobalComponents, _vue_runtime_core0.GlobalDirectives, string, {}, any, _vue_runtime_core0.ComponentProvideOptions, {
|
|
3517
3521
|
P: {};
|
|
3518
3522
|
B: {};
|
|
@@ -3548,7 +3552,7 @@ declare const __VLS_base$6: _vue_runtime_core0.DefineComponent<__VLS_Props$12, {
|
|
|
3548
3552
|
lastValuesProcessed: _vue_reactivity0.Ref<FormValue, FormValue>;
|
|
3549
3553
|
formState: FormState;
|
|
3550
3554
|
initialized: _vue_reactivity0.Ref<boolean, boolean>;
|
|
3551
|
-
changeRecords: _vue_reactivity0.ShallowRef<
|
|
3555
|
+
changeRecords: _vue_reactivity0.ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
|
|
3552
3556
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
3553
3557
|
resetForm: () => void;
|
|
3554
3558
|
submitForm: (native?: boolean) => Promise<any>;
|
|
@@ -3559,13 +3563,13 @@ declare const __VLS_base$6: _vue_runtime_core0.DefineComponent<__VLS_Props$12, {
|
|
|
3559
3563
|
inline: boolean;
|
|
3560
3564
|
labelPosition: string;
|
|
3561
3565
|
config: FormConfig;
|
|
3562
|
-
height: string;
|
|
3563
3566
|
initValues: Record<string, any>;
|
|
3564
3567
|
lastValues: Record<string, any>;
|
|
3565
3568
|
isCompare: boolean;
|
|
3566
3569
|
keyProp: string;
|
|
3567
3570
|
parentValues: Record<string, any>;
|
|
3568
3571
|
stepActive: string | number;
|
|
3572
|
+
height: string;
|
|
3569
3573
|
}> | null>>;
|
|
3570
3574
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
3571
3575
|
}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
@@ -3602,7 +3606,7 @@ declare const _default$31: typeof __VLS_export$12;
|
|
|
3602
3606
|
//#endregion
|
|
3603
3607
|
//#region temp/packages/editor/src/components/ContentMenu.vue.d.ts
|
|
3604
3608
|
type __VLS_Props$10 = {
|
|
3605
|
-
menuData?: (MenuButton
|
|
3609
|
+
menuData?: (MenuButton | MenuComponent)[];
|
|
3606
3610
|
isSubMenu?: boolean;
|
|
3607
3611
|
active?: string | number;
|
|
3608
3612
|
autoHide?: boolean;
|
|
@@ -3642,7 +3646,7 @@ declare const __VLS_base$5: _vue_runtime_core0.DefineComponent<__VLS_Props$10, {
|
|
|
3642
3646
|
onShow?: (() => any) | undefined;
|
|
3643
3647
|
onHide?: (() => any) | undefined;
|
|
3644
3648
|
}>, {
|
|
3645
|
-
menuData: (MenuButton
|
|
3649
|
+
menuData: (MenuButton | MenuComponent)[];
|
|
3646
3650
|
isSubMenu: boolean;
|
|
3647
3651
|
autoHide: boolean;
|
|
3648
3652
|
}, {}, {}, {}, string, _vue_runtime_core0.ComponentProvideOptions, false, {}, any>;
|
|
@@ -3801,37 +3805,37 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
3801
3805
|
//#region temp/packages/editor/src/components/Tree.vue.d.ts
|
|
3802
3806
|
type __VLS_Slots$1 = {
|
|
3803
3807
|
'tree-node-content'(_props: {
|
|
3804
|
-
data: TreeNodeData
|
|
3808
|
+
data: TreeNodeData;
|
|
3805
3809
|
}): any;
|
|
3806
3810
|
'tree-node-label'(_props: {
|
|
3807
|
-
data: TreeNodeData
|
|
3811
|
+
data: TreeNodeData;
|
|
3808
3812
|
}): any;
|
|
3809
3813
|
'tree-node-tool'(_props: {
|
|
3810
|
-
data: TreeNodeData
|
|
3814
|
+
data: TreeNodeData;
|
|
3811
3815
|
}): any;
|
|
3812
3816
|
};
|
|
3813
3817
|
type __VLS_Props$5 = {
|
|
3814
|
-
data: TreeNodeData
|
|
3815
|
-
nodeStatusMap: Map<Id, LayerNodeStatus
|
|
3818
|
+
data: TreeNodeData[];
|
|
3819
|
+
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
3816
3820
|
indent?: number;
|
|
3817
3821
|
nextLevelIndentIncrement?: number;
|
|
3818
3822
|
emptyText?: string;
|
|
3819
3823
|
};
|
|
3820
3824
|
declare const __VLS_base$1: _vue_runtime_core0.DefineComponent<__VLS_Props$5, {}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
3821
|
-
"node-dragstart": (event: DragEvent, data: TreeNodeData
|
|
3822
|
-
"node-dragleave": (event: DragEvent, data: TreeNodeData
|
|
3823
|
-
"node-dragend": (event: DragEvent, data: TreeNodeData
|
|
3824
|
-
"node-contextmenu": (event: MouseEvent, data: TreeNodeData
|
|
3825
|
-
"node-mouseenter": (event: MouseEvent, data: TreeNodeData
|
|
3826
|
-
"node-click": (event: MouseEvent, data: TreeNodeData
|
|
3825
|
+
"node-dragstart": (event: DragEvent, data: TreeNodeData) => any;
|
|
3826
|
+
"node-dragleave": (event: DragEvent, data: TreeNodeData) => any;
|
|
3827
|
+
"node-dragend": (event: DragEvent, data: TreeNodeData) => any;
|
|
3828
|
+
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => any;
|
|
3829
|
+
"node-mouseenter": (event: MouseEvent, data: TreeNodeData) => any;
|
|
3830
|
+
"node-click": (event: MouseEvent, data: TreeNodeData) => any;
|
|
3827
3831
|
"node-dragover": (event: DragEvent) => any;
|
|
3828
3832
|
}, string, _vue_runtime_core0.PublicProps, Readonly<__VLS_Props$5> & Readonly<{
|
|
3829
|
-
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData
|
|
3830
|
-
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData
|
|
3831
|
-
"onNode-dragend"?: ((event: DragEvent, data: TreeNodeData
|
|
3832
|
-
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData
|
|
3833
|
-
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData
|
|
3834
|
-
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData
|
|
3833
|
+
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
3834
|
+
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
3835
|
+
"onNode-dragend"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
3836
|
+
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
3837
|
+
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
3838
|
+
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
3835
3839
|
"onNode-dragover"?: ((event: DragEvent) => any) | undefined;
|
|
3836
3840
|
}>, {
|
|
3837
3841
|
emptyText: string;
|
|
@@ -3848,37 +3852,37 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
3848
3852
|
//#region temp/packages/editor/src/components/TreeNode.vue.d.ts
|
|
3849
3853
|
type __VLS_Slots = {
|
|
3850
3854
|
'tree-node-label'(_props: {
|
|
3851
|
-
data: TreeNodeData
|
|
3855
|
+
data: TreeNodeData;
|
|
3852
3856
|
}): any;
|
|
3853
3857
|
'tree-node-tool'(_props: {
|
|
3854
|
-
data: TreeNodeData
|
|
3858
|
+
data: TreeNodeData;
|
|
3855
3859
|
}): any;
|
|
3856
3860
|
'tree-node-content'(_props: {
|
|
3857
|
-
data: TreeNodeData
|
|
3861
|
+
data: TreeNodeData;
|
|
3858
3862
|
}): any;
|
|
3859
3863
|
};
|
|
3860
3864
|
type __VLS_Props$4 = {
|
|
3861
|
-
data: TreeNodeData
|
|
3862
|
-
parent?: TreeNodeData
|
|
3865
|
+
data: TreeNodeData;
|
|
3866
|
+
parent?: TreeNodeData;
|
|
3863
3867
|
parentsId?: Id[];
|
|
3864
|
-
nodeStatusMap: Map<Id, LayerNodeStatus
|
|
3868
|
+
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
3865
3869
|
indent?: number;
|
|
3866
3870
|
nextLevelIndentIncrement?: number;
|
|
3867
3871
|
};
|
|
3868
3872
|
declare const __VLS_base: _vue_runtime_core0.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
|
|
3869
|
-
"node-dragstart": (event: DragEvent, data: TreeNodeData
|
|
3870
|
-
"node-dragleave": (event: DragEvent, data: TreeNodeData
|
|
3871
|
-
"node-dragend": (event: DragEvent, data: TreeNodeData
|
|
3872
|
-
"node-contextmenu": (event: MouseEvent, data: TreeNodeData
|
|
3873
|
-
"node-mouseenter": (event: MouseEvent, data: TreeNodeData
|
|
3874
|
-
"node-click": (event: MouseEvent, data: TreeNodeData
|
|
3873
|
+
"node-dragstart": (event: DragEvent, data: TreeNodeData) => any;
|
|
3874
|
+
"node-dragleave": (event: DragEvent, data: TreeNodeData) => any;
|
|
3875
|
+
"node-dragend": (event: DragEvent, data: TreeNodeData) => any;
|
|
3876
|
+
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => any;
|
|
3877
|
+
"node-mouseenter": (event: MouseEvent, data: TreeNodeData) => any;
|
|
3878
|
+
"node-click": (event: MouseEvent, data: TreeNodeData) => any;
|
|
3875
3879
|
}, string, _vue_runtime_core0.PublicProps, Readonly<__VLS_Props$4> & Readonly<{
|
|
3876
|
-
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData
|
|
3877
|
-
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData
|
|
3878
|
-
"onNode-dragend"?: ((event: DragEvent, data: TreeNodeData
|
|
3879
|
-
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData
|
|
3880
|
-
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData
|
|
3881
|
-
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData
|
|
3880
|
+
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
3881
|
+
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
3882
|
+
"onNode-dragend"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
3883
|
+
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
3884
|
+
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
3885
|
+
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
3882
3886
|
}>, {
|
|
3883
3887
|
indent: number;
|
|
3884
3888
|
parentsId: Id[];
|