@tmagic/editor 1.0.0-beta.2 → 1.0.0-beta.3
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/package.json +8 -6
- package/src/Editor.vue +5 -5
- package/src/components/ScrollViewer.vue +65 -0
- package/src/layouts/CodeEditor.vue +35 -59
- package/src/layouts/workspace/Stage.vue +62 -50
- package/src/layouts/workspace/Workspace.vue +2 -21
- package/src/services/ui.ts +36 -2
- package/src/theme/stage.scss +7 -7
- package/src/type.ts +17 -6
- package/src/utils/scroll-viewer.ts +213 -0
- package/dist/style.css +0 -505
- package/dist/tmagic-editor.es.js +0 -4233
- package/dist/tmagic-editor.es.js.map +0 -1
- package/dist/tmagic-editor.umd.js +0 -4276
- package/dist/tmagic-editor.umd.js.map +0 -1
- package/dist/types/src/Editor.vue.d.ts +0 -136
- package/dist/types/src/components/Icon.vue.d.ts +0 -13
- package/dist/types/src/components/ToolButton.vue.d.ts +0 -35
- package/dist/types/src/fields/Code.vue.d.ts +0 -24
- package/dist/types/src/fields/CodeLink.vue.d.ts +0 -54
- package/dist/types/src/fields/UISelect.vue.d.ts +0 -32
- package/dist/types/src/index.d.ts +0 -19
- package/dist/types/src/layouts/AddPageBox.vue.d.ts +0 -5
- package/dist/types/src/layouts/CodeEditor.vue.d.ts +0 -46
- package/dist/types/src/layouts/Framework.vue.d.ts +0 -11
- package/dist/types/src/layouts/NavMenu.vue.d.ts +0 -24
- package/dist/types/src/layouts/PropsPanel.vue.d.ts +0 -13
- package/dist/types/src/layouts/Resizer.vue.d.ts +0 -13
- package/dist/types/src/layouts/sidebar/ComponentListPanel.vue.d.ts +0 -12
- package/dist/types/src/layouts/sidebar/LayerMenu.vue.d.ts +0 -31
- package/dist/types/src/layouts/sidebar/LayerPanel.vue.d.ts +0 -973
- package/dist/types/src/layouts/sidebar/Sidebar.vue.d.ts +0 -27
- package/dist/types/src/layouts/workspace/PageBar.vue.d.ts +0 -11
- package/dist/types/src/layouts/workspace/Stage.vue.d.ts +0 -153
- package/dist/types/src/layouts/workspace/ViewerMenu.vue.d.ts +0 -18
- package/dist/types/src/layouts/workspace/Workspace.vue.d.ts +0 -37
- package/dist/types/src/services/BaseService.d.ts +0 -56
- package/dist/types/src/services/editor.d.ts +0 -122
- package/dist/types/src/services/events.d.ts +0 -16
- package/dist/types/src/services/history.d.ts +0 -51
- package/dist/types/src/services/props.d.ts +0 -36
- package/dist/types/src/services/ui.d.ts +0 -26
- package/dist/types/src/shims-vue.d.ts +0 -6
- package/dist/types/src/type.d.ts +0 -183
- package/dist/types/src/utils/compose.d.ts +0 -5
- package/dist/types/src/utils/config.d.ts +0 -4
- package/dist/types/src/utils/editor.d.ts +0 -45
- package/dist/types/src/utils/index.d.ts +0 -4
- package/dist/types/src/utils/logger.d.ts +0 -5
- package/dist/types/src/utils/props.d.ts +0 -49
- package/dist/types/src/utils/undo-redo.d.ts +0 -12
- package/dist/types/src/vite-env.d.ts +0 -1
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import type { FormConfig } from '@tmagic/form';
|
|
3
|
-
import type { MApp, MNode } from '@tmagic/schema';
|
|
4
|
-
import type StageCore from '@tmagic/stage';
|
|
5
|
-
import type { MoveableOptions } from '@tmagic/stage';
|
|
6
|
-
import type { ComponentGroup, MenuBarData, Services, SideBarData } from './type';
|
|
7
|
-
declare const _default: DefineComponent<{
|
|
8
|
-
/** 页面初始值 */
|
|
9
|
-
modelValue: {
|
|
10
|
-
type: PropType<MApp>;
|
|
11
|
-
default: () => {};
|
|
12
|
-
require: boolean;
|
|
13
|
-
};
|
|
14
|
-
/** 左侧面板中的组件列表 */
|
|
15
|
-
componentGroupList: {
|
|
16
|
-
type: PropType<ComponentGroup[]>;
|
|
17
|
-
default: () => never[];
|
|
18
|
-
};
|
|
19
|
-
/** 左侧面板配置 */
|
|
20
|
-
sidebar: {
|
|
21
|
-
type: PropType<SideBarData>;
|
|
22
|
-
};
|
|
23
|
-
/** 顶部工具栏配置 */
|
|
24
|
-
menu: {
|
|
25
|
-
type: PropType<MenuBarData>;
|
|
26
|
-
default: () => {
|
|
27
|
-
left: never[];
|
|
28
|
-
right: never[];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
/** 中间工作区域中画布渲染的内容 */
|
|
32
|
-
render: {
|
|
33
|
-
type: PropType<() => HTMLDivElement>;
|
|
34
|
-
};
|
|
35
|
-
/** 中间工作区域中画布通过iframe渲染时的页面url */
|
|
36
|
-
runtimeUrl: StringConstructor;
|
|
37
|
-
/** 组件的属性配置表单的dsl */
|
|
38
|
-
propsConfigs: {
|
|
39
|
-
type: PropType<Record<string, FormConfig>>;
|
|
40
|
-
default: () => {};
|
|
41
|
-
};
|
|
42
|
-
/** 添加组件时的默认值 */
|
|
43
|
-
propsValues: {
|
|
44
|
-
type: PropType<Record<string, MNode>>;
|
|
45
|
-
default: () => {};
|
|
46
|
-
};
|
|
47
|
-
/** 组件联动事件选项列表 */
|
|
48
|
-
eventMethodList: {
|
|
49
|
-
type: ObjectConstructor;
|
|
50
|
-
default: () => {};
|
|
51
|
-
};
|
|
52
|
-
/** 画布中组件选中框的移动范围 */
|
|
53
|
-
moveableOptions: {
|
|
54
|
-
type: PropType<MoveableOptions | ((core?: StageCore | undefined) => MoveableOptions)>;
|
|
55
|
-
};
|
|
56
|
-
/** 编辑器初始化时默认选中的组件ID */
|
|
57
|
-
defaultSelected: {
|
|
58
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
59
|
-
};
|
|
60
|
-
canSelect: {
|
|
61
|
-
type: PropType<(el: HTMLElement) => boolean | Promise<boolean>>;
|
|
62
|
-
};
|
|
63
|
-
stageStyle: {
|
|
64
|
-
type: PropType<Record<string, string | number>>;
|
|
65
|
-
};
|
|
66
|
-
}, Services, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("props-panel-mounted" | "update:modelValue")[], "props-panel-mounted" | "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
67
|
-
/** 页面初始值 */
|
|
68
|
-
modelValue: {
|
|
69
|
-
type: PropType<MApp>;
|
|
70
|
-
default: () => {};
|
|
71
|
-
require: boolean;
|
|
72
|
-
};
|
|
73
|
-
/** 左侧面板中的组件列表 */
|
|
74
|
-
componentGroupList: {
|
|
75
|
-
type: PropType<ComponentGroup[]>;
|
|
76
|
-
default: () => never[];
|
|
77
|
-
};
|
|
78
|
-
/** 左侧面板配置 */
|
|
79
|
-
sidebar: {
|
|
80
|
-
type: PropType<SideBarData>;
|
|
81
|
-
};
|
|
82
|
-
/** 顶部工具栏配置 */
|
|
83
|
-
menu: {
|
|
84
|
-
type: PropType<MenuBarData>;
|
|
85
|
-
default: () => {
|
|
86
|
-
left: never[];
|
|
87
|
-
right: never[];
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
/** 中间工作区域中画布渲染的内容 */
|
|
91
|
-
render: {
|
|
92
|
-
type: PropType<() => HTMLDivElement>;
|
|
93
|
-
};
|
|
94
|
-
/** 中间工作区域中画布通过iframe渲染时的页面url */
|
|
95
|
-
runtimeUrl: StringConstructor;
|
|
96
|
-
/** 组件的属性配置表单的dsl */
|
|
97
|
-
propsConfigs: {
|
|
98
|
-
type: PropType<Record<string, FormConfig>>;
|
|
99
|
-
default: () => {};
|
|
100
|
-
};
|
|
101
|
-
/** 添加组件时的默认值 */
|
|
102
|
-
propsValues: {
|
|
103
|
-
type: PropType<Record<string, MNode>>;
|
|
104
|
-
default: () => {};
|
|
105
|
-
};
|
|
106
|
-
/** 组件联动事件选项列表 */
|
|
107
|
-
eventMethodList: {
|
|
108
|
-
type: ObjectConstructor;
|
|
109
|
-
default: () => {};
|
|
110
|
-
};
|
|
111
|
-
/** 画布中组件选中框的移动范围 */
|
|
112
|
-
moveableOptions: {
|
|
113
|
-
type: PropType<MoveableOptions | ((core?: StageCore | undefined) => MoveableOptions)>;
|
|
114
|
-
};
|
|
115
|
-
/** 编辑器初始化时默认选中的组件ID */
|
|
116
|
-
defaultSelected: {
|
|
117
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
118
|
-
};
|
|
119
|
-
canSelect: {
|
|
120
|
-
type: PropType<(el: HTMLElement) => boolean | Promise<boolean>>;
|
|
121
|
-
};
|
|
122
|
-
stageStyle: {
|
|
123
|
-
type: PropType<Record<string, string | number>>;
|
|
124
|
-
};
|
|
125
|
-
}>> & {
|
|
126
|
-
"onProps-panel-mounted"?: ((...args: any[]) => any) | undefined;
|
|
127
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
128
|
-
}, {
|
|
129
|
-
componentGroupList: ComponentGroup[];
|
|
130
|
-
menu: MenuBarData;
|
|
131
|
-
modelValue: MApp;
|
|
132
|
-
propsConfigs: Record<string, FormConfig>;
|
|
133
|
-
propsValues: Record<string, MNode>;
|
|
134
|
-
eventMethodList: Record<string, any>;
|
|
135
|
-
}>;
|
|
136
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Component, PropType, toRaw } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{
|
|
3
|
-
icon: {
|
|
4
|
-
type: PropType<string | Component<any, any, any, ComputedOptions, MethodOptions>>;
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
7
|
-
toRaw: typeof toRaw;
|
|
8
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
9
|
-
icon: {
|
|
10
|
-
type: PropType<string | Component<any, any, any, ComputedOptions, MethodOptions>>;
|
|
11
|
-
};
|
|
12
|
-
}>>, {}>;
|
|
13
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import type { MenuButton, MenuComponent } from '../type';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
4
|
-
data: {
|
|
5
|
-
type: PropType<string | MenuButton | MenuComponent>;
|
|
6
|
-
require: boolean;
|
|
7
|
-
default: () => {
|
|
8
|
-
type: string;
|
|
9
|
-
display: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}, {
|
|
13
|
-
ZoomIn: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
|
|
14
|
-
ZoomOut: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
|
|
15
|
-
item: ComputedRef<MenuButton | MenuComponent>;
|
|
16
|
-
zoom: ComputedRef<number>;
|
|
17
|
-
disabled: ComputedRef<boolean | undefined>;
|
|
18
|
-
display: ComputedRef<boolean | Promise<boolean>>;
|
|
19
|
-
zoomInHandler: () => void | undefined;
|
|
20
|
-
zoomOutHandler: () => void | undefined;
|
|
21
|
-
dropdownHandler(command: any): void;
|
|
22
|
-
buttonHandler(item: MenuButton | MenuComponent): void;
|
|
23
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
24
|
-
data: {
|
|
25
|
-
type: PropType<string | MenuButton | MenuComponent>;
|
|
26
|
-
require: boolean;
|
|
27
|
-
default: () => {
|
|
28
|
-
type: string;
|
|
29
|
-
display: boolean;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}>>, {
|
|
33
|
-
data: string | MenuButton | MenuComponent;
|
|
34
|
-
}>;
|
|
35
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<Readonly<{
|
|
3
|
-
name?: any;
|
|
4
|
-
config?: any;
|
|
5
|
-
model?: any;
|
|
6
|
-
prop?: any;
|
|
7
|
-
}>, {
|
|
8
|
-
height: ComputedRef<string>;
|
|
9
|
-
language: ComputedRef<any>;
|
|
10
|
-
save(v: string): void;
|
|
11
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<Readonly<{
|
|
12
|
-
name?: any;
|
|
13
|
-
config?: any;
|
|
14
|
-
model?: any;
|
|
15
|
-
prop?: any;
|
|
16
|
-
}>>> & {
|
|
17
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
name: any;
|
|
20
|
-
config: any;
|
|
21
|
-
model: any;
|
|
22
|
-
prop: any;
|
|
23
|
-
}>;
|
|
24
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface CodeLinkConfig {
|
|
3
|
-
type: 'code-link';
|
|
4
|
-
name: string;
|
|
5
|
-
text?: string;
|
|
6
|
-
formTitle?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<{
|
|
9
|
-
config: {
|
|
10
|
-
type: PropType<CodeLinkConfig>;
|
|
11
|
-
};
|
|
12
|
-
model: {
|
|
13
|
-
type: ObjectConstructor;
|
|
14
|
-
};
|
|
15
|
-
name: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
};
|
|
18
|
-
prop: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
};
|
|
21
|
-
}, {
|
|
22
|
-
modelValue: Ref<{
|
|
23
|
-
form: {
|
|
24
|
-
[x: string]: any;
|
|
25
|
-
};
|
|
26
|
-
}>;
|
|
27
|
-
formConfig: ComputedRef<{
|
|
28
|
-
text: string;
|
|
29
|
-
type: string;
|
|
30
|
-
form: {
|
|
31
|
-
name: string | undefined;
|
|
32
|
-
type: string;
|
|
33
|
-
}[];
|
|
34
|
-
name?: string | undefined;
|
|
35
|
-
formTitle?: string | undefined;
|
|
36
|
-
}>;
|
|
37
|
-
changeHandler(v: Record<string, any>): void;
|
|
38
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
39
|
-
config: {
|
|
40
|
-
type: PropType<CodeLinkConfig>;
|
|
41
|
-
};
|
|
42
|
-
model: {
|
|
43
|
-
type: ObjectConstructor;
|
|
44
|
-
};
|
|
45
|
-
name: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
};
|
|
48
|
-
prop: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
};
|
|
51
|
-
}>> & {
|
|
52
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
53
|
-
}, {}>;
|
|
54
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{
|
|
3
|
-
labelWidth: StringConstructor;
|
|
4
|
-
config: ObjectConstructor;
|
|
5
|
-
model: ObjectConstructor;
|
|
6
|
-
prop: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default(): string;
|
|
9
|
-
};
|
|
10
|
-
name: StringConstructor;
|
|
11
|
-
}, {
|
|
12
|
-
val: ComputedRef<any>;
|
|
13
|
-
uiSelectMode: Ref<boolean>;
|
|
14
|
-
toName: ComputedRef<string>;
|
|
15
|
-
startSelect(): void;
|
|
16
|
-
cancelHandler: () => void;
|
|
17
|
-
deleteHandler(): void;
|
|
18
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
19
|
-
labelWidth: StringConstructor;
|
|
20
|
-
config: ObjectConstructor;
|
|
21
|
-
model: ObjectConstructor;
|
|
22
|
-
prop: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
default(): string;
|
|
25
|
-
};
|
|
26
|
-
name: StringConstructor;
|
|
27
|
-
}>> & {
|
|
28
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
prop: string;
|
|
31
|
-
}>;
|
|
32
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import type { InstallOptions } from './type';
|
|
3
|
-
export type { MoveableOptions } from '@tmagic/stage';
|
|
4
|
-
export * from './type';
|
|
5
|
-
export * from './utils';
|
|
6
|
-
export { default as TMagicEditor } from './Editor.vue';
|
|
7
|
-
export { default as TMagicCodeEditor } from './layouts/CodeEditor.vue';
|
|
8
|
-
export { default as editorService } from './services/editor';
|
|
9
|
-
export { default as propsService } from './services/props';
|
|
10
|
-
export { default as historyService } from './services/history';
|
|
11
|
-
export { default as eventsService } from './services/events';
|
|
12
|
-
export { default as uiService } from './services/ui';
|
|
13
|
-
export { default as ComponentListPanel } from './layouts/sidebar/ComponentListPanel.vue';
|
|
14
|
-
export { default as LayerPanel } from './layouts/sidebar/LayerPanel.vue';
|
|
15
|
-
export { default as PropsPanel } from './layouts/PropsPanel.vue';
|
|
16
|
-
declare const _default: {
|
|
17
|
-
install: (app: App, opt?: InstallOptions | undefined) => void;
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{}, {
|
|
3
|
-
clickHandler(): void;
|
|
4
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
|
|
5
|
-
export default _default;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{
|
|
3
|
-
initValues: {
|
|
4
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
5
|
-
};
|
|
6
|
-
modifiedValues: {
|
|
7
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
8
|
-
};
|
|
9
|
-
type: {
|
|
10
|
-
type: StringConstructor[];
|
|
11
|
-
default: () => string;
|
|
12
|
-
};
|
|
13
|
-
language: {
|
|
14
|
-
type: StringConstructor[];
|
|
15
|
-
default: () => string;
|
|
16
|
-
};
|
|
17
|
-
}, {
|
|
18
|
-
values: Ref<string>;
|
|
19
|
-
loading: Ref<boolean>;
|
|
20
|
-
codeEditor: Ref<HTMLDivElement | undefined>;
|
|
21
|
-
getEditor(): any;
|
|
22
|
-
setEditorValue: (v: any, m: any) => any;
|
|
23
|
-
focus(): void;
|
|
24
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("inited" | "save")[], "save" | "inited", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
25
|
-
initValues: {
|
|
26
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
27
|
-
};
|
|
28
|
-
modifiedValues: {
|
|
29
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
30
|
-
};
|
|
31
|
-
type: {
|
|
32
|
-
type: StringConstructor[];
|
|
33
|
-
default: () => string;
|
|
34
|
-
};
|
|
35
|
-
language: {
|
|
36
|
-
type: StringConstructor[];
|
|
37
|
-
default: () => string;
|
|
38
|
-
};
|
|
39
|
-
}>> & {
|
|
40
|
-
onInited?: ((...args: any[]) => any) | undefined;
|
|
41
|
-
onSave?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
type: string;
|
|
44
|
-
language: string;
|
|
45
|
-
}>;
|
|
46
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, ComputedRef, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type { MApp } from '@tmagic/schema';
|
|
3
|
-
import { GetColumnWidth } from '../type';
|
|
4
|
-
declare const _default: DefineComponent<{}, {
|
|
5
|
-
root: ComputedRef<MApp | undefined>;
|
|
6
|
-
pageLength: ComputedRef<number>;
|
|
7
|
-
showSrc: ComputedRef<boolean | undefined>;
|
|
8
|
-
columnWidth: ComputedRef<GetColumnWidth | undefined>;
|
|
9
|
-
saveCode(value: string): void;
|
|
10
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
|
|
11
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { MenuBarData } from '../type';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
4
|
-
data: {
|
|
5
|
-
type: PropType<MenuBarData>;
|
|
6
|
-
default: () => {};
|
|
7
|
-
};
|
|
8
|
-
height: {
|
|
9
|
-
type: NumberConstructor;
|
|
10
|
-
};
|
|
11
|
-
}, {
|
|
12
|
-
keys: ComputedRef<(keyof MenuBarData)[]>;
|
|
13
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
14
|
-
data: {
|
|
15
|
-
type: PropType<MenuBarData>;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
|
-
height: {
|
|
19
|
-
type: NumberConstructor;
|
|
20
|
-
};
|
|
21
|
-
}>>, {
|
|
22
|
-
data: MenuBarData;
|
|
23
|
-
}>;
|
|
24
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{}, {
|
|
3
|
-
values: Ref<{
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
[x: number]: any;
|
|
6
|
-
}>;
|
|
7
|
-
configForm: Ref<any>;
|
|
8
|
-
curFormConfig: any;
|
|
9
|
-
submit(): Promise<void>;
|
|
10
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "mounted"[], "mounted", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>> & {
|
|
11
|
-
onMounted?: ((...args: any[]) => any) | undefined;
|
|
12
|
-
}, {}>;
|
|
13
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{
|
|
3
|
-
type: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
7
|
-
target: Ref<HTMLSpanElement | undefined>;
|
|
8
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
9
|
-
type: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
};
|
|
12
|
-
}>>, {}>;
|
|
13
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type { ComponentItem } from '../../type';
|
|
3
|
-
declare const _default: DefineComponent<{}, {
|
|
4
|
-
searchText: Ref<string>;
|
|
5
|
-
collapseValue: ComputedRef<number[]>;
|
|
6
|
-
list: ComputedRef<{
|
|
7
|
-
items: ComponentItem[];
|
|
8
|
-
title: string;
|
|
9
|
-
}[] | undefined>;
|
|
10
|
-
appendComponent({ text, type, ...config }: ComponentItem): void;
|
|
11
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
|
|
12
|
-
export default _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { MNode } from '@tmagic/schema';
|
|
2
|
-
import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import type { ComponentGroup } from '../../type';
|
|
4
|
-
declare const _default: DefineComponent<{
|
|
5
|
-
componentGroupList: {
|
|
6
|
-
type: PropType<ComponentGroup[]>;
|
|
7
|
-
default: () => never[];
|
|
8
|
-
};
|
|
9
|
-
}, {
|
|
10
|
-
subVisible: Ref<boolean>;
|
|
11
|
-
node: ComputedRef<MNode | undefined>;
|
|
12
|
-
menu: ComputedRef<{
|
|
13
|
-
app: {
|
|
14
|
-
type: string;
|
|
15
|
-
text: string;
|
|
16
|
-
}[];
|
|
17
|
-
component: ComponentGroup[];
|
|
18
|
-
}>;
|
|
19
|
-
append(config: any): void;
|
|
20
|
-
remove(): void;
|
|
21
|
-
copy(node: any): void;
|
|
22
|
-
setSubVisiable(v: any): void;
|
|
23
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
24
|
-
componentGroupList: {
|
|
25
|
-
type: PropType<ComponentGroup[]>;
|
|
26
|
-
default: () => never[];
|
|
27
|
-
};
|
|
28
|
-
}>>, {
|
|
29
|
-
componentGroupList: ComponentGroup[];
|
|
30
|
-
}>;
|
|
31
|
-
export default _default;
|