diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 0e3fa5436..d09eca17c 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -14,6 +14,7 @@ :tableFields="tableAllSchemas.tableFormColumns" :tableData="tableData" :tableFormRules="tableFormRules" + :isShowButton="isShowButton" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" @tableSelectionChange="tableSelectionChange" @@ -37,6 +38,11 @@ import ButtonBase from '@/components/XButton/src/ButtonBase.vue' import TableForm from '@/components/TableForm/src/TableForm.vue' const props = defineProps({ + // 是否显示TableForm 新增/删除按钮 + isShowButton: { + type: Boolean, + default: true, + }, // 校验rules rules: { type: Object,