Skip to content

Commit 5f89c1a

Browse files
authored
Merge pull request #640 from actiontech/chore/dms-ee-issue-518
[feature](base/data-export): add database tooltip for export workflow
2 parents 77c7f28 + 423f044 commit 5f89c1a

File tree

4 files changed

+116
-4
lines changed

4 files changed

+116
-4
lines changed

packages/base/src/locale/zh-CN/dmsDataExport.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default {
3030
},
3131
source: {
3232
title: '选择导出对象',
33+
titleTips: '数据导出仅支持MySQL/Oracle/PG/SQL Server',
3334
business: '业务类型',
3435
dbService: '数据源',
3536
schema: '数据库'

packages/base/src/page/DataExportManagement/Create/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,42 @@ exports[`first should match snapshot when pageState is equal CREATE_TASK 1`] = `
197197
<h1
198198
class="ant-typography css-1eepp70 css-dev-only-do-not-override-txh9fw"
199199
>
200-
选择导出对象
200+
<div
201+
class="ant-space css-dev-only-do-not-override-txh9fw ant-space-horizontal ant-space-align-center basic-tooltips-wrapper css-4jbtl9"
202+
>
203+
<div
204+
class="ant-space-item"
205+
style="margin-right: 8px;"
206+
>
207+
选择导出对象
208+
</div>
209+
<div
210+
class="ant-space-item"
211+
>
212+
<span
213+
aria-label="info-circle"
214+
class="anticon anticon-info-circle tooltips-default-icon"
215+
role="img"
216+
>
217+
<svg
218+
aria-hidden="true"
219+
data-icon="info-circle"
220+
fill="currentColor"
221+
focusable="false"
222+
height="1em"
223+
viewBox="64 64 896 896"
224+
width="1em"
225+
>
226+
<path
227+
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
228+
/>
229+
<path
230+
d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
231+
/>
232+
</svg>
233+
</span>
234+
</div>
235+
</div>
201236
</h1>
202237
<div
203238
class="ant-form-item has-required-style css-1jlm9cy css-dev-only-do-not-override-txh9fw"

packages/base/src/page/DataExportManagement/Create/components/CreateTask/ExportSourceForm/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
formItemLayout
99
} from '@actiontech/shared/lib/components/CustomForm/style';
1010
import { ExportSourceFormStyleWrapper } from './style';
11+
import { BasicToolTip } from '@actiontech/shared';
1112

1213
const ExportSourceForm: React.FC<
1314
Pick<CreateExportTaskFormEntryProps, 'sourceForm' | 'baseForm'>
@@ -24,7 +25,12 @@ const ExportSourceForm: React.FC<
2425
<FormAreaLineStyleWrapper className="has-border">
2526
<FormAreaBlockStyleWrapper>
2627
<FormItemSubTitle>
27-
{t('dmsDataExport.create.form.source.title')}
28+
<BasicToolTip
29+
title={t('dmsDataExport.create.form.source.titleTips')}
30+
suffixIcon
31+
>
32+
{t('dmsDataExport.create.form.source.title')}
33+
</BasicToolTip>
2834
</FormItemSubTitle>
2935
<ExportTaskFormItem sourceForm={sourceForm} baseForm={baseForm} />
3036
</FormAreaBlockStyleWrapper>

packages/base/src/page/DataExportManagement/Create/components/CreateTask/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,42 @@ exports[`test base/DataExport/Create/CreateExportTask should match snapshot when
222222
<h1
223223
class="ant-typography css-1eepp70 css-dev-only-do-not-override-txh9fw"
224224
>
225-
选择导出对象
225+
<div
226+
class="ant-space css-dev-only-do-not-override-txh9fw ant-space-horizontal ant-space-align-center basic-tooltips-wrapper css-4jbtl9"
227+
>
228+
<div
229+
class="ant-space-item"
230+
style="margin-right: 8px;"
231+
>
232+
选择导出对象
233+
</div>
234+
<div
235+
class="ant-space-item"
236+
>
237+
<span
238+
aria-label="info-circle"
239+
class="anticon anticon-info-circle tooltips-default-icon"
240+
role="img"
241+
>
242+
<svg
243+
aria-hidden="true"
244+
data-icon="info-circle"
245+
fill="currentColor"
246+
focusable="false"
247+
height="1em"
248+
viewBox="64 64 896 896"
249+
width="1em"
250+
>
251+
<path
252+
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
253+
/>
254+
<path
255+
d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
256+
/>
257+
</svg>
258+
</span>
259+
</div>
260+
</div>
226261
</h1>
227262
<div
228263
class="ant-form-item has-required-style css-1jlm9cy css-dev-only-do-not-override-txh9fw"
@@ -928,7 +963,42 @@ exports[`test base/DataExport/Create/CreateExportTask should match snapshot when
928963
<h1
929964
class="ant-typography css-1eepp70 css-dev-only-do-not-override-txh9fw"
930965
>
931-
选择导出对象
966+
<div
967+
class="ant-space css-dev-only-do-not-override-txh9fw ant-space-horizontal ant-space-align-center basic-tooltips-wrapper css-4jbtl9"
968+
>
969+
<div
970+
class="ant-space-item"
971+
style="margin-right: 8px;"
972+
>
973+
选择导出对象
974+
</div>
975+
<div
976+
class="ant-space-item"
977+
>
978+
<span
979+
aria-label="info-circle"
980+
class="anticon anticon-info-circle tooltips-default-icon"
981+
role="img"
982+
>
983+
<svg
984+
aria-hidden="true"
985+
data-icon="info-circle"
986+
fill="currentColor"
987+
focusable="false"
988+
height="1em"
989+
viewBox="64 64 896 896"
990+
width="1em"
991+
>
992+
<path
993+
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
994+
/>
995+
<path
996+
d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
997+
/>
998+
</svg>
999+
</span>
1000+
</div>
1001+
</div>
9321002
</h1>
9331003
<div
9341004
class="ant-form-item has-required-style css-1jlm9cy css-dev-only-do-not-override-txh9fw"

0 commit comments

Comments
 (0)