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