使用logicflow重构流程图

This commit is contained in:
Jam committed 2022-11-27 01:05:41 +08:00
1 parent 134acc057e
commit 8ff82208ad
6 files changed
+343 -771

No files matched your search

+13 -7
View File
@@ -64,6 +64,12 @@
template: '#edit-line',
vuetify: new Vuetify(),
name: 'editLine',
props: {
lf: {
type: Object,
default: null
}
},
data() {
return {
line: { label: '' },
@@ -74,10 +80,10 @@
},
watch: {
line: {
handler(val) {
if (this.isUpdate) {
this.$emit('line-save', this.line);
}
handler: function (line) {
this.lf.updateText(line.id, `${line.type}-${line.label}`);
this.lf.setProperties(line.id, line);
console.log(this.lf.getEdgeModelById(line.id));
},
deep: true
}
@@ -88,11 +94,11 @@
},
},
methods: {
init(item, lineTypeList) {
init(line, lineTypeList) {
this.isUpdate = false;
this.line = item;
this.line = line.properties;
this.lineTypeList = lineTypeList;
this.$nextTick(function () {
this.$nextTick(() => {
this.isUpdate = true;
});
},