From c353c0c5822530e1f2d58a07a7565abef2314ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=8E=E8=BF=82=E8=BF=82?= Date: Tue, 25 Oct 2022 10:20:55 +0800 Subject: [PATCH] [fix/flinkSource][taier-ui]fix flinkSource alias (#817) --- .../source/component/tablePreview.tsx | 6 ++++- .../source/dataPreviewModal.tsx | 1 + .../src/pages/rightBar/flinkSource/form.tsx | 4 ++-- taier-ui/src/utils/index.ts | 24 ++++++++++++------- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/taier-ui/src/pages/editor/streamCollection/source/component/tablePreview.tsx b/taier-ui/src/pages/editor/streamCollection/source/component/tablePreview.tsx index 4afc4c2f2a..861499a469 100644 --- a/taier-ui/src/pages/editor/streamCollection/source/component/tablePreview.tsx +++ b/taier-ui/src/pages/editor/streamCollection/source/component/tablePreview.tsx @@ -55,7 +55,11 @@ export class CollapsePreview extends React.Component { const jsonStr = Utils.isJSONStr(item) ? Utils.jsonFormat(item, 4) : item; return ( {jsonStr || '无数据'}} + header={ +
+ {jsonStr || '无数据'} +
+ } key={`data-preview-${index}`} >