feat: 移除消息组件中的不必要参数,简化文本输入逻辑
Some checks failed
/ test (push) Failing after 28s
/ surge (push) Successful in 46s

This commit is contained in:
严浩
2024-11-24 23:58:07 +08:00
parent dc0c135c16
commit fb329d5746
2 changed files with 2 additions and 4 deletions

View File

@ -5,8 +5,6 @@ import {
wrapper, wrapper,
label, label,
help, help,
messages,
message,
icon, icon,
prefix, prefix,
suffix, suffix,
@ -14,6 +12,7 @@ import {
casts, casts,
createSection, createSection,
} from '@formkit/inputs' } from '@formkit/inputs'
import { messages } from '../sections/messages'
/** /**
@ -36,7 +35,7 @@ export const text: FormKitTypeDefinition = {
) )
), ),
help('$help'), help('$help'),
messages(message('$message.value')) messages(),
), ),
/** /**
* The type of node, can be a list, group, or input. * The type of node, can be a list, group, or input.

View File

@ -51,7 +51,6 @@ async function submit() {
<FormKit <FormKit
:type="text" :type="text"
label="customType" label="customType"
value="default value"
validation="required" validation="required"
validation-visibility="live" validation-visibility="live"
> >