fix: 设备联调

This commit is contained in:
xuziqiang
2024-07-05 12:04:17 +08:00
parent 4bbb5c5133
commit 78d49ff16e
9 changed files with 313 additions and 56 deletions

View File

@@ -120,14 +120,8 @@
provide('addChildForm', addChildForm);
const getFormClass = computed(() => {
if (props.formLayout === 'flexVertical') {
return formConfig.formLayout.flexVertical;
}
if (props.formLayout === 'flex') {
return formConfig.formLayout.flex;
}
if (props.formLayout === 'flexv2') {
return formConfig.formLayout.flexv2;
if (props.formLayout) {
return formConfig.formLayout[props.formLayout as keyof typeof formConfig.formLayout];
}
return formConfig.formLayout.vertical;
});