fix: 更新地址模式验证消息,明确分组名称要求
All checks were successful
/ surge (push) Successful in 38s

This commit is contained in:
严浩
2024-11-15 15:45:27 +08:00
parent f9677d87b9
commit 9c045d1398

View File

@ -75,7 +75,6 @@ const addressSchema: FormKitSchemaDefinition = [
<FormKit
type="group"
name="attributes"
id="attributes"
:validation-rules="{
validateGroup: (node) => {
const name = (node.value as Record<string, any>).name
@ -86,7 +85,7 @@ const addressSchema: FormKitSchemaDefinition = [
validation="validateGroup"
:validation-messages="{
validateGroup: ({ name/* , args */ }) => {
return `字段 ${name} 必须包含 '测试' 字符串。`
return `分组 ${name} 下的姓名必须包含 '测试' 字符串。`
},
}"
#default="{ id, messages, fns, classes }"