Browse Source
fix: form validation on input change
(cherry picked from commit c20ce54dacfe4ccc31974a9a9092938ed47db4bb)
20230320
Jixun Wu
3 years ago
committed by
MengYX
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
1 changed files with
3 additions and
3 deletions
-
src/component/ConfigDialog.vue
|
|
@ -26,8 +26,8 @@ form >>> input { |
|
|
|
</style> |
|
|
|
|
|
|
|
<template> |
|
|
|
<el-dialog @close="cancel()" title="解密设定" :rules="rules" :visible="show" custom-class="um-config-dialog" center> |
|
|
|
<el-form ref="form" status-icon :model="form" label-width="0"> |
|
|
|
<el-dialog @close="cancel()" title="解密设定" :visible="show" custom-class="um-config-dialog" center> |
|
|
|
<el-form ref="form" :rules="rules" status-icon :model="form" label-width="0"> |
|
|
|
<section> |
|
|
|
<label> |
|
|
|
<span> |
|
|
@ -74,7 +74,7 @@ function validateJooxUUID(rule, value, callback) { |
|
|
|
} |
|
|
|
|
|
|
|
const rules = { |
|
|
|
jooxUUID: { validator: validateJooxUUID, trigger: 'blur' }, |
|
|
|
jooxUUID: { validator: validateJooxUUID, trigger: 'change' }, |
|
|
|
}; |
|
|
|
|
|
|
|
export default { |
|
|
|