解决所有bug问题

This commit is contained in:
RISE
2026-02-09 20:03:33 +08:00
parent 707545f51e
commit 2e2c257743
22 changed files with 3405 additions and 44 deletions

View File

@@ -155,6 +155,10 @@ export function useTableColumnControl(
* 根据 visibleColumns 和 columnOrder 计算最终显示的列
*/
const visibleColumnsSorted = computed(() => {
// 如果 visibleColumns 为空,显示所有列(初始化时)
if (visibleColumns.value.length === 0) {
return tableColumns.filter(col => !col.alwaysShow && !col.fixed)
}
// 过滤出可见的列
const columns = tableColumns.filter(col => {
const key = col.prop || col.label || ''