From cc1ba934cd0d33592b1a7a9e4300852f6ee4e7c7 Mon Sep 17 00:00:00 2001
From: wangyufei <2267742828@qq.com>
Date: Mon, 19 Aug 2024 14:41:11 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=85=AC=E7=94=A8=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E5=8A=9F=E8=83=BD=E6=A0=B7=E5=BC=8Fbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/BasicForm/src/BasicForm.vue | 35 +++++++++++++++-------
1 file changed, 25 insertions(+), 10 deletions(-)
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
// 修改时,设置数据