|
|
|
@ -944,7 +944,10 @@ export class MysqlUi {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static getDataTypeForUiType(col: { uidt: UITypes, dtxp?: string, colOptions?: any }, idType?: IDType) { |
|
|
|
|
static getDataTypeForUiType( |
|
|
|
|
col: { uidt: UITypes; dtxp?: string; colOptions?: any }, |
|
|
|
|
idType?: IDType |
|
|
|
|
) { |
|
|
|
|
const colProp: any = {}; |
|
|
|
|
switch (col.uidt) { |
|
|
|
|
case 'ID': |
|
|
|
@ -977,7 +980,10 @@ export class MysqlUi {
|
|
|
|
|
break; |
|
|
|
|
case 'MultiSelect': |
|
|
|
|
colProp.dt = 'set'; |
|
|
|
|
if (col.colOptions?.options.length > 64 || col.dtxp?.split(',').length > 64) { |
|
|
|
|
if ( |
|
|
|
|
col.colOptions?.options.length > 64 || |
|
|
|
|
col.dtxp?.split(',').length > 64 |
|
|
|
|
) { |
|
|
|
|
colProp.dt = 'text'; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
@ -1281,4 +1287,3 @@ export class MysqlUi {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// module.exports = MysqlUiHelp;
|
|
|
|
|
|
|
|
|
|