Skip to content

Commit 3fbb912

Browse files
committed
调整vue2/3版本表单数字字段最小值为0
1 parent e0fc2ba commit 3fbb912

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Vol.Vue/src/components/basic/VolForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ export default {
851851
) {
852852
// 如果是必填项的数字,设置一个默认最大与最值小
853853
if (item.required && typeof item.min !== "number") {
854-
item.min = item.type == "decimal" ? 0.1 : 1;
854+
item.min = 0;//item.type == "decimal" ? 0.1 : 1;
855855
}
856856
857857
return {

Vol.Vue3版本/src/components/basic/VolForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ export default defineComponent({
881881
) {
882882
// 如果是必填项的数字,设置一个默认最大与最值小
883883
if (item.required && typeof item.min !== "number") {
884-
item.min = item.type == "decimal" ? 0.1 : 1;
884+
item.min =0 //item.type == "decimal" ? 0.1 : 1;
885885
}
886886
887887
return {

开发版dev/Vue.NetCore/Vol.Vue/src/components/basic/VolForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ export default {
851851
) {
852852
// 如果是必填项的数字,设置一个默认最大与最值小
853853
if (item.required && typeof item.min !== "number") {
854-
item.min = item.type == "decimal" ? 0.1 : 1;
854+
item.min = 0;//item.type == "decimal" ? 0.1 : 1;
855855
}
856856
857857
return {

0 commit comments

Comments
 (0)