解决所有bug问题
This commit is contained in:
@@ -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 || ''
|
||||
|
||||
Reference in New Issue
Block a user