refactor: edit conditions rules
This commit is contained in:
parent
95d25a9320
commit
1940f914ee
1 changed files with 4 additions and 2 deletions
|
|
@ -155,8 +155,10 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
|
|||
? $t('branch.form.headofficeNameEN')
|
||||
: $t('branch.form.branchNameEN')
|
||||
"
|
||||
:rules="[(val) => val && /^[A-Za-z]+$/.test(val)]"
|
||||
:error-message="$t('form.error.required')"
|
||||
:rules="[
|
||||
(val) => !!val || $t('form.error.required'),
|
||||
(val) => /^[A-Za-z]+$/.test(val) || $t('form.error.letterOnly'),
|
||||
]"
|
||||
for="input-name-en"
|
||||
/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue