diff --git a/inlong-dashboard/src/plugins/sinks/defaults/Redis.ts b/inlong-dashboard/src/plugins/sinks/defaults/Redis.ts index 03ce1db567a..533cc803ffa 100644 --- a/inlong-dashboard/src/plugins/sinks/defaults/Redis.ts +++ b/inlong-dashboard/src/plugins/sinks/defaults/Redis.ts @@ -295,35 +295,6 @@ export default class RedisSink extends SinkInfo implements DataWithBackend, Rend @I18n('meta.Sinks.Redis.Ttl') ttl: number; - @FieldDecorator({ - type: EditableTable, - props: values => ({ - size: 'small', - editing: ![110].includes(values?.status), - columns: getFieldListColumns(values), - canBatchAdd: true, - upsertByFieldKey: true, - }), - }) - @IngestionField() - sinkFieldList: Record[]; - - @FieldDecorator({ - type: EditableTable, - initialValue: [], - props: values => ({ - size: 'small', - editing: ![110].includes(values?.status), - columns: getFieldListColumns(values).filter( - item => item.dataIndex !== 'sourceFieldName' && item.dataIndex !== 'sourceFieldType', - ), - canBatchAdd: true, - upsertByFieldKey: true, - }), - }) - @SyncCreateTableField() - createTableField: Record[]; - @FieldDecorator({ type: EditableTable, rules: [{ required: false }], @@ -352,6 +323,34 @@ export default class RedisSink extends SinkInfo implements DataWithBackend, Rend @IngestionField() @I18n('meta.Sinks.Redis.ExtList') properties: string; + @FieldDecorator({ + type: EditableTable, + props: values => ({ + size: 'small', + editing: ![110].includes(values?.status), + columns: getFieldListColumns(values), + canBatchAdd: true, + upsertByFieldKey: true, + }), + }) + @IngestionField() + sinkFieldList: Record[]; + + @FieldDecorator({ + type: EditableTable, + initialValue: [], + props: values => ({ + size: 'small', + editing: ![110].includes(values?.status), + columns: getFieldListColumns(values).filter( + item => item.dataIndex !== 'sourceFieldName' && item.dataIndex !== 'sourceFieldType', + ), + canBatchAdd: true, + upsertByFieldKey: true, + }), + }) + @SyncCreateTableField() + createTableField: Record[]; @FieldDecorator({ type: 'inputnumber',