fix (nc-gui): excel date format during upload (#10628)

* also try to match based on column name

* working import as per dateformat

* fix incorrect parameters for excel adapter

* removed matchColumnDateFormat option since it doesn't handle date data type

* fix number upload excel

* use rfdc to clone
This commit is contained in:
Fendy Heryanto
2025-02-25 23:09:57 +07:00
committed by GitHub
parent f387933173
commit e757229b35
6 changed files with 117 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
import type { Api } from 'nocodb-sdk'
import type { Api, ColumnType } from 'nocodb-sdk'
import ExcelTemplateAdapter from './ExcelTemplateAdapter'
export default class ExcelUrlTemplateAdapter extends ExcelTemplateAdapter {
@@ -12,8 +12,9 @@ export default class ExcelUrlTemplateAdapter extends ExcelTemplateAdapter {
api: Api<any>,
xlsx: any = null,
progressCallback?: (msg: string) => void,
existingColumns?: ColumnType[]
) {
super({}, parserConfig, xlsx, progressCallback)
super({}, parserConfig, xlsx, progressCallback, existingColumns)
this.url = url
this.excelData = null
this.$api = api