1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

perf: better fields type detection

This commit is contained in:
2021-01-21 18:14:37 +01:00
parent 4923128236
commit 4bc9bbfb34
5 changed files with 117 additions and 58 deletions

View File

@ -253,7 +253,7 @@ export default {
},
fieldLength (field) {
if ([...BLOB, ...LONG_TEXT].includes(field.type)) return null;
return field.numLength || field.datePrecision || field.charLength || 0;
return field.length;
},
inputProps (field) {
if ([...TEXT, ...LONG_TEXT].includes(field.type))