修复了sheet切换但缩放值不变化的bug

This commit is contained in:
猴赛雷 2024-06-04 14:51:49 +08:00
parent 4107159fb2
commit e30b7d08b5
5 changed files with 30 additions and 10 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@ node_modules
*.history
*.zip
yarn.*
package-lock.json

View File

@ -1,6 +1,6 @@
{
"name": "ddei-editor",
"version": "1.2.13",
"version": "1.2.14-8",
"private": false,
"type": "module",
"author": "hoslay <3697355039@qq.com>",
@ -49,7 +49,7 @@
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false"
},
"dependencies": {
"ddei-framework": "^1.2.37"
"ddei-framework": "file:/Users/hoslay/work/ddei/ddei-framework/ddei-framework-1.2.37-7.tgz"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.0",

View File

@ -381,6 +381,7 @@ export default {
ddInstance.bus?.push(DDeiEditorEnumBusCommandType.AddFileHistroy);
ddInstance.bus?.push(DDeiEnumBusCommandType.RefreshShape);
ddInstance.bus?.push(DDeiEditorEnumBusCommandType.ClearTemplateUI);
ddInstance.bus.push(DDeiEditorEnumBusCommandType.RefreshEditorParts, {});
ddInstance.bus.executeAll();
DDeiEditorUtil.closeDialogs(this.editor,null, true)
@ -420,6 +421,7 @@ export default {
ddInstance.bus.push(DDeiEnumBusCommandType.RefreshShape);
ddInstance.bus.push(DDeiEditorEnumBusCommandType.ClearTemplateUI);
ddInstance.bus.push(DDeiEditorEnumBusCommandType.RefreshEditorParts, {});
ddInstance.bus.executeAll();
DDeiEditorUtil.closeDialogs(this.editor, null, true)

View File

@ -20,12 +20,13 @@ export default defineComponent({
//
DDeiCoreStandLayout.configuration({
//
'top': [],
// 'top': [],
'middle': ['ddei-core-panel-openfilesview', 'ddei-core-panel-canvasview', 'ddei-core-panel-quickcolorview'],// [!code ++]
'bottom': [],
'left': [],
'right': []
// 'bottom': [],
// 'left': [],
// 'right': []
}),
DDeiExtUML
// DDeiCoreThemeBlack.configuration({
// default: true
// }),
@ -191,11 +192,19 @@ export default defineComponent({
options1:options1,
options2:options2,
options3:options3,
options4:options4
options4:options4,
jsontext:"无JSON"
};
},
methods:{
getData(){
//
let editor = this.$refs["editorViewer3"].editor;
//editorJSON
let editorJSON = editor.toJSON();
this.jsontext = JSON.stringify(editorJSON);
}
}
@ -204,12 +213,20 @@ export default defineComponent({
<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>
<!-- <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>
</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">
<DDeiEditorView ref="editorViewer4" :options="options3" id="ddei_editor_4"></DDeiEditorView>
</div>

View File

@ -13,7 +13,7 @@ export default defineConfig({
alias: {
'@': fileURLToPath(new URL('./src', 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)),
}
},