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才有效


版权声明:本文为stevenxyy原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。