ant-design-vue有v-decorator时defaultValue无效

                <a-input
                        v-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代替。

原文地址:https://www.cnblogs.com/penghq/p/12077100.html