mirror of https://github.com/halo-dev/halo-admin
Merge branch 'main' into refactor/user-profile-page
commit
287f1000c3
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue