更新了某些文本 让提示更加友好

根据scuxiatian提供的方案 修改了workflow前端组件的一些bug
This commit is contained in:
pixel
2021-02-26 12:14:28 +08:00
parent decee13bf1
commit 4cea6f9f5d
4 changed files with 7 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ export default function(G6){
//type、shape属性同时存在即兼容之前版本的数据又兼容g6的升级
addModel.type = getShapeName(clazz);
addModel.shape = getShapeName(clazz);
addModel.hideIcon = false;
const timestamp = new Date().getTime();
const id = clazz + timestamp;
const x = p.x;

View File

@@ -150,6 +150,10 @@
this.selectedModel = this.processModel;
}
});
this.graph.on('aftercommandexecute',(command)=>{
if (command.name !== 'undo' && command.name !== 'redo') return;
// 更新selectedModel
});
const page = this.$refs['canvas'];
const graph = this.graph;
const height = this.height-1;