Merge pull request #4915 from gitstart/NCDBOSS-14

fix: Decimal Auto Type Section on Excel Import
This commit is contained in:
աɨռɢӄաօռɢ
2023-01-27 11:48:18 +08:00
committed by GitHub

View File

@@ -158,7 +158,7 @@ export default class ExcelTemplateAdapter extends TemplateGenerator {
}
} else if (column.uidt === UITypes.Number) {
if (
rows.slice(1, this.config.maxRowsToParse).every((v: any) => {
rows.slice(1, this.config.maxRowsToParse).some((v: any) => {
return v && v[col] && parseInt(v[col]) !== +v[col]
})
) {