diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue
index 3390b5018..4881ff3df 100644
--- a/src/components/BasicForm/src/BasicForm.vue
+++ b/src/components/BasicForm/src/BasicForm.vue
@@ -78,7 +78,7 @@
-
-
+
{
formHeight.value.height = isFullscreen ? 'auto' : '60vh'
@@ -413,9 +406,22 @@ const routeName = ref('')
const sureDisabled = ref(false)
const tabSheet = ref('TableForm')
routeName.value = route.name
+const formHeight = ref({
+ height:'60vh'
+})
const tabChange = (item) => {
tabSheet.value = item.prop
}
+
+if(!props.tableAllSchemas||formType.value!='create'){
+ formHeight.value = {
+ height:'auto'
+ }
+}else{
+ formHeight.value = {
+ height:'60vh'
+ }
+}
// 列表-按钮
// const buttondata = [
// defaultButtons.mainListEditBtn(null), // 编辑
@@ -662,6 +668,15 @@ const open = async (
dialogTitle.value = t('action.' + type)
}
formType.value = type
+ if(!props.tableAllSchemas||formType.value!='create'){
+ formHeight.value = {
+ height:'auto'
+ }
+ }else{
+ formHeight.value = {
+ height:'60vh'
+ }
+ }
resetForm()
count.value = 0
// 修改时,设置数据