fix(explore): allow free-form d3 format on custom column formatting (#27023)

This commit is contained in:
JUST.in DO IT
2024-02-08 09:27:59 -08:00
committed by GitHub
parent c222464d05
commit fd06ff3745
2 changed files with 2 additions and 0 deletions

View File

@@ -517,6 +517,7 @@ export type ControlFormItemSpec<T extends ControlType = ControlType> = {
debounceDelay?: number;
} & (T extends 'Select'
? {
allowNewOptions?: boolean;
options: any;
value?: string;
defaultValue?: string;

View File

@@ -42,6 +42,7 @@ export type SharedColumnConfigProp =
| 'currencyFormat';
const d3NumberFormat: ControlFormItemSpec<'Select'> = {
allowNewOptions: true,
controlType: 'Select',
label: t('D3 format'),
description: D3_FORMAT_DOCS,