Browse Source

高度问题重置

hella_online_20240821
wangyufei 3 months ago
parent
commit
331a7440da
  1. 39
      src/components/BasicForm/src/BasicForm.vue
  2. 6
      src/components/TableForm/src/TableForm.vue

39
src/components/BasicForm/src/BasicForm.vue

@ -407,21 +407,22 @@ const sureDisabled = ref(false)
const tabSheet = ref('TableForm')
routeName.value = route.name
const formHeight = ref({
height:'60vh'
'max-height': '60vh'
})
const tabChange = (item) => {
tabSheet.value = item.prop
}
if(!props.tableAllSchemas||formType.value!='create'){
formHeight.value = {
height:'auto'
}
}else{
formHeight.value = {
height:'60vh'
}
}
// if(!props.tableAllSchemas||formType.value!='create'){
// formHeight.value = {
// height:'auto'
// }
// }else{
// formHeight.value = {
// height:'60vh'
// }
// }
// -
// const buttondata = [
// defaultButtons.mainListEditBtn(null), //
@ -668,15 +669,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'
}
}
// if(!props.tableAllSchemas||formType.value!='create'){
// formHeight.value = {
// height:'auto'
// }
// }else{
// formHeight.value = {
// height:'60vh'
// }
// }
resetForm()
count.value = 0
//

6
src/components/TableForm/src/TableForm.vue

@ -1,11 +1,13 @@
<!-- 附件组件 -->
<template>
<div class="table-form">
<el-table v-clientTableForm="{
<!-- v-clientTableForm="{
showTab:showTab,
isShowPagination:tableData.length > 10,
isShowButton: isShowButton || isShowReduceButtonSelection,
isFullscreen:isFullscreen
}"
}" -->
<el-table
class="multipleTableComponents"
ref="TableBaseComponents_Ref"
v-loading="tableLoading"

Loading…
Cancel
Save