feat: 移除消息组件中的不必要参数,简化文本输入逻辑
This commit is contained in:
@ -5,8 +5,6 @@ import {
|
||||
wrapper,
|
||||
label,
|
||||
help,
|
||||
messages,
|
||||
message,
|
||||
icon,
|
||||
prefix,
|
||||
suffix,
|
||||
@ -14,6 +12,7 @@ import {
|
||||
casts,
|
||||
createSection,
|
||||
} from '@formkit/inputs'
|
||||
import { messages } from '../sections/messages'
|
||||
|
||||
|
||||
/**
|
||||
@ -36,7 +35,7 @@ export const text: FormKitTypeDefinition = {
|
||||
)
|
||||
),
|
||||
help('$help'),
|
||||
messages(message('$message.value'))
|
||||
messages(),
|
||||
),
|
||||
/**
|
||||
* The type of node, can be a list, group, or input.
|
||||
|
@ -51,7 +51,6 @@ async function submit() {
|
||||
<FormKit
|
||||
:type="text"
|
||||
label="customType"
|
||||
value="default value"
|
||||
validation="required"
|
||||
validation-visibility="live"
|
||||
>
|
||||
|
Reference in New Issue
Block a user