mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 01:33:59 +00:00
Formatting decimal values in stringifyCellValue function
This commit is contained in:
@@ -272,6 +272,13 @@ export function stringifyCellValue(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (value?.$decimal) {
|
||||||
|
return {
|
||||||
|
value: formatCellNumber(value.$decimal, gridFormattingOptions),
|
||||||
|
gridStyle: 'valueCellStyle',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
if (editorTypes?.parseHexAsBuffer) {
|
if (editorTypes?.parseHexAsBuffer) {
|
||||||
// if (value?.type == 'Buffer' && _isArray(value.data)) {
|
// if (value?.type == 'Buffer' && _isArray(value.data)) {
|
||||||
// return { value: '0x' + arrayToHexString(value.data), gridStyle: 'valueCellStyle' };
|
// return { value: '0x' + arrayToHexString(value.data), gridStyle: 'valueCellStyle' };
|
||||||
|
|||||||
Reference in New Issue
Block a user