Skip to content

Commit

Permalink
fix: 修复子表单获取主表单数据失败Bug @0.9.1-4
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Mar 17, 2021
1 parent f810d9c commit 5f45081
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.9.1-3",
"version": "0.9.1-4",
"author": "BoBo<[email protected]>",
"main": "lib/ProCrud.umd.min.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/component/form-designer/src/GenerateFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
<AvatarUpload :readOnly="readOnly" :widget="widget" v-model="models[widget.model]"></AvatarUpload>
</template>
<template v-if="widget.type === 'form'">
<GenerateSubForm :widget="widget"></GenerateSubForm>
<GenerateSubForm :widget="widget" :models="models"></GenerateSubForm>
</template>
<template v-if="widget.type === 'tabs'">
<GenerateTabs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ export default class GenerateSubForm extends Vue {
})
formTableConfig: any

@Prop({
type: Object,
default: () => ({}),
})
models: any

// 整个子表单数据
subTableForm = {
tableData: [],
Expand All @@ -100,8 +106,6 @@ export default class GenerateSubForm extends Vue {

btnSaveIsLoading = false

models: any = {}

created() {
this.fetchList();
}
Expand Down

0 comments on commit 5f45081

Please sign in to comment.