fix: exportColumns computed 中 Table 需加 .value 访问
This commit is contained in:
@@ -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 将数组转为文本)
|
||||
|
||||
Reference in New Issue
Block a user