We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2a990 commit 228ec93Copy full SHA for 228ec93
1 file changed
src/views/customToolbar/customToolbar.vue
@@ -416,9 +416,9 @@ export default {
416
createGraph () {
417
// 创建graph
418
// 方式一:直接构建graph实例
419
- this.graph = new mxGraph(this.$refs.container)
+ // this.graph = new mxGraph(this.$refs.container)
420
this.editor = new mxEditor();
421
- // this.graph = this.editor.graph;
+ this.graph = this.editor.graph;
422
this.editor.setGraphContainer(this.$refs.container);
423
// 配置默认全局样式
424
this.configureStylesheet(this.graph);
@@ -553,7 +553,7 @@ export default {
553
// this.graph.setPanning(true);
554
this.graph.setPanning = true;
555
// 开启提示
556
- this.graph.setTooltips(true);
+ this.graph.setTooltips(false);
557
// 允许连线
558
this.graph.setConnectable(true);
559
//移动元素的步长
0 commit comments