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

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

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

Loading…
Cancel
Save