This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
new 4e5ef7bfe fix:Restrict the minimum value to 0 (#3907)
4e5ef7bfe is described below
commit 4e5ef7bfe1ab366f588a2de2290cb68b9f973933
Author: jacktao007 <[email protected]>
AuthorDate: Sat Nov 26 22:08:11 2022 +0800
fix:Restrict the minimum value to 0 (#3907)
---
linkis-web/src/apps/linkis/i18n/common/en.json | 5 ++++-
linkis-web/src/apps/linkis/i18n/common/zh.json | 5 ++++-
.../src/apps/linkis/module/datasourceType/EditForm/index.vue | 9 ++++++++-
3 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/linkis-web/src/apps/linkis/i18n/common/en.json
b/linkis-web/src/apps/linkis/i18n/common/en.json
index 1c72ae406..10814eafd 100644
--- a/linkis-web/src/apps/linkis/i18n/common/en.json
+++ b/linkis-web/src/apps/linkis/i18n/common/en.json
@@ -499,7 +499,10 @@
"classifier": "Classifier",
"icon": "Icon",
"layers": "Layers",
- "searchPlaceholder": "Name/Desc/Classifier"
+ "searchPlaceholder": "Name/Desc/Classifier",
+ "layersValidate": {
+ "range": "The minimum is 0"
+ }
},
"datasourceTypeKey": {
"key": "Key",
diff --git a/linkis-web/src/apps/linkis/i18n/common/zh.json
b/linkis-web/src/apps/linkis/i18n/common/zh.json
index 5aece92e1..edfaf190a 100644
--- a/linkis-web/src/apps/linkis/i18n/common/zh.json
+++ b/linkis-web/src/apps/linkis/i18n/common/zh.json
@@ -501,7 +501,10 @@
"classifier": "分类",
"icon": "图标",
"layers": "层级",
- "searchPlaceholder": "名称/描述/分类"
+ "searchPlaceholder": "名称/描述/分类",
+ "layersValidate": {
+ "range": "最小为0"
+ }
},
"datasourceTypeKey": {
"key": "键名",
diff --git
a/linkis-web/src/apps/linkis/module/datasourceType/EditForm/index.vue
b/linkis-web/src/apps/linkis/module/datasourceType/EditForm/index.vue
index d44a9db27..28b791ce7 100644
--- a/linkis-web/src/apps/linkis/module/datasourceType/EditForm/index.vue
+++ b/linkis-web/src/apps/linkis/module/datasourceType/EditForm/index.vue
@@ -165,7 +165,8 @@ export default {
value: 0,
props: {
placeholder: "eg. 1-3",
- type: "number"
+ type: "number",
+ min: 0
},
validate: [
{
@@ -177,6 +178,12 @@ export default {
)}
`+this.$t('message.linkis.basedataManagement.datasourceType.layers'),
trigger: 'change',
},
+ {
+ min: 0,
+ type: "number",
+ message:
this.$t('message.linkis.basedataManagement.datasourceType.layersValidate.range'),
+ trigger: 'change',
+ },
],
}
]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]