Merge branch 'main' into refactor/user-profile-page

pull/881/head
Ryan Wang 2023-02-23 16:08:26 +08:00 committed by GitHub
commit 287f1000c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -173,7 +173,17 @@ const handleCreateUser = async () => {
label="用户名"
type="text"
name="name"
validation="required|alphanumeric|length:0,50"
:validation="[
['required'],
['length:0,63'],
[
'matches',
/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
],
]"
:validation-messages="{
matches: '请输入有效的用户名',
}"
></FormKit>
<FormKit
id="displayNameInput"