ant-design-vue form表单 defaultValue无效,得用v-decorator的initialvalue

<a-input  placeholder='' v-decorator="[
                  item.name,
                  {
                    rules: [{ required: !item.nullable, message: `请填写${item.display}` }],
                    initialValue: '33433'
                  }
                ]" defaultValue="gejijge"/>

defaultValue无效, initialValue才有效

你可能感兴趣的:(ant-design-vue form表单 defaultValue无效,得用v-decorator的initialvalue)