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

defaultValue 设置无效

 

  

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

  

initialValue 有效

转载于:https://www.cnblogs.com/websjs/p/10194463.html

Logo

前往低代码交流专区

更多推荐