Skip to content

Commit

Permalink
[fix](DataSource): Modify form field Verify information
Browse files Browse the repository at this point in the history
  • Loading branch information
zzyangh committed Dec 13, 2024
1 parent 4ee87d1 commit 6efe90c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7448,6 +7448,7 @@ exports[`page/DataSource/AddDataSource render submit when projectID is undefined
autocomplete="off"
class="ant-input-number-input"
id="backupMaxRows"
placeholder="请输入回滚行数限制"
role="spinbutton"
step="1"
value="2000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,7 @@ exports[`page/DataSource/DataSourceForm render cancel rule 1`] = `
autocomplete="off"
class="ant-input-number-input"
id="backupMaxRows"
placeholder="请输入回滚行数限制"
role="spinbutton"
step="1"
value="1000"
Expand Down Expand Up @@ -2865,6 +2866,7 @@ exports[`page/DataSource/DataSourceForm render cancel rule 2`] = `
autocomplete="off"
class="ant-input-number-input"
id="backupMaxRows"
placeholder="请输入回滚行数限制"
role="spinbutton"
step="1"
value="1000"
Expand Down
9 changes: 7 additions & 2 deletions packages/base/src/page/DataSource/components/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,18 @@ const DataSourceForm: React.FC<IDataSourceFormProps> = (props) => {
rules={[
{
required: true,
message: t('common.form.rule.require', {
message: t('common.form.placeholder.input', {
name: t('dmsDataSource.dataSourceForm.lineNumberLimit')
})
}
]}
>
<BasicInputNumber min={0} />
<BasicInputNumber
min={0}
placeholder={t('common.form.placeholder.input', {
name: t('dmsDataSource.dataSourceForm.lineNumberLimit')
})}
/>
</FormItemLabel>
</EmptyBox>
</FormAreaBlockStyleWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,7 @@ exports[`page/DataSource/UpdateDataSource render edit data when has all value 1`
autocomplete="off"
class="ant-input-number-input"
id="backupMaxRows"
placeholder="请输入回滚行数限制"
role="spinbutton"
step="1"
value="2000"
Expand Down Expand Up @@ -3038,6 +3039,7 @@ exports[`page/DataSource/UpdateDataSource render edit data when has all value 2`
autocomplete="off"
class="ant-input-number-input"
id="backupMaxRows"
placeholder="请输入回滚行数限制"
role="spinbutton"
step="1"
value="2000"
Expand Down Expand Up @@ -4601,6 +4603,7 @@ exports[`page/DataSource/UpdateDataSource render edit data when has all value 3`
autocomplete="off"
class="ant-input-number-input"
id="backupMaxRows"
placeholder="请输入回滚行数限制"
role="spinbutton"
step="1"
value="2000"
Expand Down

0 comments on commit 6efe90c

Please sign in to comment.