fix: 'args' is declared but its value is never read.
All checks were successful
/ surge (push) Successful in 34s

This commit is contained in:
严浩
2024-11-15 13:05:36 +08:00
parent 0b64737bcc
commit 95068e8dde

View File

@ -51,10 +51,10 @@ onMounted(() => {
validation-visibility="live" validation-visibility="live"
validation="validateGroup" validation="validateGroup"
:validation-messages="{ :validation-messages="{
validateGroup: ({ name, args }) => { validateGroup: ({ name/* , args */ }) => {
return `字段 ${name} 必须包含 '测试' 字符串。` return `字段 ${name} 必须包含 '测试' 字符串。`
}, },
}" }"
#default="{ id, messages, fns, classes }" #default="{ id, messages, fns, classes }"
> >
@ -79,7 +79,7 @@ onMounted(() => {
'vanilla': '香草', 'vanilla': '香草',
'chocolate': '巧克力', 'chocolate': '巧克力',
'strawberry': '草莓', 'strawberry': '草莓',
}" }"
validation="required|min:2" validation="required|min:2"
/> />
<FormKit <FormKit