ant-design-vue有v-decorator时defaultValue无效
<a-inputv-decorator="[
'userName',
{ rules:
[
{ required: true, message: '请输入您的账号!' }
],
initialValue: 'ZHENGCONG001'
}
]"
placeholder="请输入账号"
allowClear
>
<a-icon slot="prefix" type="user" style="color: rgba(0,0,0,.25)"/>
</a-input>
用initialValue代替。
以上是 ant-design-vue有v-decorator时defaultValue无效 的全部内容, 来源链接: utcz.com/z/375297.html