fix: exportColumns computed 中 Table 需加 .value 访问

This commit is contained in:
2026-07-03 14:17:37 +08:00
parent 8b3076990c
commit b7a9a8fd82
+1 -1
View File
@@ -283,7 +283,7 @@ const Table = useTable({
// 导出列 - 包含表格列 + 额外字段(不在表格展示,导出时可选)
const exportColumns = computed(() => {
const cols: any[] = Table?.columns ? [...Table.columns] : [];
const cols: any[] = Table.value?.columns ? [...Table.value.columns] : [];
const base = cols.filter((e: any) => !['selection', 'expand', 'index', 'op'].includes(e.type));
// 为 posters 列添加 formatter(导出时 render 不会被调用,需要 formatter 将数组转为文本)