refactor: code review

This commit is contained in:
meilin.huang
2024-01-09 17:31:21 +08:00
parent 3c89a285f5
commit b7aa281611
15 changed files with 130 additions and 60 deletions

View File

@@ -182,7 +182,7 @@ import SearchForm from '@/components/SearchForm/index.vue';
import { SearchItem } from '../SearchForm/index';
import SearchFormItem from '../SearchForm/components/SearchFormItem.vue';
import SvgIcon from '@/components/svgIcon/index.vue';
import { usePageTable } from '../../hooks/usePageTable';
import { usePageTable } from '@/hooks/usePageTable';
import { ElTable } from 'element-plus';
const emit = defineEmits(['update:queryForm', 'update:selectionData', 'pageChange']);
@@ -316,7 +316,7 @@ onMounted(async () => {
});
const calcuTableHeight = () => {
const headerHeight = isShowSearch.value ? 325 : 245;
const headerHeight = isShowSearch.value ? 330 : 250;
state.tableMaxHeight = window.innerHeight - headerHeight + 'px';
};