feat: 移除消息组件中的不必要参数,简化文本输入逻辑
This commit is contained in:
@ -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.
|
||||||
|
@ -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"
|
||||||
>
|
>
|
||||||
|
Reference in New Issue
Block a user