feat(Form): adjust show-error default value to false (#8016)

This commit is contained in:
neverland 2021-01-26 21:11:31 +08:00 committed by GitHub
parent 8c7a265082
commit e97dbeaab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -481,7 +481,7 @@ export default {
| readonly | Whether to be readonly | _boolean_ | `false` |
| validate-first | Whether to stop the validation when a rule fails | _boolean_ | `false` |
| scroll-to-error | Whether to scroll to the error field when validation failed | _boolean_ | `false` |
| show-error | Whether to highlight input when validation failed | _boolean_ | `true` |
| show-error | Whether to highlight input when validation failed | _boolean_ | `false` |
| show-error-message | Whether to show error message when validation failed | _boolean_ | `true` |
| submit-on-enter | Whether to submit form on enter | _boolean_ | `true` |

View File

@ -514,7 +514,7 @@ export default {
| readonly | 是否将表单中的所有输入框设置为只读状态 | _boolean_ | `false` |
| validate-first | 是否在某一项校验不通过时停止校验 | _boolean_ | `false` |
| scroll-to-error | 是否在提交表单且校验不通过时滚动至错误的表单项 | _boolean_ | `false` |
| show-error | 是否在校验不通过时标红输入框 | _boolean_ | `true` |
| show-error | 是否在校验不通过时标红输入框 | _boolean_ | `false` |
| show-error-message | 是否在校验不通过时在输入框下方展示错误提示 | _boolean_ | `true` |
| submit-on-enter | 是否在按下回车键时提交表单 | _boolean_ | `true` |

View File

@ -10,6 +10,7 @@ export default createComponent({
colon: Boolean,
disabled: Boolean,
readonly: Boolean,
showError: Boolean,
labelWidth: [Number, String],
labelAlign: String,
inputAlign: String,
@ -24,10 +25,6 @@ export default createComponent({
type: String,
default: 'onBlur',
},
showError: {
type: Boolean,
default: true,
},
showErrorMessage: {
type: Boolean,
default: true,