v3.17.0 【新增】新增菜单展开1个配置;【新增】移除表格固定高度;【新增】App登录token模式

This commit is contained in:
zhuoda
2025-04-08 20:19:41 +08:00
parent 33c93ae365
commit 7ea97f8433
20 changed files with 95 additions and 57 deletions

View File

@@ -102,7 +102,7 @@
:dataSource="tableData"
:columns="columns"
rowKey="goodsId"
:scroll="{ x: 1000 }"
:scroll="{ x: 1000,y: yHeight }"
bordered
:pagination="false"
:showSorterTooltip="false"
@@ -205,6 +205,7 @@
import SmartHeaderCell from '/@/components/support/table-header-cell/index.vue';
import { DICT_CODE_ENUM } from '/@/constants/support/dict-const.js';
import DictLabel from '/@/components/support/dict-label/index.vue';
import { onBeforeMount } from 'vue';
// ---------------------------- 表格列 ----------------------------
@@ -497,4 +498,16 @@
function camelToUnderscore(str) {
return str.replace(/([A-Z])/g, '_$1').toLowerCase();
}
const dueHeight=ref(0)
const yHeight=ref(0)
onMounted(() => {
let doc = document.querySelector('.ant-form');
let btn = document.querySelector('.smart-table-btn-block');
let tableCell = document.querySelector('.ant-table-cell');
let page = document.querySelector('.smart-query-table-page');
let box = document.querySelector('.ant-layout-content>div');
dueHeight.value = doc.offsetHeight+10+24+btn.offsetHeight+15+tableCell.offsetHeight+page.offsetHeight+20
yHeight.value=box.offsetHeight-dueHeight.value
});
</script>