@tmagic/editor 1.0.0-rc.11 → 1.0.0-rc.12
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.
|
@@ -62,9 +62,6 @@ declare const _default: DefineComponent<{
|
|
|
62
62
|
/** 画布中组件选中框的移动范围 */
|
|
63
63
|
moveableOptions: {
|
|
64
64
|
type: PropType<MoveableOptions | ((core?: StageCore | undefined) => MoveableOptions)>;
|
|
65
|
-
default: () => (core?: StageCore | undefined) => {
|
|
66
|
-
container: HTMLElement | null | undefined;
|
|
67
|
-
};
|
|
68
65
|
};
|
|
69
66
|
/** 编辑器初始化时默认选中的组件ID */
|
|
70
67
|
defaultSelected: {
|
|
@@ -142,9 +139,6 @@ declare const _default: DefineComponent<{
|
|
|
142
139
|
/** 画布中组件选中框的移动范围 */
|
|
143
140
|
moveableOptions: {
|
|
144
141
|
type: PropType<MoveableOptions | ((core?: StageCore | undefined) => MoveableOptions)>;
|
|
145
|
-
default: () => (core?: StageCore | undefined) => {
|
|
146
|
-
container: HTMLElement | null | undefined;
|
|
147
|
-
};
|
|
148
142
|
};
|
|
149
143
|
/** 编辑器初始化时默认选中的组件ID */
|
|
150
144
|
defaultSelected: {
|
|
@@ -178,7 +172,6 @@ declare const _default: DefineComponent<{
|
|
|
178
172
|
propsConfigs: Record<string, FormConfig>;
|
|
179
173
|
propsValues: Record<string, MNode>;
|
|
180
174
|
eventMethodList: Record<string, any>;
|
|
181
|
-
moveableOptions: MoveableOptions | ((core?: StageCore | undefined) => MoveableOptions);
|
|
182
175
|
canSelect: (el: HTMLElement) => boolean | Promise<boolean>;
|
|
183
176
|
}>;
|
|
184
177
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-rc.
|
|
2
|
+
"version": "1.0.0-rc.12",
|
|
3
3
|
"name": "@tmagic/editor",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"dist/*",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@babel/core": "^7.18.0",
|
|
45
45
|
"@element-plus/icons": "0.0.11",
|
|
46
|
-
"@tmagic/core": "1.0.0-rc.
|
|
47
|
-
"@tmagic/form": "1.0.0-rc.
|
|
48
|
-
"@tmagic/schema": "1.0.0-rc.
|
|
49
|
-
"@tmagic/stage": "1.0.0-rc.
|
|
50
|
-
"@tmagic/utils": "1.0.0-rc.
|
|
46
|
+
"@tmagic/core": "1.0.0-rc.12",
|
|
47
|
+
"@tmagic/form": "1.0.0-rc.12",
|
|
48
|
+
"@tmagic/schema": "1.0.0-rc.12",
|
|
49
|
+
"@tmagic/stage": "1.0.0-rc.12",
|
|
50
|
+
"@tmagic/utils": "1.0.0-rc.12",
|
|
51
51
|
"buffer": "^6.0.3",
|
|
52
52
|
"color": "^3.1.3",
|
|
53
53
|
"element-plus": "^2.2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"vue": "^3.2.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@tmagic/form": "1.0.0-rc.
|
|
63
|
+
"@tmagic/form": "1.0.0-rc.12",
|
|
64
64
|
"element-plus": "^2.2.0",
|
|
65
65
|
"monaco-editor": "^0.32.1",
|
|
66
66
|
"vue": "^3.2.0"
|
package/src/Editor.vue
CHANGED
|
@@ -130,9 +130,6 @@ export default defineComponent({
|
|
|
130
130
|
/** 画布中组件选中框的移动范围 */
|
|
131
131
|
moveableOptions: {
|
|
132
132
|
type: [Object, Function] as PropType<MoveableOptions | ((core?: StageCore) => MoveableOptions)>,
|
|
133
|
-
default: () => (core?: StageCore) => ({
|
|
134
|
-
container: core?.renderer?.contentWindow?.document.getElementById('app'),
|
|
135
|
-
}),
|
|
136
133
|
},
|
|
137
134
|
|
|
138
135
|
/** 编辑器初始化时默认选中的组件ID */
|