From 0f3ddf76540074ef370001aa6b8009af5ee578c2 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 10 Aug 2022 13:15:07 +0800 Subject: [PATCH] feat(gui-v2): add getColumns --- packages/nc-gui-v2/utils/parsers/ExcelTemplateAdapter.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nc-gui-v2/utils/parsers/ExcelTemplateAdapter.ts b/packages/nc-gui-v2/utils/parsers/ExcelTemplateAdapter.ts index abf3624481..85c631d2a2 100644 --- a/packages/nc-gui-v2/utils/parsers/ExcelTemplateAdapter.ts +++ b/packages/nc-gui-v2/utils/parsers/ExcelTemplateAdapter.ts @@ -237,4 +237,8 @@ export default class ExcelTemplateAdapter extends TemplateGenerator { getData() { return this.data } + + getColumns() { + return this.project.tables.map((t: Record) => t.columns) + } }