feat: 更新输入文本组件,添加无效状态绑定,重命名值属性为 modelValue
This commit is contained in:
@ -18,12 +18,14 @@ export const InputText: FormKitTypeDefinition = {
|
|||||||
$cmp: 'PInputText',
|
$cmp: 'PInputText',
|
||||||
bind: '$attrs',
|
bind: '$attrs',
|
||||||
props: {
|
props: {
|
||||||
|
invalid: '$state.invalid',
|
||||||
// 'type': '$type',
|
// 'type': '$type',
|
||||||
disabled: '$disabled',
|
disabled: '$disabled',
|
||||||
name: '$node.name',
|
name: '$node.name',
|
||||||
onInput: '$handlers.DOMInput',
|
onInput: '$handlers.DOMInput',
|
||||||
onBlur: '$handlers.blur',
|
onBlur: '$handlers.blur',
|
||||||
value: '$_value',
|
// value: '$_value',
|
||||||
|
modelValue: '$_value',
|
||||||
id: '$id',
|
id: '$id',
|
||||||
'aria-describedby': '$describedBy',
|
'aria-describedby': '$describedBy',
|
||||||
'aria-required': '$state.required || undefined',
|
'aria-required': '$state.required || undefined',
|
||||||
|
Reference in New Issue
Block a user