@tmagic/editor 1.2.0-beta.1 → 1.2.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +14 -8
- package/dist/tmagic-editor.mjs +1112 -981
- package/dist/tmagic-editor.mjs.map +1 -1
- package/dist/tmagic-editor.umd.js +1124 -991
- package/dist/tmagic-editor.umd.js.map +1 -1
- package/package.json +11 -10
- package/src/Editor.vue +11 -13
- package/src/components/ContentMenu.vue +4 -4
- package/src/components/Icon.vue +7 -5
- package/src/{layouts → components}/Layout.vue +14 -4
- package/src/components/ScrollBar.vue +1 -1
- package/src/components/ScrollViewer.vue +10 -1
- package/src/components/ToolButton.vue +30 -15
- package/src/fields/Code.vue +5 -2
- package/src/fields/CodeLink.vue +20 -12
- package/src/fields/CodeSelect.vue +19 -27
- package/src/fields/UISelect.vue +9 -8
- package/src/index.ts +3 -1
- package/src/layouts/AddPageBox.vue +13 -20
- package/src/layouts/CodeEditor.vue +106 -120
- package/src/layouts/Framework.vue +62 -40
- package/src/layouts/NavMenu.vue +1 -1
- package/src/layouts/PropsPanel.vue +4 -9
- package/src/layouts/Resizer.vue +1 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +15 -13
- package/src/layouts/sidebar/LayerMenu.vue +89 -92
- package/src/layouts/sidebar/LayerPanel.vue +273 -178
- package/src/layouts/sidebar/Sidebar.vue +126 -46
- package/src/layouts/sidebar/code-block/CodeBlockEditor.vue +28 -24
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +22 -22
- package/src/layouts/workspace/Breadcrumb.vue +32 -0
- package/src/layouts/workspace/PageBar.vue +12 -11
- package/src/layouts/workspace/PageBarScrollContainer.vue +1 -1
- package/src/layouts/workspace/Stage.vue +15 -7
- package/src/layouts/workspace/ViewerMenu.vue +8 -7
- package/src/layouts/workspace/Workspace.vue +10 -3
- package/src/services/codeBlock.ts +16 -10
- package/src/services/editor.ts +12 -8
- package/src/theme/breadcrumb.scss +6 -0
- package/src/theme/component-list-panel.scss +3 -7
- package/src/theme/index.scss +1 -15
- package/src/theme/layer-panel.scss +7 -2
- package/src/theme/theme.scss +16 -0
- package/src/type.ts +2 -1
- package/src/utils/scroll-viewer.ts +18 -2
- package/src/utils/stage.ts +7 -0
- package/types/Editor.vue.d.ts +2 -2
- package/types/components/ContentMenu.vue.d.ts +1 -3
- package/types/components/Icon.vue.d.ts +1 -3
- package/types/{layouts → components}/Layout.vue.d.ts +0 -0
- package/types/components/ScrollBar.vue.d.ts +1 -3
- package/types/components/ScrollViewer.vue.d.ts +45 -1
- package/types/components/ToolButton.vue.d.ts +1 -3
- package/types/fields/Code.vue.d.ts +9 -3
- package/types/fields/CodeLink.vue.d.ts +5 -3
- package/types/fields/CodeSelect.vue.d.ts +1 -3
- package/types/fields/UISelect.vue.d.ts +1 -3
- package/types/index.d.ts +2 -0
- package/types/layouts/AddPageBox.vue.d.ts +43 -3
- package/types/layouts/CodeEditor.vue.d.ts +158 -45
- package/types/layouts/NavMenu.vue.d.ts +1 -3
- package/types/layouts/sidebar/LayerMenu.vue.d.ts +31 -63
- package/types/layouts/sidebar/LayerPanel.vue.d.ts +38 -1074
- package/types/layouts/sidebar/Sidebar.vue.d.ts +119 -17
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +1 -0
- package/types/layouts/workspace/Breadcrumb.vue.d.ts +44 -0
- package/types/layouts/workspace/Stage.vue.d.ts +23 -7
- package/types/layouts/workspace/ViewerMenu.vue.d.ts +6 -3
- package/types/layouts/workspace/Workspace.vue.d.ts +23 -5
- package/types/services/codeBlock.d.ts +1 -1
- package/types/services/editor.d.ts +2 -2
- package/types/services/ui.d.ts +1 -1
- package/types/type.d.ts +2 -1
- package/types/utils/scroll-viewer.d.ts +5 -0
- package/src/layouts/sidebar/TabPane.vue +0 -126
- package/types/layouts/sidebar/TabPane.vue.d.ts +0 -14
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<content-menu :menu-data="menuData" ref="menu"></content-menu>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
|
-
<script lang="ts" setup>
|
|
6
|
-
import { computed, inject, markRaw,
|
|
5
|
+
<script lang="ts" setup name="MEditorViewerMenu">
|
|
6
|
+
import { computed, inject, markRaw, ref, watch } from 'vue';
|
|
7
7
|
import { Bottom, Delete, DocumentCopy, Top } from '@element-plus/icons-vue';
|
|
8
8
|
|
|
9
9
|
import { MNode, NodeType } from '@tmagic/schema';
|
|
@@ -15,7 +15,10 @@ import storageService from '../../services/storage';
|
|
|
15
15
|
import { LayerOffset, Layout, MenuButton, MenuComponent, Services } from '../../type';
|
|
16
16
|
import { COPY_STORAGE_KEY } from '../../utils/editor';
|
|
17
17
|
|
|
18
|
-
const props = withDefaults(
|
|
18
|
+
const props = withDefaults(
|
|
19
|
+
defineProps<{ isMultiSelect?: boolean; stageContentMenu: (MenuButton | MenuComponent)[] }>(),
|
|
20
|
+
{ isMultiSelect: false },
|
|
21
|
+
);
|
|
19
22
|
|
|
20
23
|
const services = inject<Services>('services');
|
|
21
24
|
const editorService = services?.editorService;
|
|
@@ -28,9 +31,7 @@ const nodes = computed(() => editorService?.get<MNode[]>('nodes'));
|
|
|
28
31
|
const parent = computed(() => editorService?.get('parent'));
|
|
29
32
|
const stage = computed(() => editorService?.get<StageCore>('stage'));
|
|
30
33
|
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const menuData = reactive<(MenuButton | MenuComponent)[]>([
|
|
34
|
+
const menuData = computed<(MenuButton | MenuComponent)[]>(() => [
|
|
34
35
|
{
|
|
35
36
|
type: 'button',
|
|
36
37
|
text: '水平居中',
|
|
@@ -130,7 +131,7 @@ const menuData = reactive<(MenuButton | MenuComponent)[]>([
|
|
|
130
131
|
editorService?.get<StageCore>('stage').clearGuides();
|
|
131
132
|
},
|
|
132
133
|
},
|
|
133
|
-
...stageContentMenu,
|
|
134
|
+
...props.stageContentMenu,
|
|
134
135
|
]);
|
|
135
136
|
|
|
136
137
|
watch(
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="m-editor-workspace" tabindex="-1" ref="workspace">
|
|
3
|
+
<Breadcrumb></Breadcrumb>
|
|
4
|
+
|
|
3
5
|
<slot name="stage">
|
|
4
|
-
<MagicStage :key="page?.id"></MagicStage>
|
|
6
|
+
<MagicStage :key="page?.id" :stage-content-menu="stageContentMenu"></MagicStage>
|
|
5
7
|
</slot>
|
|
6
8
|
|
|
7
9
|
<slot name="workspace-content"></slot>
|
|
@@ -13,18 +15,23 @@
|
|
|
13
15
|
</div>
|
|
14
16
|
</template>
|
|
15
17
|
|
|
16
|
-
<script lang="ts" setup>
|
|
18
|
+
<script lang="ts" setup name="MEditorWorkspace">
|
|
17
19
|
import { computed, inject, onMounted, onUnmounted, ref } from 'vue';
|
|
18
20
|
import KeyController from 'keycon';
|
|
19
21
|
|
|
20
22
|
import type { MNode, MPage } from '@tmagic/schema';
|
|
21
23
|
import { isPage } from '@tmagic/utils';
|
|
22
24
|
|
|
23
|
-
import type { Services } from '../../type';
|
|
25
|
+
import type { MenuButton, MenuComponent, Services } from '../../type';
|
|
24
26
|
|
|
27
|
+
import Breadcrumb from './Breadcrumb.vue';
|
|
25
28
|
import PageBar from './PageBar.vue';
|
|
26
29
|
import MagicStage from './Stage.vue';
|
|
27
30
|
|
|
31
|
+
defineProps<{
|
|
32
|
+
stageContentMenu: (MenuButton | MenuComponent)[];
|
|
33
|
+
}>();
|
|
34
|
+
|
|
28
35
|
const services = inject<Services>('services');
|
|
29
36
|
const workspace = ref<HTMLDivElement>();
|
|
30
37
|
const nodes = computed(() => services?.editorService.get<MNode[]>('nodes'));
|
|
@@ -69,7 +69,7 @@ class CodeBlock extends BaseService {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* 获取活动的代码块dsl数据源(默认从dsl中的
|
|
72
|
+
* 获取活动的代码块dsl数据源(默认从dsl中的codeBlocks字段读取)
|
|
73
73
|
* @param {boolean} forceRefresh 是否强制从活动dsl拉取刷新
|
|
74
74
|
* @returns {CodeBlockDSL | null}
|
|
75
75
|
*/
|
|
@@ -100,15 +100,21 @@ class CodeBlock extends BaseService {
|
|
|
100
100
|
*/
|
|
101
101
|
public async setCodeDslById(id: string, codeConfig: CodeBlockContent): Promise<void> {
|
|
102
102
|
let codeDsl = await this.getCodeDsl();
|
|
103
|
-
if (!codeDsl)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
103
|
+
if (!codeDsl) {
|
|
104
|
+
// dsl中无代码块字段
|
|
105
|
+
codeDsl = {
|
|
106
|
+
[id]: codeConfig,
|
|
107
|
+
};
|
|
108
|
+
} else {
|
|
109
|
+
const existContent = codeDsl[id] || {};
|
|
110
|
+
codeDsl = {
|
|
111
|
+
...codeDsl,
|
|
112
|
+
[id]: {
|
|
113
|
+
...existContent,
|
|
114
|
+
...codeConfig,
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
|
112
118
|
await this.setCodeDsl(codeDsl);
|
|
113
119
|
}
|
|
114
120
|
|
package/src/services/editor.ts
CHANGED
|
@@ -73,7 +73,7 @@ class Editor extends BaseService {
|
|
|
73
73
|
'copy',
|
|
74
74
|
'paste',
|
|
75
75
|
'doPaste',
|
|
76
|
-
'
|
|
76
|
+
'doAlignCenter',
|
|
77
77
|
'alignCenter',
|
|
78
78
|
'moveLayer',
|
|
79
79
|
'moveToContainer',
|
|
@@ -484,10 +484,10 @@ class Editor extends BaseService {
|
|
|
484
484
|
parentNodeItems[index] = newConfig;
|
|
485
485
|
|
|
486
486
|
// 将update后的配置更新到nodes中
|
|
487
|
-
const nodes = this.get('nodes');
|
|
487
|
+
const nodes = this.get<MNode[]>('nodes') || [];
|
|
488
488
|
const targetIndex = nodes.findIndex((nodeItem: MNode) => `${nodeItem.id}` === `${newConfig.id}`);
|
|
489
489
|
nodes.splice(targetIndex, 1, newConfig);
|
|
490
|
-
this.set('nodes', nodes);
|
|
490
|
+
this.set('nodes', [...nodes]);
|
|
491
491
|
|
|
492
492
|
this.get<StageCore | null>('stage')?.update({
|
|
493
493
|
config: cloneDeep(newConfig),
|
|
@@ -623,7 +623,11 @@ class Editor extends BaseService {
|
|
|
623
623
|
|
|
624
624
|
const newNode = await this.update(newNodes);
|
|
625
625
|
|
|
626
|
-
|
|
626
|
+
if (newNodes.length > 1) {
|
|
627
|
+
await stage?.multiSelect(newNodes.map((node) => node.id));
|
|
628
|
+
} else {
|
|
629
|
+
await stage?.select(newNodes[0].id);
|
|
630
|
+
}
|
|
627
631
|
|
|
628
632
|
return newNode;
|
|
629
633
|
}
|
|
@@ -767,23 +771,23 @@ class Editor extends BaseService {
|
|
|
767
771
|
}
|
|
768
772
|
|
|
769
773
|
/**
|
|
770
|
-
* 从dsl中的
|
|
774
|
+
* 从dsl中的codeBlocks字段读取活动的代码块
|
|
771
775
|
* @returns {CodeBlockDSL | null}
|
|
772
776
|
*/
|
|
773
777
|
public async getCodeDsl(): Promise<CodeBlockDSL | null> {
|
|
774
778
|
const root = this.get<MApp | null>('root');
|
|
775
779
|
if (!root) return null;
|
|
776
|
-
return root.
|
|
780
|
+
return root.codeBlocks || null;
|
|
777
781
|
}
|
|
778
782
|
|
|
779
783
|
/**
|
|
780
|
-
* 设置代码块到dsl的
|
|
784
|
+
* 设置代码块到dsl的codeBlocks字段
|
|
781
785
|
* @param {CodeBlockDSL} codeDsl 代码DSL
|
|
782
786
|
* @returns {void}
|
|
783
787
|
*/
|
|
784
788
|
public async setCodeDsl(codeDsl: CodeBlockDSL): Promise<void> {
|
|
785
789
|
if (!this.state.root) return;
|
|
786
|
-
this.state.root.
|
|
790
|
+
this.state.root.codeBlocks = codeDsl;
|
|
787
791
|
}
|
|
788
792
|
|
|
789
793
|
private addModifiedNodeId(id: Id) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.ui-component-panel {
|
|
2
2
|
height: 100%;
|
|
3
3
|
border-top: 0 !important;
|
|
4
|
-
margin-top:
|
|
4
|
+
margin-top: 48px;
|
|
5
5
|
background-color: $--sidebar-content-background-color;
|
|
6
6
|
|
|
7
7
|
.search-input {
|
|
8
|
-
background: #
|
|
8
|
+
background: #fff;
|
|
9
9
|
color: #bbbbbb;
|
|
10
10
|
padding: 10px;
|
|
11
11
|
position: absolute;
|
|
@@ -15,11 +15,7 @@
|
|
|
15
15
|
z-index: 1;
|
|
16
16
|
|
|
17
17
|
.el-input__prefix {
|
|
18
|
-
padding:
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.el-input__suffix {
|
|
22
|
-
padding: 10px 5px;
|
|
18
|
+
padding: 7px;
|
|
23
19
|
}
|
|
24
20
|
}
|
|
25
21
|
|
package/src/theme/index.scss
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
1
|
@import "./common/var.scss";
|
|
2
|
-
@import "./
|
|
3
|
-
@import "./framework.scss";
|
|
4
|
-
@import "./sidebar.scss";
|
|
5
|
-
@import "./layer-panel.scss";
|
|
6
|
-
@import "./component-list-panel.scss";
|
|
7
|
-
@import "./resizer.scss";
|
|
8
|
-
@import "./workspace.scss";
|
|
9
|
-
@import "./page-bar.scss";
|
|
10
|
-
@import "./props-panel.scss";
|
|
11
|
-
@import "./content-menu.scss";
|
|
12
|
-
@import "./stage.scss";
|
|
13
|
-
@import "./code-editor.scss";
|
|
14
|
-
@import "./icon.scss";
|
|
15
|
-
@import "./code-block.scss";
|
|
16
|
-
@import "./layout.scss";
|
|
2
|
+
@import "./theme.scss";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@import "./nav-menu.scss";
|
|
2
|
+
@import "./framework.scss";
|
|
3
|
+
@import "./sidebar.scss";
|
|
4
|
+
@import "./layer-panel.scss";
|
|
5
|
+
@import "./component-list-panel.scss";
|
|
6
|
+
@import "./resizer.scss";
|
|
7
|
+
@import "./workspace.scss";
|
|
8
|
+
@import "./page-bar.scss";
|
|
9
|
+
@import "./props-panel.scss";
|
|
10
|
+
@import "./content-menu.scss";
|
|
11
|
+
@import "./stage.scss";
|
|
12
|
+
@import "./code-editor.scss";
|
|
13
|
+
@import "./icon.scss";
|
|
14
|
+
@import "./code-block.scss";
|
|
15
|
+
@import "./layout.scss";
|
|
16
|
+
@import "./breadcrumb.scss";
|
package/src/type.ts
CHANGED
|
@@ -200,6 +200,7 @@ export interface MenuComponent {
|
|
|
200
200
|
/** 是否显示,默认为true */
|
|
201
201
|
className?: string;
|
|
202
202
|
display?: boolean | ((data?: Services) => Promise<boolean> | boolean);
|
|
203
|
+
[key: string]: any;
|
|
203
204
|
}
|
|
204
205
|
|
|
205
206
|
/**
|
|
@@ -358,7 +359,7 @@ export interface CodeDslList {
|
|
|
358
359
|
/** 代码块名称 */
|
|
359
360
|
name: string;
|
|
360
361
|
/** 代码块函数内容 */
|
|
361
|
-
|
|
362
|
+
codeBlockContent?: CodeBlockContent;
|
|
362
363
|
/** 是否展示代码绑定关系 */
|
|
363
364
|
showRelation?: boolean;
|
|
364
365
|
}
|
|
@@ -4,6 +4,10 @@ interface ScrollViewerOptions {
|
|
|
4
4
|
container: HTMLDivElement;
|
|
5
5
|
target: HTMLDivElement;
|
|
6
6
|
zoom: number;
|
|
7
|
+
correctionScrollSize?: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
7
11
|
}
|
|
8
12
|
|
|
9
13
|
export class ScrollViewer extends EventEmitter {
|
|
@@ -23,6 +27,11 @@ export class ScrollViewer extends EventEmitter {
|
|
|
23
27
|
private translateXCorrectionValue = 0;
|
|
24
28
|
private translateYCorrectionValue = 0;
|
|
25
29
|
|
|
30
|
+
private correctionScrollSize = {
|
|
31
|
+
width: 0,
|
|
32
|
+
height: 0,
|
|
33
|
+
};
|
|
34
|
+
|
|
26
35
|
private resizeObserver = new ResizeObserver(() => {
|
|
27
36
|
this.setSize();
|
|
28
37
|
this.setScrollSize();
|
|
@@ -35,6 +44,13 @@ export class ScrollViewer extends EventEmitter {
|
|
|
35
44
|
this.target = options.target;
|
|
36
45
|
this.zoom = options.zoom;
|
|
37
46
|
|
|
47
|
+
if (this.correctionScrollSize) {
|
|
48
|
+
this.correctionScrollSize = {
|
|
49
|
+
...this.correctionScrollSize,
|
|
50
|
+
...options.correctionScrollSize,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
38
54
|
this.container.addEventListener('wheel', this.wheelHandler, false);
|
|
39
55
|
|
|
40
56
|
this.setSize();
|
|
@@ -109,9 +125,9 @@ export class ScrollViewer extends EventEmitter {
|
|
|
109
125
|
|
|
110
126
|
private setScrollSize = () => {
|
|
111
127
|
const targetRect = this.target.getBoundingClientRect();
|
|
112
|
-
this.scrollWidth = targetRect.width * this.zoom +
|
|
128
|
+
this.scrollWidth = targetRect.width * this.zoom + this.correctionScrollSize.width;
|
|
113
129
|
const targetMarginTop = Number(this.target.style.marginTop) || 0;
|
|
114
|
-
this.scrollHeight = (targetRect.height + targetMarginTop) * this.zoom +
|
|
130
|
+
this.scrollHeight = (targetRect.height + targetMarginTop) * this.zoom + this.correctionScrollSize.height;
|
|
115
131
|
|
|
116
132
|
let left: number | undefined;
|
|
117
133
|
let top: number | undefined;
|
package/src/utils/stage.ts
CHANGED
|
@@ -46,6 +46,7 @@ export const useStage = (stageOptions: StageOptions) => {
|
|
|
46
46
|
]);
|
|
47
47
|
|
|
48
48
|
stage.on('select', (el: HTMLElement) => {
|
|
49
|
+
if (`${editorService.get('node')?.id}` === el.id && editorService.get('nodes').length === 1) return;
|
|
49
50
|
editorService.select(el.id);
|
|
50
51
|
});
|
|
51
52
|
|
|
@@ -72,6 +73,12 @@ export const useStage = (stageOptions: StageOptions) => {
|
|
|
72
73
|
editorService.sort(ev.src, ev.dist);
|
|
73
74
|
});
|
|
74
75
|
|
|
76
|
+
stage.on('select-parent', () => {
|
|
77
|
+
const parent = editorService.get('parent');
|
|
78
|
+
editorService.select(parent);
|
|
79
|
+
editorService.get<StageCore>('stage').select(parent.id);
|
|
80
|
+
});
|
|
81
|
+
|
|
75
82
|
stage.on('changeGuides', (e) => {
|
|
76
83
|
uiService.set('showGuides', true);
|
|
77
84
|
|
package/types/Editor.vue.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
updateDragEl: {
|
|
98
98
|
type: PropType<(el: HTMLDivElement, target: HTMLElement) => void>;
|
|
99
99
|
};
|
|
100
|
-
}, Services, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("props-panel-mounted"
|
|
100
|
+
}, Services, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "props-panel-mounted")[], "update:modelValue" | "props-panel-mounted", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
101
101
|
/** 页面初始值 */
|
|
102
102
|
modelValue: {
|
|
103
103
|
type: PropType<MApp>;
|
|
@@ -191,8 +191,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
191
191
|
type: PropType<(el: HTMLDivElement, target: HTMLElement) => void>;
|
|
192
192
|
};
|
|
193
193
|
}>> & {
|
|
194
|
-
"onProps-panel-mounted"?: ((...args: any[]) => any) | undefined;
|
|
195
194
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
195
|
+
"onProps-panel-mounted"?: ((...args: any[]) => any) | undefined;
|
|
196
196
|
}, {
|
|
197
197
|
menu: MenuBarData;
|
|
198
198
|
codeOptions: Record<string, any>;
|
|
@@ -96,9 +96,7 @@ declare const _default: {
|
|
|
96
96
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show")[], "hide" | "show", {
|
|
97
97
|
menuData: (MenuButton | MenuComponent)[];
|
|
98
98
|
isSubMenu: boolean;
|
|
99
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
100
|
-
$slots: {};
|
|
101
|
-
});
|
|
99
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
102
100
|
export default _default;
|
|
103
101
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
104
102
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -48,9 +48,7 @@ declare const _default: {
|
|
|
48
48
|
__isSuspense?: undefined;
|
|
49
49
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
50
50
|
icon?: any;
|
|
51
|
-
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
52
|
-
$slots: {};
|
|
53
|
-
});
|
|
51
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
54
52
|
export default _default;
|
|
55
53
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
56
54
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
File without changes
|
|
@@ -68,9 +68,7 @@ declare const _default: {
|
|
|
68
68
|
pos: number;
|
|
69
69
|
}>>> & {
|
|
70
70
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
71
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scroll"[], "scroll", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
72
|
-
$slots: {};
|
|
73
|
-
});
|
|
71
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scroll"[], "scroll", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
74
72
|
export default _default;
|
|
75
73
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
76
74
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -8,19 +8,31 @@ declare const _default: {
|
|
|
8
8
|
zoom: number;
|
|
9
9
|
wrapWidth: number;
|
|
10
10
|
wrapHeight: number;
|
|
11
|
+
correctionScrollSize: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
11
15
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
16
|
width?: number | undefined;
|
|
13
17
|
height?: number | undefined;
|
|
14
18
|
wrapWidth?: number | undefined;
|
|
15
19
|
wrapHeight?: number | undefined;
|
|
16
20
|
zoom?: number | undefined;
|
|
21
|
+
correctionScrollSize?: {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
} | undefined;
|
|
17
25
|
}>, {
|
|
18
26
|
width: number;
|
|
19
27
|
height: number;
|
|
20
28
|
wrapWidth: number;
|
|
21
29
|
wrapHeight: number;
|
|
22
30
|
zoom: number;
|
|
23
|
-
|
|
31
|
+
correctionScrollSize: () => {
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
};
|
|
35
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "height" | "width" | "zoom" | "wrapWidth" | "wrapHeight" | "correctionScrollSize">;
|
|
24
36
|
$attrs: {
|
|
25
37
|
[x: string]: unknown;
|
|
26
38
|
};
|
|
@@ -40,12 +52,20 @@ declare const _default: {
|
|
|
40
52
|
wrapWidth?: number | undefined;
|
|
41
53
|
wrapHeight?: number | undefined;
|
|
42
54
|
zoom?: number | undefined;
|
|
55
|
+
correctionScrollSize?: {
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
} | undefined;
|
|
43
59
|
}>, {
|
|
44
60
|
width: number;
|
|
45
61
|
height: number;
|
|
46
62
|
wrapWidth: number;
|
|
47
63
|
wrapHeight: number;
|
|
48
64
|
zoom: number;
|
|
65
|
+
correctionScrollSize: () => {
|
|
66
|
+
width: number;
|
|
67
|
+
height: number;
|
|
68
|
+
};
|
|
49
69
|
}>>>, {
|
|
50
70
|
container: import("vue").Ref<HTMLDivElement | undefined>;
|
|
51
71
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
@@ -54,6 +74,10 @@ declare const _default: {
|
|
|
54
74
|
zoom: number;
|
|
55
75
|
wrapWidth: number;
|
|
56
76
|
wrapHeight: number;
|
|
77
|
+
correctionScrollSize: {
|
|
78
|
+
width: number;
|
|
79
|
+
height: number;
|
|
80
|
+
};
|
|
57
81
|
}> & {
|
|
58
82
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
59
83
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -80,12 +104,20 @@ declare const _default: {
|
|
|
80
104
|
wrapWidth?: number | undefined;
|
|
81
105
|
wrapHeight?: number | undefined;
|
|
82
106
|
zoom?: number | undefined;
|
|
107
|
+
correctionScrollSize?: {
|
|
108
|
+
width: number;
|
|
109
|
+
height: number;
|
|
110
|
+
} | undefined;
|
|
83
111
|
}>, {
|
|
84
112
|
width: number;
|
|
85
113
|
height: number;
|
|
86
114
|
wrapWidth: number;
|
|
87
115
|
wrapHeight: number;
|
|
88
116
|
zoom: number;
|
|
117
|
+
correctionScrollSize: () => {
|
|
118
|
+
width: number;
|
|
119
|
+
height: number;
|
|
120
|
+
};
|
|
89
121
|
}>>> & import("vue").ShallowUnwrapRef<{
|
|
90
122
|
container: import("vue").Ref<HTMLDivElement | undefined>;
|
|
91
123
|
}> & {} & import("vue").ComponentCustomProperties;
|
|
@@ -98,12 +130,20 @@ declare const _default: {
|
|
|
98
130
|
wrapWidth?: number | undefined;
|
|
99
131
|
wrapHeight?: number | undefined;
|
|
100
132
|
zoom?: number | undefined;
|
|
133
|
+
correctionScrollSize?: {
|
|
134
|
+
width: number;
|
|
135
|
+
height: number;
|
|
136
|
+
} | undefined;
|
|
101
137
|
}>, {
|
|
102
138
|
width: number;
|
|
103
139
|
height: number;
|
|
104
140
|
wrapWidth: number;
|
|
105
141
|
wrapHeight: number;
|
|
106
142
|
zoom: number;
|
|
143
|
+
correctionScrollSize: () => {
|
|
144
|
+
width: number;
|
|
145
|
+
height: number;
|
|
146
|
+
};
|
|
107
147
|
}>>>, {
|
|
108
148
|
container: import("vue").Ref<HTMLDivElement | undefined>;
|
|
109
149
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
@@ -112,6 +152,10 @@ declare const _default: {
|
|
|
112
152
|
zoom: number;
|
|
113
153
|
wrapWidth: number;
|
|
114
154
|
wrapHeight: number;
|
|
155
|
+
correctionScrollSize: {
|
|
156
|
+
width: number;
|
|
157
|
+
height: number;
|
|
158
|
+
};
|
|
115
159
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
116
160
|
$slots: {
|
|
117
161
|
default: (_: {}) => any;
|
|
@@ -86,9 +86,7 @@ declare const _default: {
|
|
|
86
86
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
87
87
|
data: MenuButton | MenuComponent;
|
|
88
88
|
eventType: 'mousedown' | 'mouseup' | 'click';
|
|
89
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
90
|
-
$slots: {};
|
|
91
|
-
});
|
|
89
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
92
90
|
export default _default;
|
|
93
91
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
94
92
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -7,6 +7,8 @@ declare const _default: {
|
|
|
7
7
|
name: string;
|
|
8
8
|
config: {
|
|
9
9
|
language?: string | undefined;
|
|
10
|
+
options?: Object | undefined;
|
|
11
|
+
height?: string | undefined;
|
|
10
12
|
};
|
|
11
13
|
prop: string;
|
|
12
14
|
}>>> & {
|
|
@@ -30,6 +32,8 @@ declare const _default: {
|
|
|
30
32
|
name: string;
|
|
31
33
|
config: {
|
|
32
34
|
language?: string | undefined;
|
|
35
|
+
options?: Object | undefined;
|
|
36
|
+
height?: string | undefined;
|
|
33
37
|
};
|
|
34
38
|
prop: string;
|
|
35
39
|
}>>> & {
|
|
@@ -59,6 +63,8 @@ declare const _default: {
|
|
|
59
63
|
name: string;
|
|
60
64
|
config: {
|
|
61
65
|
language?: string | undefined;
|
|
66
|
+
options?: Object | undefined;
|
|
67
|
+
height?: string | undefined;
|
|
62
68
|
};
|
|
63
69
|
prop: string;
|
|
64
70
|
}>>> & {
|
|
@@ -72,13 +78,13 @@ declare const _default: {
|
|
|
72
78
|
name: string;
|
|
73
79
|
config: {
|
|
74
80
|
language?: string | undefined;
|
|
81
|
+
options?: Object | undefined;
|
|
82
|
+
height?: string | undefined;
|
|
75
83
|
};
|
|
76
84
|
prop: string;
|
|
77
85
|
}>>> & {
|
|
78
86
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
79
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
80
|
-
$slots: {};
|
|
81
|
-
});
|
|
87
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
82
88
|
export default _default;
|
|
83
89
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
84
90
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
name: string;
|
|
9
9
|
text?: string;
|
|
10
10
|
formTitle?: string;
|
|
11
|
+
codeOptions?: Object;
|
|
11
12
|
};
|
|
12
13
|
model: any;
|
|
13
14
|
name: string;
|
|
@@ -34,6 +35,7 @@ declare const _default: {
|
|
|
34
35
|
name: string;
|
|
35
36
|
text?: string;
|
|
36
37
|
formTitle?: string;
|
|
38
|
+
codeOptions?: Object;
|
|
37
39
|
};
|
|
38
40
|
model: any;
|
|
39
41
|
name: string;
|
|
@@ -66,6 +68,7 @@ declare const _default: {
|
|
|
66
68
|
name: string;
|
|
67
69
|
text?: string;
|
|
68
70
|
formTitle?: string;
|
|
71
|
+
codeOptions?: Object;
|
|
69
72
|
};
|
|
70
73
|
model: any;
|
|
71
74
|
name: string;
|
|
@@ -82,15 +85,14 @@ declare const _default: {
|
|
|
82
85
|
name: string;
|
|
83
86
|
text?: string;
|
|
84
87
|
formTitle?: string;
|
|
88
|
+
codeOptions?: Object;
|
|
85
89
|
};
|
|
86
90
|
model: any;
|
|
87
91
|
name: string;
|
|
88
92
|
prop: string;
|
|
89
93
|
}>>> & {
|
|
90
94
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
91
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
92
|
-
$slots: {};
|
|
93
|
-
});
|
|
95
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
94
96
|
export default _default;
|
|
95
97
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
96
98
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -81,9 +81,7 @@ declare const _default: {
|
|
|
81
81
|
size: string;
|
|
82
82
|
}>>> & {
|
|
83
83
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
84
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
85
|
-
$slots: {};
|
|
86
|
-
});
|
|
84
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
87
85
|
export default _default;
|
|
88
86
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
89
87
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -68,9 +68,7 @@ declare const _default: {
|
|
|
68
68
|
name: string;
|
|
69
69
|
}>>> & {
|
|
70
70
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
71
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
72
|
-
$slots: {};
|
|
73
|
-
});
|
|
71
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
74
72
|
export default _default;
|
|
75
73
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
76
74
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|