|
@@ -57,7 +57,7 @@ function AuditForm(props) {
|
|
props: { ...item.props, id: `${item.componentName}_${uuidv4()}` },
|
|
props: { ...item.props, id: `${item.componentName}_${uuidv4()}` },
|
|
};
|
|
};
|
|
// 如果是表格的话
|
|
// 如果是表格的话
|
|
- if (item.props.label === '表格') {
|
|
|
|
|
|
+ if (item.componentName === 'DIYTable') {
|
|
newItem.columns = [];
|
|
newItem.columns = [];
|
|
newItem.isTable = true;
|
|
newItem.isTable = true;
|
|
}
|
|
}
|
|
@@ -165,7 +165,7 @@ function AuditForm(props) {
|
|
onChange={handleChangeList}
|
|
onChange={handleChangeList}
|
|
onTableColumnChange={handleTableColumnChange}
|
|
onTableColumnChange={handleTableColumnChange}
|
|
list={formList}
|
|
list={formList}
|
|
- ></FormContent>
|
|
|
|
|
|
+ />
|
|
<ItemAttribute
|
|
<ItemAttribute
|
|
formList={formList}
|
|
formList={formList}
|
|
key={selectList[selectList.length - 1]}
|
|
key={selectList[selectList.length - 1]}
|