Skip to content

Commit

Permalink
Merge pull request #89 from bhabgs/master
Browse files Browse the repository at this point in the history
模板组件修改
  • Loading branch information
mengziwen authored Jul 15, 2021
2 parents 5480104 + 6406114 commit 68cefb1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package/vitevui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vitevui",
"version": "1.0.0-beta.37",
"version": "1.0.0-beta.38",
"description": "vue3.0 ui",
"main": "lib/index.js",
"homepage": "https://bhabgs.github.io/vite-vui-docs/",
Expand Down
25 changes: 16 additions & 9 deletions package/vitevui/src/flowRes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ const props = {
type: {
default: 'res',
},
cells: {
default: [],
},
nodeList: {
data: {
type: Array as any,
default: [],
},
};
Expand All @@ -29,20 +27,29 @@ const viFlowRes = defineComponent({
return {
recordType: 0 as any, // 0规则 1决策
graph: undefined as any,
stencil: undefined as any,
action: {
name: '',
recordCode: '',
moduleCode: '',
des: '',
},
diaVisible: false,
selectedObj: undefined as any,
diaObj: {
name: '',
} as any,
cells: [],
nodeList: [],
};
},
watch: {
data: {
handler(val: any[]) {
if (val.length != 0) {
this.cells = this.data[0].cells;
this.nodeList = this.data[1].nodeList;
}
},
deep: true,
immediate: true,
},
},
mounted() {
this.initGraph();
if (this.type === 'template') {
Expand Down

0 comments on commit 68cefb1

Please sign in to comment.