豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit fd06ff3

Browse files
authored
fix(explore): allow free-form d3 format on custom column formatting (#27023)
1 parent c222464 commit fd06ff3

File tree

2 files changed

+2
-0
lines changed
  • superset-frontend
    • packages/superset-ui-chart-controls/src
    • src/explore/components/controls/ColumnConfigControl

2 files changed

+2
-0
lines changed

superset-frontend/packages/superset-ui-chart-controls/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ export type ControlFormItemSpec<T extends ControlType = ControlType> = {
517517
debounceDelay?: number;
518518
} & (T extends 'Select'
519519
? {
520+
allowNewOptions?: boolean;
520521
options: any;
521522
value?: string;
522523
defaultValue?: string;

superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export type SharedColumnConfigProp =
4242
| 'currencyFormat';
4343

4444
const d3NumberFormat: ControlFormItemSpec<'Select'> = {
45+
allowNewOptions: true,
4546
controlType: 'Select',
4647
label: t('D3 format'),
4748
description: D3_FORMAT_DOCS,

0 commit comments

Comments
 (0)