Skip to content

Commit

Permalink
Merge pull request #357 from actiontech/chore/sqle-ee-1622-2
Browse files Browse the repository at this point in the history
[chore]:(SyncDataSource) Remove redundant tips text from form fields
  • Loading branch information
anny1021 authored Jul 19, 2024
2 parents ff7cb53 + d17e027 commit ec3d47a
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 177 deletions.
1 change: 0 additions & 1 deletion packages/base/src/locale/en-US/dmsSyncDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default {
syncTaskForm: {
name: '同步任务名称',
source: '来源',
sourceTips: '支持同步ActionDMP平台',
version: '版本',
versionTips: '支持DMP5.23.04.0及以上版本',
url: '地址',
Expand Down
1 change: 0 additions & 1 deletion packages/base/src/locale/zh-CN/dmsSyncDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default {
syncTaskForm: {
name: '同步任务名称',
source: '来源',
sourceTips: '支持同步ActionDMP平台',
url: '地址',
urlTips: '第三方平台地址',
instanceType: '数据源类型',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,9 @@ exports[`page/SyncDataSource/AddPage render add submit for success 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -2657,20 +2646,9 @@ exports[`page/SyncDataSource/AddPage render add sync task snap 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -4185,20 +4163,9 @@ exports[`page/SyncDataSource/AddPage render form item for prepare api 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,9 @@ exports[`page/SyncDataSource/SyncTaskForm render for loading form 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -1552,20 +1541,9 @@ exports[`page/SyncDataSource/SyncTaskForm render name rule 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -3001,20 +2979,9 @@ exports[`page/SyncDataSource/SyncTaskForm render name rule 2`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -4437,20 +4404,9 @@ exports[`page/SyncDataSource/SyncTaskForm render syncInterval for form item 1`]
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -5884,20 +5840,9 @@ exports[`page/SyncDataSource/SyncTaskForm render syncInterval for form item 2`]
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down
7 changes: 1 addition & 6 deletions packages/base/src/page/SyncDataSource/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,7 @@ const SyncTaskForm: React.FC<SyncTaskFormProps> = ({
<FormItemLabel
className="has-required-style has-label-tip"
name="source"
label={
<CustomLabelContent
title={t('dmsSyncDataSource.syncTaskForm.source')}
tips={t('dmsSyncDataSource.syncTaskForm.sourceTips')}
/>
}
label={t('dmsSyncDataSource.syncTaskForm.source')}
rules={[
{
required: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,9 @@ exports[`page/SyncDataSource/UpdateSyncTask get task source failed 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -1856,20 +1845,9 @@ exports[`page/SyncDataSource/UpdateSyncTask render click reset btn 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -3381,20 +3359,9 @@ exports[`page/SyncDataSource/UpdateSyncTask render click reset btn 2`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -5028,20 +4995,9 @@ exports[`page/SyncDataSource/UpdateSyncTask render edit database snap 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down Expand Up @@ -7006,20 +6962,9 @@ exports[`page/SyncDataSource/UpdateSyncTask render update task submit 1`] = `
<label
class="ant-form-item-required ant-form-item-no-colon"
for="source"
title=""
title="来源"
>
<div
class="label-cont-custom"
>
<div>
来源
</div>
<div
class="tip-content-box"
>
支持同步ActionDMP平台
</div>
</div>
来源
</label>
</div>
<div
Expand Down

0 comments on commit ec3d47a

Please sign in to comment.