This commit is contained in:
@ -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 }"
|
||||
|
Reference in New Issue
Block a user