[Vuejs]-Ant Design input Issue for v-decorator and v-model showing database records for update in Vue JS

0👍

you can use initialValue in the options object for v-decorator

                 <a-form-item>
                    <a-input
                        v-decorator="[
                          'name',

                          { initialValue: user.email, rules: [{ type: 'name', required: true, message: 'Please use a valid name.' }] },
                        ]"
                        placeholder="Name"
                    >
                        <a-icon slot="prefix" type="mail" style="color:rgba(0,0,0,.25)" />
                    </a-input>
                    </a-form-item>

Leave a comment