mirror of
https://gitee.com/hoslay/ddei-editor.git
synced 2025-12-06 17:18:36 +08:00
修复了sheet切换但缩放值不变化的bug
This commit is contained in:
parent
4107159fb2
commit
e30b7d08b5
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,3 +21,4 @@ node_modules
|
|||||||
*.history
|
*.history
|
||||||
*.zip
|
*.zip
|
||||||
yarn.*
|
yarn.*
|
||||||
|
package-lock.json
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ddei-editor",
|
"name": "ddei-editor",
|
||||||
"version": "1.2.13",
|
"version": "1.2.14-8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "hoslay <3697355039@qq.com>",
|
"author": "hoslay <3697355039@qq.com>",
|
||||||
@ -49,7 +49,7 @@
|
|||||||
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false"
|
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ddei-framework": "^1.2.37"
|
"ddei-framework": "file:/Users/hoslay/work/ddei/ddei-framework/ddei-framework-1.2.37-7.tgz"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tsconfig/node18": "^18.2.0",
|
"@tsconfig/node18": "^18.2.0",
|
||||||
|
|||||||
@ -381,6 +381,7 @@ export default {
|
|||||||
ddInstance.bus?.push(DDeiEditorEnumBusCommandType.AddFileHistroy);
|
ddInstance.bus?.push(DDeiEditorEnumBusCommandType.AddFileHistroy);
|
||||||
ddInstance.bus?.push(DDeiEnumBusCommandType.RefreshShape);
|
ddInstance.bus?.push(DDeiEnumBusCommandType.RefreshShape);
|
||||||
ddInstance.bus?.push(DDeiEditorEnumBusCommandType.ClearTemplateUI);
|
ddInstance.bus?.push(DDeiEditorEnumBusCommandType.ClearTemplateUI);
|
||||||
|
ddInstance.bus.push(DDeiEditorEnumBusCommandType.RefreshEditorParts, {});
|
||||||
ddInstance.bus.executeAll();
|
ddInstance.bus.executeAll();
|
||||||
|
|
||||||
DDeiEditorUtil.closeDialogs(this.editor,null, true)
|
DDeiEditorUtil.closeDialogs(this.editor,null, true)
|
||||||
@ -420,6 +421,7 @@ export default {
|
|||||||
|
|
||||||
ddInstance.bus.push(DDeiEnumBusCommandType.RefreshShape);
|
ddInstance.bus.push(DDeiEnumBusCommandType.RefreshShape);
|
||||||
ddInstance.bus.push(DDeiEditorEnumBusCommandType.ClearTemplateUI);
|
ddInstance.bus.push(DDeiEditorEnumBusCommandType.ClearTemplateUI);
|
||||||
|
ddInstance.bus.push(DDeiEditorEnumBusCommandType.RefreshEditorParts, {});
|
||||||
ddInstance.bus.executeAll();
|
ddInstance.bus.executeAll();
|
||||||
|
|
||||||
DDeiEditorUtil.closeDialogs(this.editor, null, true)
|
DDeiEditorUtil.closeDialogs(this.editor, null, true)
|
||||||
|
|||||||
31
src/App.vue
31
src/App.vue
@ -20,12 +20,13 @@ export default defineComponent({
|
|||||||
//布局的配置
|
//布局的配置
|
||||||
DDeiCoreStandLayout.configuration({
|
DDeiCoreStandLayout.configuration({
|
||||||
//配置插件
|
//配置插件
|
||||||
'top': [],
|
// 'top': [],
|
||||||
'middle': ['ddei-core-panel-openfilesview', 'ddei-core-panel-canvasview', 'ddei-core-panel-quickcolorview'],// [!code ++]
|
'middle': ['ddei-core-panel-openfilesview', 'ddei-core-panel-canvasview', 'ddei-core-panel-quickcolorview'],// [!code ++]
|
||||||
'bottom': [],
|
// 'bottom': [],
|
||||||
'left': [],
|
// 'left': [],
|
||||||
'right': []
|
// 'right': []
|
||||||
}),
|
}),
|
||||||
|
DDeiExtUML
|
||||||
// DDeiCoreThemeBlack.configuration({
|
// DDeiCoreThemeBlack.configuration({
|
||||||
// default: true
|
// default: true
|
||||||
// }),
|
// }),
|
||||||
@ -191,11 +192,19 @@ export default defineComponent({
|
|||||||
options1:options1,
|
options1:options1,
|
||||||
options2:options2,
|
options2:options2,
|
||||||
options3:options3,
|
options3:options3,
|
||||||
options4:options4
|
options4:options4,
|
||||||
|
jsontext:"无JSON"
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods:{
|
methods:{
|
||||||
|
getData(){
|
||||||
|
//获取编辑器实例
|
||||||
|
let editor = this.$refs["editorViewer3"].editor;
|
||||||
|
//获取整个editor的JSON
|
||||||
|
let editorJSON = editor.toJSON();
|
||||||
|
this.jsontext = JSON.stringify(editorJSON);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -204,12 +213,20 @@ export default defineComponent({
|
|||||||
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- <DDeiEditorView ref="editorViewer1" :options="options" id="ddei_editor_1"></DDeiEditorView> -->
|
<!--<DDeiEditorView ref="editorViewer1" :options="options" id="ddei_editor_1"></DDeiEditorView>
|
||||||
|
|
||||||
<DDeiEditorView ref="editorViewer2" :options="options1" id="ddei_editor_2"></DDeiEditorView>
|
<DDeiEditorView ref="editorViewer2" :options="options1" id="ddei_editor_2"></DDeiEditorView>
|
||||||
<!-- <div style="width:400px;height:400px;float:left">
|
-->
|
||||||
|
<div style="width:400px;height:400px;float:left">
|
||||||
<DDeiEditorView ref="editorViewer3" :options="options2" id="ddei_editor_3"></DDeiEditorView>
|
<DDeiEditorView ref="editorViewer3" :options="options2" id="ddei_editor_3"></DDeiEditorView>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<button @click="getData" style="border:1px solid grey;margin-left:5px;padding:5px">获取JSON</button>
|
||||||
|
<div style="width:400px;height:400px;margin:100px auto;">
|
||||||
|
<textarea :value="jsontext"
|
||||||
|
style="border:1px solid grey;margin-left:5px;padding:5px;width:100%;height:100%"></textarea>
|
||||||
|
</div>
|
||||||
|
<!--
|
||||||
<div style="width:500px;height:500px;float:left">
|
<div style="width:500px;height:500px;float:left">
|
||||||
<DDeiEditorView ref="editorViewer4" :options="options3" id="ddei_editor_4"></DDeiEditorView>
|
<DDeiEditorView ref="editorViewer4" :options="options3" id="ddei_editor_4"></DDeiEditorView>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export default defineConfig({
|
|||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
'@ddei': fileURLToPath(new URL('./plugins', import.meta.url)),
|
'@ddei': fileURLToPath(new URL('./plugins', import.meta.url)),
|
||||||
// 'ddei-framework': fileURLToPath(new URL('/Users/hoslay/work/ddei/ddei-framework/dist/ddei-framework.js', import.meta.url)),
|
'ddei-framework': fileURLToPath(new URL('/Users/hoslay/work/ddei/ddei-framework/dist/ddei-framework.js', import.meta.url)),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user